From b06233aa71b70f7a30ff382ae1ba19c29b134d7c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 28 十一月 2025 15:41:51 +0800
Subject: [PATCH] #库存调整完成
---
src/main/java/com/zy/asrs/controller/CheckOrderController.java | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/CheckOrderController.java b/src/main/java/com/zy/asrs/controller/CheckOrderController.java
index 4b88046..e3a6a16 100644
--- a/src/main/java/com/zy/asrs/controller/CheckOrderController.java
+++ b/src/main/java/com/zy/asrs/controller/CheckOrderController.java
@@ -11,8 +11,10 @@
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.CheckTaskListParam;
+import com.zy.asrs.entity.param.OpenAdjustmentOrderParam;
import com.zy.asrs.entity.param.OrderDomainParam;
import com.zy.asrs.entity.result.CheckOrderExportDTO;
+import com.zy.asrs.enums.CheckStatusEnum;
import com.zy.asrs.enums.OrderTypeEnum;
import com.zy.asrs.service.*;
import com.core.annotations.ManagerAuth;
@@ -41,6 +43,8 @@
private SnowflakeIdWorker snowflakeIdWorker;
@Autowired
private DocTypeService docTypeService;
+ @Autowired
+ private OpenService openService;
@PostMapping(value = "/checkOrder/pdaComplete/auth")
@ManagerAuth(memo = "pda锛氬畬鎴愮洏鐐�")
@@ -342,4 +346,29 @@
return R.ok();
}
+
+ @PostMapping(value = "/adjustOrder/create/test")
+ @ManagerAuth(memo = "鍐呴儴娴嬭瘯锛氱敓鎴愯皟鏁村崟")
+ public R adjustOrderCreateTest(@RequestParam("orderId") Long orderId) {
+ CheckOrder checkOrder = checkOrderService.selectById(orderId);
+ List<CheckOrderDetl> checkOrderDetls = checkOrderDetlService.selectList(new EntityWrapper<CheckOrderDetl>().eq("order_id", orderId));
+ checkOrderDetls.forEach(checkOrderDetl -> { checkOrderDetl.setStatus(1);});
+ OpenAdjustmentOrderParam openAdjustmentOrderParam = new OpenAdjustmentOrderParam();
+ openAdjustmentOrderParam.setOrderTime(DateUtils.convert(new Date()));
+ openAdjustmentOrderParam.setOrderDetails(checkOrderDetls);
+
+ openService.adjustmentOrderCreate(openAdjustmentOrderParam);
+
+ return R.ok();
+
+ }
+
+ @PostMapping(value = "/adjustOrder/complete/auth")
+ @ManagerAuth(memo = "瀹屾垚璋冩暣鍗�")
+ public R adjustOrderComplete(@RequestParam("orderId") Long orderId) {
+ checkOrderService.adjustOrderComplete(orderId,getUserId());
+ return R.ok();
+ }
+
+
}
--
Gitblit v1.9.1