This commit is contained in:
2024-07-04 10:00:54 +08:00

View File

@@ -2074,7 +2074,7 @@ namespace Tnb.ProductionMgr
{
throw Oops.Bah($"提报失败,载具已绑定");
}
List<WmsCarryCode> wmsCarryCodes = await db.Queryable<WmsCarryCode>().Where(x=>x.carry_code==materialBoxCode).ToListAsync();
List<WmsCarryCode> wmsCarryCodes = await db.Queryable<WmsCarryCode>().Where(x=>x.carry_id==wmsCarryH.id).ToListAsync();
if (wmsCarryCodes != null && wmsCarryCodes.Count > 0)
{
Log.Error($"载具{materialBoxCode}状态为{wmsCarryH.carry_status},但有条码{JsonConvert.SerializeObject(wmsCarryCodes)}");