StandardInterface/MES.Service/service/DbckaManager.cs
@@ -109,7 +109,16 @@ } private bool SaveOrUpdateData(SqlSugarScope db, MesInvItemDbsq2 head, List<MesInvItemDbsqItems2> details) { { // 1. 校验是否存在调拨记录(MesInvItemMoves) var hasMaterialOut = db.Queryable<MesInvItemMoves>() .Any(x => x.WomdaahbNo == head.BillNo); if (hasMaterialOut) { throw new Exception($"MES已有调拨记录,单号:{head.BillNo},不能更新!"); } if (head.Id != null) base.DeleteById(head.Id);