优化详情
This commit is contained in:
@@ -38,7 +38,7 @@ namespace WMS.Web.Domain.Services
|
||||
var t_boxIds = boxIds.Distinct().ToList();
|
||||
var list= await _inStockTaskBoxRepositories.GetListBy(t_boxIds);
|
||||
|
||||
delete_ids= list.Select(x => x.Id).ToList();
|
||||
//delete_ids= list.Select(x => x.Id).ToList();
|
||||
//var boxInvetList = await _boxInventoryRepositories.GetList(t_boxIds);
|
||||
//foreach (var item in list)
|
||||
//{
|
||||
@@ -47,9 +47,16 @@ namespace WMS.Web.Domain.Services
|
||||
// delete_ids.Add(item.Id);
|
||||
//}
|
||||
|
||||
if (delete_ids.Count != 0)
|
||||
//if (delete_ids.Count != 0)
|
||||
//{
|
||||
// var isSuccess= await _inStockTaskBoxRepositories.DeleteRange(delete_ids, isTransaction);
|
||||
// if (!isSuccess)
|
||||
// return Result.ReFailure(ResultCodes.DateWriteError);
|
||||
//}
|
||||
|
||||
if (list.Count != 0)
|
||||
{
|
||||
var isSuccess= await _inStockTaskBoxRepositories.DeleteRange(delete_ids, isTransaction);
|
||||
var isSuccess = await _inStockTaskBoxRepositories.UpdateRange(list, isTransaction);
|
||||
if (!isSuccess)
|
||||
return Result.ReFailure(ResultCodes.DateWriteError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user