Commit 6ccba0a1 by guojuxing

门店查询修改

parent 2063bab5
...@@ -796,17 +796,16 @@ public class StoreApiServiceImpl implements StoreApiService { ...@@ -796,17 +796,16 @@ public class StoreApiServiceImpl implements StoreApiService {
public ServiceResponse queryStoreFromEs(JSONObject jsonObject, Integer pageNum, Integer pageSize, JSONObject sortJson, String returnFileds) { public ServiceResponse queryStoreFromEs(JSONObject jsonObject, Integer pageNum, Integer pageSize, JSONObject sortJson, String returnFileds) {
if (StringUtils.isBlank(returnFileds)) { if (StringUtils.isBlank(returnFileds)) {
returnFileds = StoreESFieldsEnum.STOREID.getField(); returnFileds = StoreESFieldsEnum.STOREID.getField();
} else { }
if (returnFileds.contains(StoreESFieldsEnum.OWNTYPE.getField())) { if (!returnFileds.contains(StoreESFieldsEnum.OWNTYPE.getField())) {
returnFileds += "," + StoreESFieldsEnum.OWNTYPE.getField(); returnFileds += "," + StoreESFieldsEnum.OWNTYPE.getField();
} }
if (returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField())) { if (!returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField())) {
returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField(); returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField();
} }
if (returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField())) { if (!returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField())) {
returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField(); returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField();
} }
}
DynamicSearchDTO dynamicSearchDTO = new DynamicSearchDTO(); DynamicSearchDTO dynamicSearchDTO = new DynamicSearchDTO();
dynamicSearchDTO.setSearchJson(jsonObject); dynamicSearchDTO.setSearchJson(jsonObject);
dynamicSearchDTO.setEnterpriseId(com.gic.enterprise.constants.Constants.INDEX_ENTERPRISEID); dynamicSearchDTO.setEnterpriseId(com.gic.enterprise.constants.Constants.INDEX_ENTERPRISEID);
......
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