|
|
@@ -65,7 +65,12 @@ public class AflVehicleStatusInfoServiceImpl implements AflVehicleStatusInfoSer |
|
|
|
if (aflVehicleStatusInfo!=null){ |
|
|
|
flash=false; |
|
|
|
if (request.getType().equals(aflVehicleStatusInfo.getType())){ |
|
|
|
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当为状态已为"+ BlacklistOpType.findByCode(request.getType()).getValue()); |
|
|
|
//已存在相同类型状态名单,强制修改为手动操作 |
|
|
|
aflVehicleStatusInfo.setUpdateTime(LocalDateTime.now()); |
|
|
|
aflVehicleStatusInfo.setManualType(1); |
|
|
|
aflVehicleStatusInfoRepo.save(aflVehicleStatusInfo); |
|
|
|
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当为状态已为"+ |
|
|
|
BlacklistOpType.findByCode(request.getType()).getValue()); |
|
|
|
} |
|
|
|
// Duration dur= Duration.between(aflVehicleStatusInfo.getUpdateTime(), LocalDateTime.now() ); |
|
|
|
// long minute = dur.toMinutes(); |