fix 自动更新工单状态
This commit is contained in:
@@ -433,8 +433,9 @@ public class BigScreenServiceImpl implements BigScreenService {
|
||||
JSONObject result = new JSONObject();
|
||||
d1.put("device_code", "LQD01");
|
||||
res.add(d1);
|
||||
d1.put("device_code", "HCD01");
|
||||
res.add(d1);
|
||||
JSONObject d2 = new JSONObject();
|
||||
d1.put("device_code", "KCD01");
|
||||
res.add(d2);
|
||||
JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(res);
|
||||
// JSONObject devicesStatus = null;
|
||||
JSONArray data = ObjectUtil.isNotEmpty(devicesStatus) ? devicesStatus.getJSONArray("data") : res;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class AutoUpdateWorkOrder {
|
||||
TaskUtils.addAutoUpdateColum(yzWorkOrderUpdate);
|
||||
for (int i = 0; i < yzData.size(); i++) {
|
||||
JSONObject newData = yzData.getJSONObject(i);
|
||||
yzWorkOrderUpdate.put("real_qty", newData.getString("reql_qty"));
|
||||
yzWorkOrderUpdate.put("real_qty", newData.getString("real_qty"));
|
||||
yzWorkOrderUpdate.put("qualified_qty", newData.getString("qualified"));
|
||||
yzWorkOrderUpdate.put("unqualified_qty", newData.getString("unqualified"));
|
||||
workOrderTable.update(yzWorkOrderUpdate, "workorder_id = " + newData.getString("workorder_id"));
|
||||
@@ -62,7 +62,7 @@ public class AutoUpdateWorkOrder {
|
||||
TaskUtils.addAutoUpdateColum(fjWorkOrderUpdate);
|
||||
for (int i = 0; i < fjData.size(); i++) {
|
||||
JSONObject newData = fjData.getJSONObject(i);
|
||||
yzWorkOrderUpdate.put("real_qty", newData.getString("reql_qty"));
|
||||
yzWorkOrderUpdate.put("real_qty", newData.getString("real_qty"));
|
||||
workOrderTable.update(yzWorkOrderUpdate, "workorder_id = " + newData.getString("workorder_id"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user