更新
This commit is contained in:
@@ -48,9 +48,17 @@ public class StorageCellServiceImpl implements StorageCellService {
|
|||||||
@Override
|
@Override
|
||||||
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||||
String storage_code = MapUtil.getStr(whereJson, "storage_code");
|
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 = "";
|
String where = "";
|
||||||
if (StrUtil.isNotEmpty(storage_code)) {
|
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");
|
WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
|
||||||
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1 = 1 " + where, "update_time desc");
|
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1 = 1 " + where, "update_time desc");
|
||||||
|
|||||||
@@ -12,6 +12,22 @@
|
|||||||
style="width: 200px;"
|
style="width: 200px;"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
/>
|
/>
|
||||||
|
<el-input
|
||||||
|
v-model="query.parent_storage_code"
|
||||||
|
size="small"
|
||||||
|
clearable
|
||||||
|
placeholder="输入父级货位编码"
|
||||||
|
style="width: 200px;"
|
||||||
|
class="filter-item"
|
||||||
|
/>
|
||||||
|
<el-input
|
||||||
|
v-model="query.address"
|
||||||
|
size="small"
|
||||||
|
clearable
|
||||||
|
placeholder="输入agv站点"
|
||||||
|
style="width: 200px;"
|
||||||
|
class="filter-item"
|
||||||
|
/>
|
||||||
<rrOperation />
|
<rrOperation />
|
||||||
</div>
|
</div>
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
|
|||||||
Reference in New Issue
Block a user