|
@@ -357,7 +357,12 @@ public class CustomerApiController {
|
|
map.put("custInfo",mpInfo);
|
|
map.put("custInfo",mpInfo);
|
|
Map query =new HashMap();
|
|
Map query =new HashMap();
|
|
query.put("indid1",indid);
|
|
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);
|
|
response = restClient.performRequest(scriptRequest);
|
|
result = EntityUtils.toString(response.getEntity());
|
|
result = EntityUtils.toString(response.getEntity());
|
|
jsonObject = JSON.parseObject(result);
|
|
jsonObject = JSON.parseObject(result);
|
|
@@ -375,7 +380,7 @@ public class CustomerApiController {
|
|
query =new HashMap();
|
|
query =new HashMap();
|
|
query.put("applicantid",indid);
|
|
query.put("applicantid",indid);
|
|
//理赔查询
|
|
//理赔查询
|
|
- String lpqSearch = "lpscutid:"+scustid;
|
|
|
|
|
|
+ lpqSearch = "lpscutid:"+scustid;
|
|
if( StringUtils.isNotEmpty(deptCode)){
|
|
if( StringUtils.isNotEmpty(deptCode)){
|
|
lpqSearch = "(lpscutid:"+scustid+"%20AND%20salecom:"+deptCode+")";
|
|
lpqSearch = "(lpscutid:"+scustid+"%20AND%20salecom:"+deptCode+")";
|
|
}
|
|
}
|