|
@ -1040,13 +1040,13 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
if (vinNo.length() != 17) { |
|
|
if (vinNo.length() != 17) { |
|
|
return new ResultBean().fail().setMsg(scmApplyInboundVehicleDto.getVinNo() + "车架号输入不正确"); |
|
|
return new ResultBean().fail().setMsg(scmApplyInboundVehicleDto.getVinNo() + "车架号输入不正确"); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
//判断相同车架号在整个集团中是否存在非退库的
|
|
|
//判断相同车架号在整个集团中是否存在非退库的
|
|
|
Integer count = baseVehicleFeign.selectVinNo(scmApplyInboundVehicleDto.getVinNo().substring(scmApplyInboundVehicleDto.getVinNo().length() - 8)).getData(); |
|
|
Integer count = baseVehicleFeign.selectVinNo(scmApplyInboundVehicleDto.getVinNo().substring(scmApplyInboundVehicleDto.getVinNo().length() - 8)).getData(); |
|
|
if (count > 0){ |
|
|
if (count > 0){ |
|
|
return new ResultBean().fail().setMsg(scmApplyInboundVehicleDto.getVinNo() + "在集团中存在未退库的车辆,无法入库"); |
|
|
return new ResultBean().fail().setMsg(scmApplyInboundVehicleDto.getVinNo() + "在集团中存在未退库的车辆,无法入库"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
/*int vinCount = 0; |
|
|
/*int vinCount = 0; |
|
|
if (!vehicleList.isEmpty()) { |
|
|
if (!vehicleList.isEmpty()) { |
|
|
for (ScmApplyInboundVehicleDto scmApplyInboundVehicleDto : vehicleList) { |
|
|
for (ScmApplyInboundVehicleDto scmApplyInboundVehicleDto : vehicleList) { |
|
|