bug
This commit is contained in:
@@ -678,7 +678,7 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
memberCarrys = await db.Queryable<WmsCarryH>().Where(x=>memberCarryIds.Contains(x.id)).ToListAsync();
|
||||
carryCodes = await db.Queryable<WmsCarryCode>().Where(x=>memberCarryIds.Contains(x.carry_id)).ToListAsync();
|
||||
clearCarryIds.AddRange(memberCarrys.Select(x=>x.id).ToList());
|
||||
clearCarryIds.AddRange(memberCarryIds);
|
||||
}
|
||||
|
||||
if (carryCodes != null && carryCodes.Count > 0)
|
||||
@@ -739,7 +739,7 @@ namespace Tnb.ProductionMgr
|
||||
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
|
||||
{
|
||||
carry_id = detail.member_carry_id
|
||||
});
|
||||
},db);
|
||||
|
||||
|
||||
if (result.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
||||
@@ -755,7 +755,7 @@ namespace Tnb.ProductionMgr
|
||||
Tnb.WarehouseMgr.Entities.Dto.Outputs.Result result = await _wmsCarryUnbindService.CarryCodeUnbind(new CarryCodeUnbindInput()
|
||||
{
|
||||
carry_id = carry.id
|
||||
});
|
||||
},db);
|
||||
|
||||
|
||||
if (result.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
||||
@@ -766,7 +766,7 @@ namespace Tnb.ProductionMgr
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Oops.Bah("未找到物料明细");
|
||||
throw Oops.Bah($"{carry.carry_code}未找到物料明细");
|
||||
}
|
||||
|
||||
|
||||
@@ -781,7 +781,7 @@ namespace Tnb.ProductionMgr
|
||||
carrystd_id = carry.carrystd_id,
|
||||
membercarry_code = "",
|
||||
membercarry_id = "",
|
||||
});
|
||||
},db);
|
||||
|
||||
if (result2.code != JNPF.Common.Enums.HttpStatusCode.OK)
|
||||
{
|
||||
@@ -792,6 +792,7 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
}
|
||||
|
||||
Log.Information($"清空载具信息:{JsonConvert.SerializeObject(clearCarryIds)}");
|
||||
await db.Updateable<WmsCarryH>()
|
||||
.SetColumns(x => x.carry_status == ((int)EnumCarryStatus.空闲).ToString())
|
||||
.SetColumns(x => x.is_check == ((int)EnumCheckConclusion.待检).ToString())
|
||||
|
||||
Reference in New Issue
Block a user