From 2bbd50fb56275986e2a8658c373686d56804b99b Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 29 八月 2025 14:14:52 +0800
Subject: [PATCH] yml配置

---
 inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java |   72 ++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java
index ebaac84..95c5e8d 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/RawMaterialOrderServiceImpl.java
@@ -75,7 +75,7 @@
     private InsSampleMapper insSampleMapper;
     private final NumberGenerator<InsOrder> numberGenerator;
     private InsReportService insReportService;
-    private WechatProperty wechatProperty;
+//    private WechatProperty wechatProperty;
     private ThreadPoolTaskExecutor threadPoolTaskExecutor;
     private InsProductMapper insProductMapper;
     private AuxiliaryOutputWorkingHoursMapper auxiliaryOutputWorkingHoursMapper;
@@ -151,31 +151,31 @@
                 .set(IfsInventoryQuantity::getIsInspect, 1)
                 .set(IfsInventoryQuantity::getDeclareDate, LocalDateTime.now())
         );
-        threadPoolTaskExecutor.execute(() -> {
-            List<IfsInventoryQuantity> quantityList = ifsInventoryQuantityMapper.selectList(Wrappers.<IfsInventoryQuantity>lambdaQuery()
-                    .in(IfsInventoryQuantity::getId, ids));
-            // 浼佷笟寰俊閫氱煡
-            String message = "";
-            message += "鏂板鎶ユ閫氱煡";
-            for (IfsInventoryQuantity inventoryQuantity : quantityList) {
-                message += "\n鎵规鍙�: " + inventoryQuantity.getUpdateBatchNo();
-                message += "\n闆朵欢鎻忚堪: " + inventoryQuantity.getPartDesc();
-                message += "\n鎶佃揪鏁伴噺: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas();
-
-                // 鍒ゆ柇鏈夋病鏈夊埌20鍚�. 鎴栬�呰兘鍚﹀厤妫�
-                int result = notificationRawOrder(inventoryQuantity.getId());
-                switch (result) {
-                    case 1:
-                        message += "\n褰撳墠鏍峰搧宸叉楠岃繃, 鍙互鍏嶆";
-                        break;
-                    case 2:
-                        message += "\n褰撳墠鏍峰搧宸茶秴杩�20鍚�";
-                        break;
-                }
-                message += "\n";
-            }
-            WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message);
-        });
+//        threadPoolTaskExecutor.execute(() -> {
+//            List<IfsInventoryQuantity> quantityList = ifsInventoryQuantityMapper.selectList(Wrappers.<IfsInventoryQuantity>lambdaQuery()
+//                    .in(IfsInventoryQuantity::getId, ids));
+//            // 浼佷笟寰俊閫氱煡
+//            String message = "";
+//            message += "鏂板鎶ユ閫氱煡";
+//            for (IfsInventoryQuantity inventoryQuantity : quantityList) {
+//                message += "\n鎵规鍙�: " + inventoryQuantity.getUpdateBatchNo();
+//                message += "\n闆朵欢鎻忚堪: " + inventoryQuantity.getPartDesc();
+//                message += "\n鎶佃揪鏁伴噺: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas();
+//
+//                // 鍒ゆ柇鏈夋病鏈夊埌20鍚�. 鎴栬�呰兘鍚﹀厤妫�
+//                int result = notificationRawOrder(inventoryQuantity.getId());
+//                switch (result) {
+//                    case 1:
+//                        message += "\n褰撳墠鏍峰搧宸叉楠岃繃, 鍙互鍏嶆";
+//                        break;
+//                    case 2:
+//                        message += "\n褰撳墠鏍峰搧宸茶秴杩�20鍚�";
+//                        break;
+//                }
+//                message += "\n";
+//            }
+//            WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message);
+//        });
         return 1;
     }
 
@@ -219,16 +219,16 @@
                 .set(IfsInventoryQuantity::getUpdateBatchNo, ifsInventoryQuantity.getUpdateBatchNo())
         );
 
-        threadPoolTaskExecutor.execute(() -> {
-            IfsInventoryQuantity inventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryQuantity.getId());
-            // 浼佷笟寰俊閫氱煡
-            String message = "";
-            message += "鏂板鎶ユ閫氱煡";
-            message += "\n鎵规鍙�: " + inventoryQuantity.getUpdateBatchNo();
-            message += "\n闆朵欢鎻忚堪: " + inventoryQuantity.getPartDesc();
-            message += "\n鎶佃揪鏁伴噺: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas();
-            WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message);
-        });
+//        threadPoolTaskExecutor.execute(() -> {
+//            IfsInventoryQuantity inventoryQuantity = ifsInventoryQuantityMapper.selectById(ifsInventoryQuantity.getId());
+//            // 浼佷笟寰俊閫氱煡
+//            String message = "";
+//            message += "鏂板鎶ユ閫氱煡";
+//            message += "\n鎵规鍙�: " + inventoryQuantity.getUpdateBatchNo();
+//            message += "\n闆朵欢鎻忚堪: " + inventoryQuantity.getPartDesc();
+//            message += "\n鎶佃揪鏁伴噺: " + inventoryQuantity.getQtyArrived().stripTrailingZeros().toPlainString() + inventoryQuantity.getBuyUnitMeas();
+//            WxCpUtils.informWebHook(wechatProperty.getExaminingUrl(), message);
+//        });
         return 1;
     }
 

--
Gitblit v1.9.3