|
@@ -357,7 +357,12 @@ public class CustomerApiController {
|
|
|
map.put("custInfo",mpInfo);
|
|
|
Map query =new HashMap();
|
|
|
query.put("indid1",indid);
|
|
|
- scriptRequest = new Request("GET", "/shanglifeecif.indrelationship/_search?pretty=true&q=indid1:"+scustid);
|
|
|
+ // 2022/5/13 陆光晨 关系信息分渠道查询
|
|
|
+ String lpqSearch = "indid1:"+ scustid;
|
|
|
+ if( StringUtils.isNotEmpty(deptCode)){
|
|
|
+ lpqSearch += "%20AND%20salecom:"+deptCode;
|
|
|
+ }
|
|
|
+ scriptRequest = new Request("GET", "/shanglifeecif.indrelationship/_search?pretty=true&q="+ lpqSearch);
|
|
|
response = restClient.performRequest(scriptRequest);
|
|
|
result = EntityUtils.toString(response.getEntity());
|
|
|
jsonObject = JSON.parseObject(result);
|
|
@@ -375,7 +380,7 @@ public class CustomerApiController {
|
|
|
query =new HashMap();
|
|
|
query.put("applicantid",indid);
|
|
|
//理赔查询
|
|
|
- String lpqSearch = "lpscutid:"+scustid;
|
|
|
+ lpqSearch = "lpscutid:"+scustid;
|
|
|
if( StringUtils.isNotEmpty(deptCode)){
|
|
|
lpqSearch = "(lpscutid:"+scustid+"%20AND%20salecom:"+deptCode+")";
|
|
|
}
|