Browse Source

入库确认车架号判断17位

zhanglei
God 1 year ago
parent
commit
402d78bd1d
  1. 10
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java

10
anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java

@ -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) {

Loading…
Cancel
Save