dingxin 5 years ago
parent
commit
f14adb9c86

+ 3
- 3
src/main/java/com/huiju/estateagents/controller/TaRecommendCustomerController.java View File

289
                                          @RequestParam(value ="name",required = false) String name,
289
                                          @RequestParam(value ="name",required = false) String name,
290
                                          @RequestParam(value ="tel",required = false) String tel,
290
                                          @RequestParam(value ="tel",required = false) String tel,
291
                                          @RequestParam(value ="buildingId",required = false) String buildingId,
291
                                          @RequestParam(value ="buildingId",required = false) String buildingId,
292
-                                         @RequestParam(value ="recommendName",required = false) String recommendName,
293
-                                         @RequestParam(value ="recommendTel",required = false) String recommendTel,
292
+                                         @RequestParam(value ="consultName",required = false) String consultName,
293
+                                         @RequestParam(value ="consultTel",required = false) String consultTel,
294
                                          @RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
294
                                          @RequestParam(value ="pageNumber",defaultValue = "1") Integer pageNumber,
295
                                          @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
295
                                          @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
296
                                          @RequestParam(value ="entryType",required = false) String entryType,
296
                                          @RequestParam(value ="entryType",required = false) String entryType,
297
                                          @RequestParam(value ="verifyStatus",required = false) String verifyStatus,
297
                                          @RequestParam(value ="verifyStatus",required = false) String verifyStatus,
298
                                          @RequestParam(value = "sex",required = false)Integer sex){
298
                                          @RequestParam(value = "sex",required = false)Integer sex){
299
         try{
299
         try{
300
-            return ResponseBean.success(taRecommendCustomerService.getRecCustomerList(pageNumber,pageSize,buildingId,name,tel,recommendName,recommendTel,entryType,verifyStatus,sex, getOrgId(request)));
300
+            return ResponseBean.success(taRecommendCustomerService.getRecCustomerList(pageNumber,pageSize,buildingId,name,tel,consultName,consultTel,entryType,verifyStatus,sex, getOrgId(request)));
301
         }catch (Exception e){
301
         }catch (Exception e){
302
             e.printStackTrace();
302
             e.printStackTrace();
303
             return ResponseBean.error(e.getMessage(),ResponseBean.ERROR_UNAVAILABLE);
303
             return ResponseBean.error(e.getMessage(),ResponseBean.ERROR_UNAVAILABLE);

+ 2
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

345
             LEFT JOIN ta_person tp ON tarc.recommend_person = tp.person_id
345
             LEFT JOIN ta_person tp ON tarc.recommend_person = tp.person_id
346
             WHERE
346
             WHERE
347
               tarc.recommend_person = a.person_id and ifnull(tp.person_type, '') = 'customer'
347
               tarc.recommend_person = a.person_id and ifnull(tp.person_type, '') = 'customer'
348
-        ) AS recommedCount,
348
+        ) AS agentCount,
349
         (
349
         (
350
             SELECT
350
             SELECT
351
               count( 1 )
351
               count( 1 )
354
             LEFT JOIN ta_person tp ON tarc.recommend_person = tp.person_id
354
             LEFT JOIN ta_person tp ON tarc.recommend_person = tp.person_id
355
             WHERE
355
             WHERE
356
               tarc.recommend_person = a.person_id and ifnull(tp.person_type, '') in ('channel agent', 'estate agent')
356
               tarc.recommend_person = a.person_id and ifnull(tp.person_type, '') in ('channel agent', 'estate agent')
357
-        ) AS agentCount
357
+        ) AS recommedCount
358
         FROM
358
         FROM
359
         ta_person a
359
         ta_person a
360
         left join ta_channel_person tcp on a.person_id = tcp.person_id
360
         left join ta_channel_person tcp on a.person_id = tcp.person_id