From 27e00e4c0d354727728ac4b8770b1575b5077399 Mon Sep 17 00:00:00 2001
From: 海波 张 <2956280567@qq.com>
Date: 星期一, 14 七月 2025 17:30:59 +0800
Subject: [PATCH] 出库修改

---
 wms/TaskHelper.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/wms/TaskHelper.cs b/wms/TaskHelper.cs
index 12578b6..dda45de 100644
--- a/wms/TaskHelper.cs
+++ b/wms/TaskHelper.cs
@@ -1,4 +1,5 @@
 锘縰sing HH.WCS.ZhongCeJinTan.api;
+using HH.WCS.ZhongCeJinTan.core;
 using HH.WCS.ZhongCeJinTan.device;
 using HH.WCS.ZhongCeJinTan.dispatch;
 using HH.WCS.ZhongCeJinTan.util;
@@ -874,6 +875,14 @@
 
         internal static bool CreateTask(WMSTask wmsTask) {
             var db = new SqlHelper<WMSTask>().GetInstance();
+
+             var task = db.Queryable<WMSTask>().Where(a => a.S_CODE == wmsTask.S_CODE).First();
+
+            if (task!=null)
+            {
+                return false;
+            }
+
             return db.Insertable(wmsTask).ExecuteCommand() > 0;
 
         }

--
Gitblit v1.9.1