Browse Source

修改预警记录列表接口应急任务对应的预警不显示

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
c5995e7e07
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      tuoheng-admin/src/main/java/com/tuoheng/admin/enums/AccidentTaskEnum.java
  2. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallBackService.java

+ 2
- 2
tuoheng-admin/src/main/java/com/tuoheng/admin/enums/AccidentTaskEnum.java View File

@@ -12,8 +12,8 @@ import lombok.Getter;

public enum AccidentTaskEnum {

INSPECTION_TASK(0,"巡检任务"),
ACCIDENT_TASK(1,"应急任务");
INSPECTION_TASK(1,"巡检任务"),
ACCIDENT_TASK(2,"应急任务");

AccidentTaskEnum(int code, String description){
this.code = code;

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/dsp/DspCallBackService.java View File

@@ -201,7 +201,7 @@ public class DspCallBackService {
//任务的应急类型根据任务类型进行判断
ThMission thMission = missionMapper.selectById(question.getMissionId());
if(ObjectUtils.isNotEmpty(thMission)){
if(thMission.getAccidentTask() == AccidentTaskEnum.ACCIDENT_TASK.getCode()){
if(thMission.getType() == AccidentTaskEnum.ACCIDENT_TASK.getCode()){
warning.setFlag(FlagEnum.ACCIDENT.getCode());
}else {
warning.setFlag(FlagEnum.INSPECTION_ACCIDENT.getCode());

Loading…
Cancel
Save