Commit 2063bab5 by guojuxing

门店查询修改

parent 1956769c
......@@ -796,6 +796,16 @@ public class StoreApiServiceImpl implements StoreApiService {
public ServiceResponse queryStoreFromEs(JSONObject jsonObject, Integer pageNum, Integer pageSize, JSONObject sortJson, String returnFileds) {
if (StringUtils.isBlank(returnFileds)) {
returnFileds = StoreESFieldsEnum.STOREID.getField();
} else {
if (returnFileds.contains(StoreESFieldsEnum.OWNTYPE.getField())) {
returnFileds += "," + StoreESFieldsEnum.OWNTYPE.getField();
}
if (returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField())) {
returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_ID.getField();
}
if (returnFileds.contains(StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField())) {
returnFileds += "," + StoreESFieldsEnum.FROM_ENTERPRISE_NAME.getField();
}
}
DynamicSearchDTO dynamicSearchDTO = new DynamicSearchDTO();
dynamicSearchDTO.setSearchJson(jsonObject);
......
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