add:货位管理增加筛选条件

This commit is contained in:
2024-10-31 16:13:30 +08:00
parent 0ba9fe1419
commit 23829b1cc6
2 changed files with 21 additions and 0 deletions

View File

@@ -47,10 +47,14 @@ public class StorageCellServiceImpl implements StorageCellService {
@Override
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
String storage_code = MapUtil.getStr(whereJson, "storage_code");
String region_code = MapUtil.getStr(whereJson, "region_code");
String where = "";
if (StrUtil.isNotEmpty(storage_code)) {
where = " and storage_code like '%" + storage_code + "%'";
}
if (StrUtil.isNotEmpty(region_code)) {
where = " and region_code = '" + region_code + "'";
}
WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1 = 1 " + where, "update_time desc");
final JSONObject json = rb.pageResult();