From 0ea4a390d09679425cf3ad217a38a9e717641c95 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期一, 14 四月 2025 16:23:12 +0800 Subject: [PATCH] 增加串行库位任务下发机制防呆 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoRepository/TaskRepository.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoRepository/TaskRepository.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoRepository/TaskRepository.cs" index 87598ea..38e2fd8 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoRepository/TaskRepository.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoRepository/TaskRepository.cs" @@ -46,15 +46,15 @@ public override int AddData(List<Dt_Task> listEntity) { - if (listEntity.GroupBy(x => x.PalletCode).Select(x => x.Count()).Any(x => x > 1)) - { - throw new Exception("浠诲姟鏁扮粍鏁版嵁鎵樼洏鍙烽噸澶�"); - } + //if (listEntity.GroupBy(x => x.PalletCode).Select(x => x.Count()).Any(x => x > 1)) + //{ + // throw new Exception("浠诲姟鏁扮粍鏁版嵁鎵樼洏鍙烽噸澶�"); + //} - if (QueryFirst(x => listEntity.Select(v => v.PalletCode).Contains(x.PalletCode)) != null) - { - throw new Exception("鏈夐噸澶嶄换鍔�"); - } + //if (QueryFirst(x => listEntity.Select(v => v.PalletCode).Contains(x.PalletCode)) != null) + //{ + // throw new Exception("鏈夐噸澶嶄换鍔�"); + //} return base.AddData(listEntity); } -- Gitblit v1.9.3