|
@@ -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());
|
|
|
}
|
|
|
}
|
|
|
//校验司机电话
|