rev:pda校验
This commit is contained in:
@@ -132,6 +132,12 @@ public class PdaServiceImpl implements PdaService {
|
||||
if (ObjectUtil.isNotEmpty(basePoint.getVehicle_code()) && !StrUtil.equals(entity.getVehicle_code(), basePoint.getVehicle_code())) {
|
||||
throw new BadRequestException("组盘信息中的载具编码和该点位记录的载具编码不一致!");
|
||||
}
|
||||
if (StrUtil.isEmpty(entity.getMaterial_qty())) {
|
||||
throw new BadRequestException("组盘数量不能为空");
|
||||
}
|
||||
if (!entity.getIs_link() && entity.getMaterial_qty().contains(".")) {
|
||||
throw new BadRequestException("如果不需要配盘,请输入整数倍的物料数量");
|
||||
}
|
||||
// 获取物料
|
||||
MdBaseMaterial material = materialService.getById(entity.getMaterial_id());
|
||||
SchBaseVehiclematerialgroup group = new SchBaseVehiclematerialgroup();
|
||||
|
||||
Reference in New Issue
Block a user