no message
							parent
							
								
									37f171c276
								
							
						
					
					
						commit
						749d7ca7d3
					
				| 
						 | 
					@ -10,6 +10,6 @@ public class BindLargeZy {
 | 
				
			||||||
    @ApiModelProperty(value = "起点", required = true)
 | 
					    @ApiModelProperty(value = "起点", required = true)
 | 
				
			||||||
    String srcPositionCode;
 | 
					    String srcPositionCode;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @ApiModelProperty(value = "料箱号", required = true)
 | 
					    @ApiModelProperty(value = "料箱", required = true)
 | 
				
			||||||
    List<String> boxList;
 | 
					    List<BoxAndDolly> boxAndDolly;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -151,7 +151,8 @@ public class NioF3AppServiceImpl implements NioF3AppService {
 | 
				
			||||||
        validateParams(bindLargeZy);
 | 
					        validateParams(bindLargeZy);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //获取所有扫描的料箱号;
 | 
					        //获取所有扫描的料箱号;
 | 
				
			||||||
        List<String> boxNos = bindLargeZy.getBoxList();
 | 
					        List<String> boxNos =  bindLargeZy.getBoxAndDolly().stream().map(BoxAndDolly::getBoxNo).collect(Collectors.toList());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //验证Les任务
 | 
					        //验证Les任务
 | 
				
			||||||
        List<Les> lesList = validateLes(bindLargeZy.getSrcPositionCode(), boxNos);
 | 
					        List<Les> lesList = validateLes(bindLargeZy.getSrcPositionCode(), boxNos);
 | 
				
			||||||
| 
						 | 
					@ -221,10 +222,17 @@ public class NioF3AppServiceImpl implements NioF3AppService {
 | 
				
			||||||
            throw new BadRequestException("起点必填");
 | 
					            throw new BadRequestException("起点必填");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (bindLargeZy.getBoxList().isEmpty()) {
 | 
					        if (bindLargeZy.getBoxAndDolly().isEmpty()) {
 | 
				
			||||||
            throw new BadRequestException("料箱未扫描绑定");
 | 
					            throw new BadRequestException("料箱未扫描绑定");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        for (BoxAndDolly item : bindLargeZy.getBoxAndDolly()) {
 | 
				
			||||||
 | 
					            if (item.getBoxNo() == null || item.getBoxNo().trim().isEmpty()) {
 | 
				
			||||||
 | 
					                throw new BadRequestException("料箱必填");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //验证起点
 | 
					        //验证起点
 | 
				
			||||||
        pointService.validatePoint(bindLargeZy.getSrcPositionCode());
 | 
					        pointService.validatePoint(bindLargeZy.getSrcPositionCode());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue