Bladeren bron

1、修改事故核实代码;2、修改dsp回调添加日志

tags/v1.2.0^2
wanjing 1 jaar geleden
bovenliggende
commit
17c21b917e
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyService.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyService.java Bestand weergeven

@@ -103,7 +103,7 @@ public class AccidentVerifyService {
Inspection inspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()
.eq(Inspection::getEmergencyDataInspectionId, accident.getInspectionId())
.eq(Inspection::getMark, MarkEnum.VALID.getCode()));
if (ObjectUtil.isNull(inspection)) {
if (ObjectUtil.isNotNull(inspection)) {
throw new ServiceException("该事故关联的任务已被处理,不能在核实");
}
return JsonResult.success(accident);

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallbackServiceImpl.java Bestand weergeven

@@ -96,7 +96,7 @@ public class DspCallbackServiceImpl implements IDspCallbackService {
.eq(Inspection::getId, inspectionId)
.eq(Inspection::getTenantId, business.getTenantId()));
if (ObjectUtil.isNull(inspection)) {
log.info("任务不存在");
log.info("任务不存在, inspectionId={}", inspectionId);
throw new ServiceException(0, "巡检任务不存在");
}
log.info("巡检任务查询成功,分析状态为:{}", dspCallbackRequest.getAnalyseStatus());

Laden…
Annuleren
Opslaan