add 工单查询条件
This commit is contained in:
@@ -61,6 +61,7 @@ public class WorkorderServiceImpl implements WorkordeService {
|
||||
String begin_time = MapUtil.getStr(whereJson, "begin_time");
|
||||
String end_time = MapUtil.getStr(whereJson, "end_time");
|
||||
String order_status = MapUtil.getStr(whereJson, "order_status");
|
||||
String device = MapUtil.getStr(whereJson, "device");
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "1");
|
||||
if (StrUtil.isNotBlank(begin_time)) {
|
||||
@@ -85,6 +86,9 @@ public class WorkorderServiceImpl implements WorkordeService {
|
||||
if (StrUtil.isNotEmpty(material)) {
|
||||
map.put("material", "%" + material + "%");
|
||||
}
|
||||
if (StrUtil.isNotBlank(device)) {
|
||||
map.put("device", device);
|
||||
}
|
||||
JSONObject jsonObject = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "ShiftOrder.order_status ASC, ShiftOrder.create_time DESC");
|
||||
return jsonObject;
|
||||
}
|
||||
@@ -509,6 +513,7 @@ public class WorkorderServiceImpl implements WorkordeService {
|
||||
String begin_time = MapUtil.getStr(params, "begin_time");
|
||||
String end_time = MapUtil.getStr(params, "end_time");
|
||||
String order_status = MapUtil.getStr(params, "order_status");
|
||||
String device = MapUtil.getStr(params, "device");
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "7");
|
||||
if (StrUtil.isNotBlank(begin_time)) {
|
||||
@@ -533,6 +538,9 @@ public class WorkorderServiceImpl implements WorkordeService {
|
||||
if (StrUtil.isNotEmpty(material)) {
|
||||
map.put("material", "%" + material + "%");
|
||||
}
|
||||
if (StrUtil.isNotBlank(device)) {
|
||||
map.put("device", device);
|
||||
}
|
||||
JSONArray workorders = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).process().getResultJSONArray(0);
|
||||
List<Map<String, Object>> list = workorders.stream().map(o -> {
|
||||
JSONObject workorder = (JSONObject) o;
|
||||
|
||||
Reference in New Issue
Block a user