盘点库存
This commit is contained in:
@@ -42,5 +42,7 @@ namespace ZR.Service.mes.wms.IService
|
||||
|
||||
int UpdateWmGoodsNowProduction(WmGoodsNowProduction parm);
|
||||
|
||||
int ModifyInventoryQuantity(string id, int stack_num);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,6 +233,19 @@ namespace ZR.Service.mes.wms
|
||||
//return response;
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改实际库存
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="stack_num"></param>
|
||||
/// <returns></returns>
|
||||
public int ModifyInventoryQuantity(string id, int stack_num)
|
||||
{
|
||||
return Context.Updateable<WmGoodsNowProduction>()
|
||||
.SetColumns(it => it.GoodsNumAction == stack_num)
|
||||
.Where(it => it.Id == id).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user