fanzherong_v 1 개월 전
부모
커밋
53c96c65bf

+ 2 - 2
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/bizvehicle/service/impl/BizVehicleServiceImpl.java

@@ -96,14 +96,14 @@ public class BizVehicleServiceImpl extends ServiceImpl<BizVehicleMapper, BizVehi
             bizVehicleAddParam.setLicensePlate(bizVehicleAddParam.getLicensePlate().toUpperCase().trim());
             //校验车牌号
             if(!isCarNumber(bizVehicleAddParam.getLicensePlate())){
-                throw new CommonException("车牌号:{}格式错误",bizVehicleAddParam.getLicensePlate());
+                //throw new CommonException("车牌号:{}格式错误",bizVehicleAddParam.getLicensePlate());
             }
             //判断车牌号是否添加过
             long count = this.count(new QueryWrapper<BizVehicle>().lambda().
                     eq(BizVehicle::getLicensePlate, bizVehicleAddParam.getLicensePlate()).
                     eq(BizVehicle::getStatus, "1"));
             if(count>0){
-                throw new CommonException("车牌号:{}已经添加过!",bizVehicleAddParam.getLicensePlate());
+                //throw new CommonException("车牌号:{}已经添加过!",bizVehicleAddParam.getLicensePlate());
             }
         }
         //校验司机电话