|
|
@ -1032,6 +1032,16 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
if (StringUtils.isBlank(dto.getOrgPriceDate())) { |
|
|
|
return new ResultBean().fail().setMsg("公司入库日期不能为空"); |
|
|
|
} |
|
|
|
for (ScmApplyInboundVehicleDto scmApplyInboundVehicleDto : vehicleList) { |
|
|
|
if (StringUtils.isNotBlank(scmApplyInboundVehicleDto.getVinNo())) { |
|
|
|
String vinNo = scmApplyInboundVehicleDto.getVinNo(); |
|
|
|
vinNo = vinNo.trim(); |
|
|
|
vinNo = vinNo.replace(" ", ""); |
|
|
|
if (vinNo.length() != 17) { |
|
|
|
return new ResultBean().fail().setMsg(scmApplyInboundVehicleDto.getVinNo() + "车架号输入不正确"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/*int vinCount = 0; |
|
|
|
if (!vehicleList.isEmpty()) { |
|
|
|
for (ScmApplyInboundVehicleDto scmApplyInboundVehicleDto : vehicleList) { |
|
|
|