更新
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user