优化
This commit is contained in:
@@ -640,8 +640,9 @@ namespace WMS.Web.Domain.Services
|
||||
foreach (var entity in list)
|
||||
{
|
||||
var det_ids = entity.Details.Select(s => s.Id).ToList();
|
||||
var change_ids = det_ids.Intersect(dto.Ids).ToList();
|
||||
//作废
|
||||
entity.Repeal(loginInfo.UserInfo.StaffId, det_ids);
|
||||
entity.Repeal(loginInfo.UserInfo.StaffId, change_ids);
|
||||
}
|
||||
var isSuccess = await _inStockTaskRepositories.UpdateRange(list, true);
|
||||
if (!isSuccess) return Result.ReFailure(ResultCodes.DateWriteError);
|
||||
|
||||
Reference in New Issue
Block a user