|
@@ -11,6 +11,8 @@ import com.yunzhi.marketing.broker.vo.BrokerVO;
|
11
|
11
|
import com.yunzhi.marketing.common.CommConstant;
|
12
|
12
|
import com.yunzhi.marketing.common.StringUtils;
|
13
|
13
|
import com.yunzhi.marketing.entity.TaPerson;
|
|
14
|
+import com.yunzhi.marketing.xlk.entity.ChannelCustomer;
|
|
15
|
+import com.yunzhi.marketing.xlk.service.IChannelCustomerService;
|
14
|
16
|
import io.swagger.annotations.Api;
|
15
|
17
|
import io.swagger.annotations.ApiOperation;
|
16
|
18
|
import io.swagger.annotations.ApiParam;
|
|
@@ -34,6 +36,9 @@ public class BrokerController extends BaseController {
|
34
|
36
|
@Autowired
|
35
|
37
|
IBkInviteRecordService iBkInviteRecordService;
|
36
|
38
|
|
|
39
|
+ @Autowired
|
|
40
|
+ IChannelCustomerService iChannelCustomerService;
|
|
41
|
+
|
37
|
42
|
|
38
|
43
|
@RequestMapping(value="/admin/broker",method= RequestMethod.GET)
|
39
|
44
|
@ApiOperation(value="经纪人列表", notes = "经纪人列表", httpMethod = "GET", response = ResponseBean.class)
|
|
@@ -51,6 +56,24 @@ public class BrokerController extends BaseController {
|
51
|
56
|
}
|
52
|
57
|
|
53
|
58
|
|
|
59
|
+ @RequestMapping(value="/admin/broker/customer",method= RequestMethod.GET)
|
|
60
|
+ @ApiOperation(value="经纪人客户列表", notes = "经纪人客户列表", httpMethod = "GET", response = ResponseBean.class)
|
|
61
|
+ public ResponseBean getCustomerList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
|
62
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
63
|
+ @ApiParam("手机号") @RequestParam(value ="phone", required = false) String phone,
|
|
64
|
+ @ApiParam("姓名") @RequestParam(value ="name", required = false) String name,
|
|
65
|
+ @ApiParam("推荐人") @RequestParam(value ="recommendPerson", required = false) String recommendPerson) throws Exception {
|
|
66
|
+
|
|
67
|
+ if (StringUtils.isEmpty(recommendPerson)) {
|
|
68
|
+ return ResponseBean.error("请选择推荐经纪人", ResponseBean.ERROR_UNAVAILABLE);
|
|
69
|
+ }
|
|
70
|
+
|
|
71
|
+ IPage<ChannelCustomer> page = new Page<>(pageNum, pageSize);
|
|
72
|
+ IPage<ChannelCustomer> result = iChannelCustomerService.getPageByBroker(page, recommendPerson, name, phone);
|
|
73
|
+ return ResponseBean.success(result);
|
|
74
|
+ }
|
|
75
|
+
|
|
76
|
+
|
54
|
77
|
@RequestMapping(value="/wx/broker",method= RequestMethod.GET)
|
55
|
78
|
@ApiOperation(value="小程序端经纪人列表", notes = "小程序端经纪人列表", httpMethod = "GET", response = ResponseBean.class)
|
56
|
79
|
public ResponseBean getWxBrokerList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|