add:货位管理增加筛选条件
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user