From 7a5b73d01e30562716bbef8074be01bb141c7891 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 17 三月 2026 16:52:21 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/service/CommonService.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index 10b671c..68468a9 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -152,6 +152,33 @@
         return true;
     }
 
+    public boolean updateTaskPriorityAndBatchSeq(UpdateTaskPriorityAndBatchSeqParam param) {
+        if (param == null) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖");
+        }
+        if (Cools.isEmpty(param.getTaskNo())) {
+            throw new CoolException("WMS浠诲姟鍙蜂笉鑳戒负绌�");
+        }
+        if (param.getTaskPri() == null && param.getBatchSeq() == null) {
+            throw new CoolException("浠诲姟浼樺厛绾у拰鎵规搴忓彿涓嶈兘鍚屾椂涓虹┖");
+        }
+
+        WrkMast wrkMast = wrkMastService.getOne(new QueryWrapper<WrkMast>().eq("wms_wrk_no", param.getTaskNo()));
+        if (wrkMast == null) {
+            throw new CoolException("浠诲姟涓嶅瓨鍦�");
+        }
+
+        if (param.getTaskPri() != null) {
+            wrkMast.setIoPri(param.getTaskPri().doubleValue());
+        }
+        if (param.getBatchSeq() != null) {
+            wrkMast.setBatchSeq(param.getBatchSeq());
+        }
+        wrkMast.setModiTime(new Date());
+        wrkMastService.updateById(wrkMast);
+        return true;
+    }
+
     public CancelTaskBatchResult cancelTaskBatch(CancelTaskBatchParam param) {
         if (param == null) {
             throw new CoolException("鍙傛暟涓嶈兘涓虹┖");

--
Gitblit v1.9.1