接口优化
This commit is contained in:
@@ -199,10 +199,10 @@ namespace WMS.Web.Domain.Services
|
||||
if (tast_box == null)
|
||||
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.Box_NoBind_Task_Data);
|
||||
|
||||
//2.1判断箱是否上架过了
|
||||
var isExist = await _inStockRepositories.IsExistBy(box.Id);
|
||||
if (isExist)
|
||||
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxIsTrueShelf);
|
||||
////2.1判断箱是否上架过了---不要这个判断
|
||||
//var isExist = await _inStockRepositories.IsExistBy(box.Id);
|
||||
//if (isExist)
|
||||
// return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxIsTrueShelf);
|
||||
|
||||
//1.2找到任务单
|
||||
var tast = await _inStockTaskRepositories.Get(tast_box.TaskId);
|
||||
|
||||
Reference in New Issue
Block a user