优化接口

This commit is contained in:
tongfei
2024-04-01 10:40:19 +08:00
parent ca3de707b8
commit 537aa0fe3d
6 changed files with 44 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ namespace WMS.Web.Domain.Services
materials = materials_result.Data.ToList();
//1.先判断:箱号已经绑定了入库任务单中;备注:业务说法就是箱是否收货了
var tast_box = await _inStockTaskBoxRepositories.GetBy(dto.BoxBillNo);
var tast_box = await _inStockTaskBoxRepositories.GetBy(dto.BoxBillNo,dto.TaskId);
if (tast_box == null)
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.Box_NoBind_Task_Data);