|
@@ -29,10 +29,7 @@ import com.yunzhi.marketing.service.ITaRecommendCustomerService;
|
29
|
29
|
import com.yunzhi.marketing.service.TaChannelPersonService;
|
30
|
30
|
import com.yunzhi.marketing.service.TaChannelService;
|
31
|
31
|
import com.yunzhi.marketing.excel.*;
|
32
|
|
-import io.swagger.annotations.Api;
|
33
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
34
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
35
|
|
-import io.swagger.annotations.ApiOperation;
|
|
32
|
+import io.swagger.annotations.*;
|
36
|
33
|
import org.apache.commons.collections.CollectionUtils;
|
37
|
34
|
import org.apache.ibatis.annotations.Param;
|
38
|
35
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -525,20 +522,23 @@ public class TaRecommendCustomerController extends BaseController {
|
525
|
522
|
* 经纪人列表
|
526
|
523
|
*
|
527
|
524
|
* @param name
|
|
525
|
+ * @param personId 经纪人ID
|
528
|
526
|
* @param tel
|
529
|
527
|
* @param pageNumber
|
530
|
528
|
* @param pageSize
|
531
|
529
|
* @return
|
532
|
530
|
*/
|
533
|
|
- @GetMapping("/admin/customer/agents")
|
|
531
|
+ @GetMapping("/{client}/customer/agents")
|
534
|
532
|
public ResponseBean getIndependentAgents(HttpServletRequest request,
|
|
533
|
+ @PathVariable String client,
|
535
|
534
|
@RequestParam(value = "name", required = false) String name,
|
|
535
|
+ @RequestParam(value = "personId", required = false) String personId,
|
536
|
536
|
@RequestParam(value = "tel", required = false) String tel,
|
537
|
537
|
@RequestParam(value = "channelId", required = false) String channelId,
|
538
|
538
|
@RequestParam(value = "pageNumber", defaultValue = "1") Integer pageNumber,
|
539
|
539
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
540
|
540
|
try {
|
541
|
|
- return ResponseBean.success(taRecommendCustomerService.getIndependentAgents(pageNumber, pageSize, name, tel, channelId, getOrgId(request)));
|
|
541
|
+ return ResponseBean.success(taRecommendCustomerService.getIndependentAgents(pageNumber, pageSize, personId, name, tel, channelId, getOrgId(request)));
|
542
|
542
|
} catch (Exception e) {
|
543
|
543
|
e.printStackTrace();
|
544
|
544
|
return ResponseBean.error(e.getMessage(), ResponseBean.ERROR_UNAVAILABLE);
|