diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs index 5120d04a..1a8b066f 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs @@ -793,11 +793,17 @@ namespace Tnb.ProductionMgr } Log.Information($"清空载具信息:{JsonConvert.SerializeObject(clearCarryIds)}"); - await db.Updateable() - .SetColumns(x => x.carry_status == ((int)EnumCarryStatus.空闲).ToString()) - .SetColumns(x => x.is_check == ((int)EnumCheckConclusion.待检).ToString()) - .Where(x => clearCarryIds.Contains(x.id)) - .ExecuteCommandAsync(); + string carryStatus = ((int)EnumCarryStatus.空闲).ToString(); + string isCheck = ((int)EnumCheckConclusion.待检).ToString(); + foreach(string carryId in clearCarryIds) + { + await db.Updateable() + .SetColumns(x => x.carry_status == carryStatus) + .SetColumns(x => x.is_check == isCheck) + .Where(x => x.id==carryId) + .ExecuteCommandAsync(); + Log.Information($"更新载具{carryId}状态为空闲{carryStatus},检验为{isCheck}成功"); + } if (insertHList.Count <= 0 || insertDList.Count <= 0) {