Pārlūkot izejas kodu

事故状态添加已处理

tags/v1.2.0^2
wanjing pirms 1 gada
vecāks
revīzija
ecca70ea40
2 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. +2
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/enums/AccidentStatusEnum.java
  2. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java

+ 2
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/enums/AccidentStatusEnum.java Parādīt failu

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

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/verify/AccidentVerifyCompletedService.java Parādīt failu

@@ -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("事故核实完成,修改预警信息失败");

Notiek ielāde…
Atcelt
Saglabāt