优化
This commit is contained in:
@@ -1885,6 +1885,8 @@ namespace Tnb.ProductionMgr
|
|||||||
};
|
};
|
||||||
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||||
WmsCarryH wmsCarryH = await db.Queryable<WmsCarryH>().SingleAsync((x => x.carry_code == materialBoxCode));
|
WmsCarryH wmsCarryH = await db.Queryable<WmsCarryH>().SingleAsync((x => x.carry_code == materialBoxCode));
|
||||||
|
if (wmsCarryH == null)
|
||||||
|
throw Oops.Bah($"未找到{materialBoxCode}载具");
|
||||||
|
|
||||||
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
|
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
|
||||||
bindCarryCodeInput.carry_id = wmsCarryH.id;
|
bindCarryCodeInput.carry_id = wmsCarryH.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user