Commit 0cc5cbfe by guojuxing

门店ES查询添加查询字段:门店状态

parent c4ac9afd
......@@ -28,6 +28,7 @@ public class StoreSearchDTO implements Serializable {
private Integer storeTagId;
private Integer completeStatus;
private List<Integer> storeResourceList;
private Integer erpStatus;
public Integer getStoreGroupId() {
return storeGroupId;
......@@ -222,4 +223,13 @@ public class StoreSearchDTO implements Serializable {
public void setStoreResourceList(List<Integer> storeResourceList) {
this.storeResourceList = storeResourceList;
}
public Integer getErpStatus() {
return erpStatus;
}
public StoreSearchDTO setErpStatus(Integer erpStatus) {
this.erpStatus = erpStatus;
return this;
}
}
......@@ -1480,6 +1480,11 @@ public class StoreApiServiceImpl implements StoreApiService {
json = QueryConditionAssemblyUtil.createSimpleQueryNode(StoreESFieldsEnum.STATUS.getField(), OperateEnum.OPERATE_EQ, storeSearchDTO.getStatus());
jsonObjectList.add(json);
}
//门店状态
if (storeSearchDTO.getErpStatus() != null) {
json = QueryConditionAssemblyUtil.createSimpleQueryNode(StoreESFieldsEnum.ERPSTATUS.getField(), OperateEnum.OPERATE_EQ, storeSearchDTO.getStatus());
jsonObjectList.add(json);
}
if (storeSearchDTO.getCompleteStatus() != null) {
json = QueryConditionAssemblyUtil.createSimpleQueryNode(StoreESFieldsEnum.COMPLETESTATUS.getField(), OperateEnum.OPERATE_EQ, storeSearchDTO.getCompleteStatus());
jsonObjectList.add(json);
......
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