修复bug
This commit is contained in:
@@ -65,6 +65,9 @@ namespace WMS.Web.Domain.Services
|
||||
public async Task<Result> Save(List<SaveTakeStockRequest> dto, LoginInDto loginInfo)
|
||||
{
|
||||
_logger.LogInformation($"盘点保存:{JsonConvert.SerializeObject(dto)} 盘点人:{loginInfo.UserInfo.StaffId}");
|
||||
if(dto.GroupBy(g=>g.BoxId).Count()>1)
|
||||
return Result.ReFailure(ResultCodes.TakeStockBoxError);
|
||||
|
||||
List<TakeStock> list = new List<TakeStock>();
|
||||
var profitList = dto.Where(w => w.AfterQty >= w.BeforeQty).ToList();//盘盈
|
||||
var lossList = dto.Where(w => w.AfterQty < w.BeforeQty).ToList();//盘亏
|
||||
|
||||
Reference in New Issue
Block a user