no message

main
HUOJIN\92525 2025-09-03 14:56:22 +08:00
parent 37f171c276
commit 749d7ca7d3
2 changed files with 12 additions and 4 deletions

View File

@ -10,6 +10,6 @@ public class BindLargeZy {
@ApiModelProperty(value = "起点", required = true)
String srcPositionCode;
@ApiModelProperty(value = "料箱", required = true)
List<String> boxList;
@ApiModelProperty(value = "料箱", required = true)
List<BoxAndDolly> boxAndDolly;
}

View File

@ -151,7 +151,8 @@ public class NioF3AppServiceImpl implements NioF3AppService {
validateParams(bindLargeZy);
//获取所有扫描的料箱号;
List<String> boxNos = bindLargeZy.getBoxList();
List<String> boxNos = bindLargeZy.getBoxAndDolly().stream().map(BoxAndDolly::getBoxNo).collect(Collectors.toList());
//验证Les任务
List<Les> lesList = validateLes(bindLargeZy.getSrcPositionCode(), boxNos);
@ -221,10 +222,17 @@ public class NioF3AppServiceImpl implements NioF3AppService {
throw new BadRequestException("起点必填");
}
if (bindLargeZy.getBoxList().isEmpty()) {
if (bindLargeZy.getBoxAndDolly().isEmpty()) {
throw new BadRequestException("料箱未扫描绑定");
}
for (BoxAndDolly item : bindLargeZy.getBoxAndDolly()) {
if (item.getBoxNo() == null || item.getBoxNo().trim().isEmpty()) {
throw new BadRequestException("料箱必填");
}
}
//验证起点
pointService.validatePoint(bindLargeZy.getSrcPositionCode());
}