wms/TaskHelper.cs
@@ -1,4 +1,5 @@ using 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; }