Commit 1730e9ee by huangZW

111

parent c4a4834c
...@@ -135,19 +135,22 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -135,19 +135,22 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
dynamicSearchDTO.setColumnCategoryCode("member"); dynamicSearchDTO.setColumnCategoryCode("member");
dynamicSearchDTO.setSearchJson(searchJson); dynamicSearchDTO.setSearchJson(searchJson);
dynamicSearchDTO.setBegin(0); dynamicSearchDTO.setBegin(0);
dynamicSearchDTO.setRecordNumber(10); dynamicSearchDTO.setRecordNumber(1);
log.info("gicEnterpriseId=========>{},searchJson=========={}",gicEnterpriseId,searchJson); log.info("gicEnterpriseId=========>{},searchJson=========={}",gicEnterpriseId,searchJson);
ESResponseQuerySingle responseQuery = eSDataDynamicOperationApiService.queryDataSingle(dynamicSearchDTO); ESResponseQueryBatch responseQuery = eSDataDynamicOperationApiService.queryDataBatch(dynamicSearchDTO, false, null);
if(null == responseQuery){ if(null == responseQuery){
log.info("会员不存在1"); log.info("会员不存在1");
continue; continue;
} }
JSONObject res = responseQuery.getRes(); List<JSONObject> res = responseQuery.getRes();
if(res == null){ if(CollectionUtil.isEmpty(res)){
log.info("会员不存在2"); log.info("会员不存在2");
continue; continue;
} }
String storeId = res.get("storeId") == null?"":res.get("storeId").toString(); String storeId = "";
for (JSONObject jsonObject : res) {
storeId = jsonObject.get("storeId") == null?"":jsonObject.get("storeId").toString();
}
if(StringUtils.isEmpty(storeId)){ if(StringUtils.isEmpty(storeId)){
log.info("会员门店不存在"); log.info("会员门店不存在");
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment