This commit is contained in:
2023-03-08 18:37:22 +08:00
parent 8a26caa449
commit c9a4ec6445
2 changed files with 25 additions and 1 deletions

View File

@@ -48,9 +48,17 @@ public class StorageCellServiceImpl implements StorageCellService {
@Override
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
String storage_code = MapUtil.getStr(whereJson, "storage_code");
String parent_storage_code = MapUtil.getStr(whereJson, "parent_storage_code");
String address = MapUtil.getStr(whereJson, "address");
String where = "";
if (StrUtil.isNotEmpty(storage_code)) {
where = " and storage_code like '%" + storage_code + "%'";
where += " and storage_code like '%" + storage_code + "%'";
}
if (StrUtil.isNotEmpty(parent_storage_code)) {
where += " and parent_storage_code like '%" + parent_storage_code + "%'";
}
if (StrUtil.isNotEmpty(address)) {
where += " and address like '%" + address + "%'";
}
WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1 = 1 " + where, "update_time desc");