优化
This commit is contained in:
@@ -116,10 +116,18 @@ public abstract class AbstractInManage {
|
||||
String begin_time = (String) whereJson.get("begin_time");
|
||||
String end_time = (String) whereJson.get("end_time");
|
||||
map.put("flag", "2");
|
||||
map.put("receive_code", receive_code);
|
||||
map.put("material_search", material_search);
|
||||
map.put("begin_time", begin_time);
|
||||
map.put("end_time", end_time);
|
||||
if (StrUtil.isNotEmpty(receive_code)) {
|
||||
map.put("bill_code", "%" +receive_code + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(material_search)) {
|
||||
map.put("material_search", "%" +material_search + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(begin_time)) {
|
||||
map.put("begin_time", begin_time.substring(0,10));
|
||||
}
|
||||
if (StrUtil.isNotEmpty(end_time)) {
|
||||
map.put("end_time", end_time.substring(0,10));
|
||||
}
|
||||
JSONObject jo = WQL.getWO("QST_IVT_RAWASSISTISTOR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "input_time desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@@ -27,8 +27,12 @@ public class RawManage extends InManage {
|
||||
if (StrUtil.isNotEmpty(material_search)) {
|
||||
map.put("material_search", "%" +material_search + "%");
|
||||
}
|
||||
map.put("begin_time", begin_time);
|
||||
map.put("end_time", end_time);
|
||||
if (StrUtil.isNotEmpty(begin_time)) {
|
||||
map.put("begin_time", begin_time.substring(0,10));
|
||||
}
|
||||
if (StrUtil.isNotEmpty(end_time)) {
|
||||
map.put("end_time", end_time.substring(0,10));
|
||||
}
|
||||
JSONObject jo = WQL.getWO("QST_IVT_RAWASSISTISTOR").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "input_time desc");
|
||||
return jo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user