|
@@ -189,14 +189,14 @@ public class LandVehicleServiceImpl extends ServiceImpl<LandVehicleMapper, LandV
|
|
|
throw new SecurityException("第" + (i + 1) + "行数据异常,车号不能为空");
|
|
throw new SecurityException("第" + (i + 1) + "行数据异常,车号不能为空");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Integer count = baseMapper.selectCount(new LambdaQueryWrapper<LandVehicle>()
|
|
|
|
|
|
|
+ /*Integer count = baseMapper.selectCount(new LambdaQueryWrapper<LandVehicle>()
|
|
|
.eq(LandVehicle::getPlateNo, excel.getPlateNo())
|
|
.eq(LandVehicle::getPlateNo, excel.getPlateNo())
|
|
|
.eq(LandVehicle::getTenantId, AuthUtil.getTenantId())
|
|
.eq(LandVehicle::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(LandVehicle::getIsDeleted, 0)
|
|
.eq(LandVehicle::getIsDeleted, 0)
|
|
|
);
|
|
);
|
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
|
throw new SecurityException("第" + (i + 1) + "行数据异常,车牌号已存在");
|
|
throw new SecurityException("第" + (i + 1) + "行数据异常,车牌号已存在");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
Long fleetId = null;
|
|
Long fleetId = null;
|
|
|
if (StringUtil.isNotBlank(excel.getFleetName())) {
|
|
if (StringUtil.isNotBlank(excel.getFleetName())) {
|