优化更新空载具接口及函数
This commit is contained in:
@@ -91,16 +91,17 @@ namespace Tnb.WarehouseMgr
|
||||
feedBox.modify_id = _userManager.UserId;
|
||||
feedBox.modify_time = DateTime.Now;
|
||||
var row = await _db.Updateable(feedBox)
|
||||
.UpdateColumns(it => new {
|
||||
.UpdateColumns(it => new
|
||||
{
|
||||
it.material_id,
|
||||
it.material_code,
|
||||
it.qty,
|
||||
it.batch,
|
||||
it.modify_id,
|
||||
it.modify_id,
|
||||
it.modify_time
|
||||
}).ExecuteCommandAsync();
|
||||
//更新载具
|
||||
row = await _carryService.UpdateNullCarry(carry);
|
||||
row = await _carryService.UpdateNullCarry(carry).Unwrap();
|
||||
isOk = (row > 0);
|
||||
if (!isOk) throw Oops.Oh(ErrorCode.COM1001);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user