@@ -9,12 +9,10 @@ import lombok.Getter; | |||
public enum AccidentStatusEnum { | |||
UNTREATED(1,"未处理"), | |||
PROCESSING(2,"处理中"), | |||
IGNORED(3,"已忽略"), | |||
PROCESSED(4,"已处理"); | |||
PROCESSED(4,"已处理"), | |||
COMPLETED(5,"已完成"); | |||
AccidentStatusEnum(int code, String description){ | |||
this.code = code; |
@@ -138,6 +138,7 @@ public class AccidentVerifyCompletedService { | |||
accidentUpdate.setUpdateUser(userId); | |||
accidentUpdate.setUpdateTime(DateUtils.now()); | |||
accidentUpdate.setEndTime(DateUtils.now()); | |||
accidentUpdate.setStatus(AccidentStatusEnum.COMPLETED.getCode()); | |||
Integer count = accidentMapper.updateById(accidentUpdate); | |||
if (count <= 0) { | |||
log.info("事故核实完成,修改预警信息失败"); |