bug、提示信息完善
This commit is contained in:
@@ -164,6 +164,8 @@ namespace Tnb.WarehouseMgr
|
||||
WmsCarryCode.id = SnowflakeIdHelper.NextId();
|
||||
WmsCarryCode.carry_id = carry.id;
|
||||
WmsCarryCode.is_out = 0;
|
||||
WmsCarryCode.id = input.create_id;
|
||||
WmsCarryCode.create_time = DateTime.Now;
|
||||
WmsCarryCodes.Add(WmsCarryCode);
|
||||
}
|
||||
int rows = 0;
|
||||
@@ -171,7 +173,7 @@ namespace Tnb.WarehouseMgr
|
||||
rows = await _db.Insertable(WmsCarryCodes).ExecuteCommandAsync();
|
||||
if (rows == 0)
|
||||
{
|
||||
throw new Exception($"接收到{input.details.Count}个条码 但是成功绑定的条码数量为0个!");
|
||||
throw new Exception($"物料列表为空,不能提交绑定,可能的原因;1.需要检查扫码设置(新PDA) 2.未扫到有效的二维码 详细信息:接收到{input.details.Count}个条码 但是成功绑定的条码数量为0个!");
|
||||
}
|
||||
}
|
||||
catch (PostgresException ex)
|
||||
|
||||
Reference in New Issue
Block a user