代码更新
This commit is contained in:
@@ -1569,6 +1569,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
jsonAllBlockPoint = WQL.getWO("ST_OUTIVT03").addParamMap(map).process().getResultJSONArray(0);
|
jsonAllBlockPoint = WQL.getWO("ST_OUTIVT03").addParamMap(map).process().getResultJSONArray(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < jsonAllBlockPoint.size(); i++) {
|
||||||
|
JSONObject json = jsonAllBlockPoint.getJSONObject(i);
|
||||||
|
|
||||||
JSONObject mapParam = new JSONObject();// 生成移库单传入参数
|
JSONObject mapParam = new JSONObject();// 生成移库单传入参数
|
||||||
JSONArray table = new JSONArray(); // 明细参数
|
JSONArray table = new JSONArray(); // 明细参数
|
||||||
mapParam.put("bill_status", "10");
|
mapParam.put("bill_status", "10");
|
||||||
@@ -1580,9 +1583,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
mapParam.put("stor_name", "成品仓库");
|
mapParam.put("stor_name", "成品仓库");
|
||||||
mapParam.put("is_task", "1");
|
mapParam.put("is_task", "1");
|
||||||
|
|
||||||
for (int i = 0; i < jsonAllBlockPoint.size(); i++) {
|
|
||||||
JSONObject json = jsonAllBlockPoint.getJSONObject(i);
|
|
||||||
|
|
||||||
// 查询移入货位
|
// 查询移入货位
|
||||||
JSONObject moveParam = new JSONObject();
|
JSONObject moveParam = new JSONObject();
|
||||||
moveParam.put("box_no", json.getString("storagevehicle_code"));
|
moveParam.put("box_no", json.getString("storagevehicle_code"));
|
||||||
@@ -1636,13 +1636,15 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
JSONObject jsonTaskMove = wo_Task.query("task_id = '" + move_task_id + "'").uniqueResult(0);
|
JSONObject jsonTaskMove = wo_Task.query("task_id = '" + move_task_id + "'").uniqueResult(0);
|
||||||
jsonTaskMove.put("handle_class", HandMoveStorAcsTask.class.getName());
|
jsonTaskMove.put("handle_class", HandMoveStorAcsTask.class.getName());
|
||||||
wo_Task.update(jsonTaskMove);
|
wo_Task.update(jsonTaskMove);
|
||||||
}
|
|
||||||
mapParam.put("tableData", table);
|
mapParam.put("tableData", table);
|
||||||
// 调用移库单新增方法
|
// 调用移库单新增方法
|
||||||
if (ObjectUtil.isNotEmpty(jsonAllBlockPoint)) {
|
if (ObjectUtil.isNotEmpty(jsonAllBlockPoint)) {
|
||||||
handMoveStorService.insertDtl2(mapParam);
|
handMoveStorService.insertDtl2(mapParam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("struct_code", jsonAttr.getString("struct_code"));
|
map.put("struct_code", jsonAttr.getString("struct_code"));
|
||||||
@@ -1686,6 +1688,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < jsonAllBlockPoint.size(); i++) {
|
||||||
|
JSONObject json = jsonAllBlockPoint.getJSONObject(i);
|
||||||
|
|
||||||
JSONObject mapParam = new JSONObject();// 生成移库单传入参数
|
JSONObject mapParam = new JSONObject();// 生成移库单传入参数
|
||||||
JSONArray table = new JSONArray(); // 明细参数
|
JSONArray table = new JSONArray(); // 明细参数
|
||||||
mapParam.put("bill_status", "10");
|
mapParam.put("bill_status", "10");
|
||||||
@@ -1697,9 +1702,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
mapParam.put("stor_name", "成品仓库");
|
mapParam.put("stor_name", "成品仓库");
|
||||||
mapParam.put("is_task", "1");
|
mapParam.put("is_task", "1");
|
||||||
|
|
||||||
for (int i = 0; i < jsonAllBlockPoint.size(); i++) {
|
|
||||||
JSONObject json = jsonAllBlockPoint.getJSONObject(i);
|
|
||||||
|
|
||||||
// 查询移入货位
|
// 查询移入货位
|
||||||
JSONObject moveParam = new JSONObject();
|
JSONObject moveParam = new JSONObject();
|
||||||
moveParam.put("box_no", json.getString("storagevehicle_code"));
|
moveParam.put("box_no", json.getString("storagevehicle_code"));
|
||||||
@@ -1753,13 +1755,14 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
JSONObject jsonTaskMove = wo_Task.query("task_id = '" + move_task_id + "'").uniqueResult(0);
|
JSONObject jsonTaskMove = wo_Task.query("task_id = '" + move_task_id + "'").uniqueResult(0);
|
||||||
jsonTaskMove.put("handle_class", HandMoveStorAcsTask.class.getName());
|
jsonTaskMove.put("handle_class", HandMoveStorAcsTask.class.getName());
|
||||||
wo_Task.update(jsonTaskMove);
|
wo_Task.update(jsonTaskMove);
|
||||||
}
|
|
||||||
mapParam.put("tableData", table);
|
mapParam.put("tableData", table);
|
||||||
// 调用移库单新增方法
|
// 调用移库单新增方法
|
||||||
if (ObjectUtil.isNotEmpty(jsonAllBlockPoint)) {
|
if (ObjectUtil.isNotEmpty(jsonAllBlockPoint)) {
|
||||||
handMoveStorService.insertDtl2(mapParam);
|
handMoveStorService.insertDtl2(mapParam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// 下发
|
// 下发
|
||||||
outTask.immediateNotifyAcs(null);
|
outTask.immediateNotifyAcs(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user