|
@@ -260,6 +260,12 @@ public class ChannelCustomerController extends BaseController {
|
260
|
260
|
return ResponseBean.error("当前客户不存在", ResponseBean.ERROR_UNAVAILABLE);
|
261
|
261
|
}
|
262
|
262
|
|
|
263
|
+ // 报备信息
|
|
264
|
+ QueryWrapper<ChannelCustomer> query = new QueryWrapper<>();
|
|
265
|
+ query.eq("customer_id", customerId);
|
|
266
|
+ query.last("limit 1");
|
|
267
|
+ ChannelCustomer channelCustomer = iChannelCustomerService.getOne(query);
|
|
268
|
+
|
263
|
269
|
// 所属楼盘
|
264
|
270
|
TaBuilding taBuilding = null;
|
265
|
271
|
if (null != customer.getBuildingId()) {
|
|
@@ -273,6 +279,7 @@ public class ChannelCustomerController extends BaseController {
|
273
|
279
|
int num = iTaCustomerFollowUpRecordService.count(queryWrapper);
|
274
|
280
|
|
275
|
281
|
Map<String, Object> rtn = new HashMap<>();
|
|
282
|
+ rtn.put("channelCustomer", channelCustomer);
|
276
|
283
|
rtn.put("building", taBuilding);
|
277
|
284
|
rtn.put("followed", num > 0);
|
278
|
285
|
|