Browse Source

入库报错问题修改

master
God 1 year ago
parent
commit
c12ec69a9b
  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

@ -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;

Loading…
Cancel
Save