From be1190971319d9c6f7ee553de9b27885e2c90e8b Mon Sep 17 00:00:00 2001 From: lg <999544862qq.com> Date: 星期三, 14 八月 2024 15:48:45 +0800 Subject: [PATCH] 陆工,增加异常过滤 --- MES.Service/service/Warehouse/MesInvItemOutsManager.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/MES.Service/service/Warehouse/MesInvItemOutsManager.cs b/MES.Service/service/Warehouse/MesInvItemOutsManager.cs index d120804..08b04e2 100644 --- a/MES.Service/service/Warehouse/MesInvItemOutsManager.cs +++ b/MES.Service/service/Warehouse/MesInvItemOutsManager.cs @@ -192,9 +192,10 @@ private bool Update(WarehouseQuery entity) { + var userName = entity.userName ?? "system"; return Db.Updateable<MesInvItemOuts>() .SetColumns(s => s.Status == entity.status) - .SetColumns(s => s.CheckUser == entity.userName) + .SetColumns(s => s.CheckUser == userName) .SetColumns(s => s.CheckDate == DateTime.Now) .Where(s => s.Id == entity.id).ExecuteCommand() > 0; } -- Gitblit v1.9.3