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