add: 手持备货区管理

This commit is contained in:
2024-07-23 13:25:19 +08:00
parent ed14ab3723
commit 2995e10beb
2 changed files with 3 additions and 1 deletions

View File

@@ -72,7 +72,7 @@
`bst_ivt_cutpointivt` bsp `bst_ivt_cutpointivt` bsp
LEFT JOIN pdm_bi_slittingproductionplan p ON p.is_delete = '0' AND p.`status` = '03' AND (p.qzzno = bsp.qzz_no1 OR p.qzzno = bsp.qzz_no2) LEFT JOIN pdm_bi_slittingproductionplan p ON p.is_delete = '0' AND p.`status` = '03' AND (p.qzzno = bsp.qzz_no1 OR p.qzzno = bsp.qzz_no2)
WHERE bsp.point_type = '3' AND bsp.point_status = '2' AND p.workorder_id IS NOT NULL WHERE bsp.point_type = '3' AND bsp.point_status = '2' AND p.workorder_id IS NOT NULL
AND p.resource_name = #{extCode} AND bsp.is_used = '1' AND p.resource_name = #{extCode} AND bsp.is_used = '1' AND IFNULL(p.qzzno, '') <![CDATA[ <> ]]> ''
ORDER BY bsp.update_time ORDER BY bsp.update_time
</select> </select>
<select id="getAreaFullVolumeByArea" <select id="getAreaFullVolumeByArea"

View File

@@ -1466,6 +1466,7 @@ public class SlitterServiceImpl implements SlitterService {
pointByCode.setVehicle_code(vehicleCode); pointByCode.setVehicle_code(vehicleCode);
pointByCode.setIvt_status("1"); pointByCode.setIvt_status("1");
TaskUtils.updateOptMessageByBStockingPoint(pointByCode); TaskUtils.updateOptMessageByBStockingPoint(pointByCode);
stockingivtService.update(pointByCode);
JSONObject res = new JSONObject(); JSONObject res = new JSONObject();
res.put("status", HttpStatus.HTTP_OK); res.put("status", HttpStatus.HTTP_OK);
res.put("message", "备货区绑定成功!"); res.put("message", "备货区绑定成功!");
@@ -1484,6 +1485,7 @@ public class SlitterServiceImpl implements SlitterService {
pointByCode.setVehicle_code(""); pointByCode.setVehicle_code("");
pointByCode.setIvt_status("0"); pointByCode.setIvt_status("0");
TaskUtils.updateOptMessageByBStockingPoint(pointByCode); TaskUtils.updateOptMessageByBStockingPoint(pointByCode);
stockingivtService.update(pointByCode);
JSONObject res = new JSONObject(); JSONObject res = new JSONObject();
res.put("status", HttpStatus.HTTP_OK); res.put("status", HttpStatus.HTTP_OK);
res.put("message", "备货区解绑成功!"); res.put("message", "备货区解绑成功!");