傅行帆 5 年之前
父節點
當前提交
b209caa569

+ 3
- 2
src/main/java/com.huiju.welcome/controller/TaCustomerController.java 查看文件

@@ -306,10 +306,11 @@ public class TaCustomerController extends BaseController {
306 306
         @RequestParam(defaultValue = "") String identity,
307 307
         @RequestParam(defaultValue = "", name = "nameOrPhone") String nameOrPhoneOrReceiver,
308 308
         @RequestParam(defaultValue = "" ) Integer consultant,
309
-        @RequestParam(defaultValue = "all" ) String customerType,
309
+        String customerType,
310 310
         HttpServletRequest request
311 311
     ){
312 312
         ResponseBean responseBean = new ResponseBean();
313
+        customerType = null != customerType ? customerType : CommConstant.CUSTOMER_OF_ALL;
313 314
         try {
314 315
             Integer consultantId = null;
315 316
             if (mine) {
@@ -319,7 +320,7 @@ public class TaCustomerController extends BaseController {
319 320
             }else {
320 321
                 consultantId = consultant;
321 322
             }
322
-
323
+            
323 324
             IPage<TaCustomer> result = iTaCustomerService.getCustomerListOfFront(pageNumber, pageSize, consultantId, nameOrPhoneOrReceiver, identity, consultantType,customerType);
324 325
             List<TaCustomer> custs = result.getRecords();
325 326
 

+ 5
- 0
src/main/java/com.huiju.welcome/utils/CommConstant.java 查看文件

@@ -60,4 +60,9 @@ public class CommConstant {
60 60
      * 最大预约到访时间
61 61
      */
62 62
     public static final String APPOINTMENT_VISIT_TIME = "appointment-visit-time";
63
+    
64
+    /**
65
+     * 全部
66
+     */
67
+	public static final String CUSTOMER_OF_ALL = "all";
63 68
 }