Browse Source

入库报错问题修改

master
God 1 year ago
parent
commit
c12ec69a9b
  1. 2
      anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmapplyinbound/ScmApplyInboundService.java

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

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

Loading…
Cancel
Save