@@ -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; |
@@ -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()); |