Bladeren bron

一期,客户信息列表页,渠道筛选从should移到must中

luGuangChen 2 jaren geleden
bovenliggende
commit
dfa6bea76e

+ 6 - 6
dgtis-modules/dgtis-modules-data/src/main/java/com/dgtis/data/api/CustomerApiController.java

@@ -225,6 +225,11 @@ public class CustomerApiController {
                 builder.append("{\"prefix\":{\"label57\":\"最近一次理赔类型\"}},");
             }
 
+            // 渠道不为空的话按渠道筛选
+            if(StringUtils.isNotEmpty(deptCode)){
+                builder.append("{\"wildcard\":{\"salecom\":\"*"+deptCode+"*\"}},");
+            }
+
             if(StringUtils.isNotEmpty(gender) || StringUtils.isNotEmpty(NOVPolicy) || StringUtils.isNotEmpty(custtype)
                     || StringUtils.isNotEmpty(custclass) || StringUtils.isNotEmpty(sobirth) || StringUtils.isNotEmpty(SCustID)
                     || StringUtils.isNotEmpty(beginBirthDay) || StringUtils.isNotEmpty(endBirthDay) || StringUtils.isNotEmpty(education)
@@ -233,7 +238,7 @@ public class CustomerApiController {
                     || (StringUtils.isNotEmpty(lp) && "0".equals(lp)) || /*StringUtils.isNotEmpty(deptCode) ||*/
                     StringUtils.isNotEmpty(participantsDateS) || StringUtils.isNotEmpty(participantsDateE) ||
                     StringUtils.isNotEmpty(policybelong) || StringUtils.isNotEmpty(name) || StringUtils.isNotEmpty(mobile)
-                    || StringUtils.isNotEmpty(fadate)){
+                    || StringUtils.isNotEmpty(fadate) || StringUtils.isNotEmpty(deptCode)){
                 builder.delete(builder.length()-1,builder.length());
             }
 
@@ -262,11 +267,6 @@ public class CustomerApiController {
             builder.append("],");
             builder.append("\"should\":[");
 
-            if(StringUtils.isNotEmpty(deptCode)){
-                //
-                builder.append("{\"wildcard\":{\"salecom\":\"*"+deptCode+"*\"}}");
-            }
-
             //客户证件号码
             if(StringUtils.isNotEmpty(idcard)){
                 builder.append("{\"wildcard\":{\"idcard\":\"*"+idcard+"*\"}},");