瀏覽代碼

事故时间轴接口

tags/v1.2.0^2
chengwang 1 年之前
父節點
當前提交
30d62857a7
共有 4 個文件被更改,包括 47 次插入16 次删除
  1. +21
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Accident.java
  2. +14
    -9
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/TimeAxisService.java
  3. +5
    -5
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/accident/AccidentPromptlyLookVo.java
  4. +7
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/accident/AccidentTimeAxisVo.java

+ 21
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/Accident.java 查看文件

@@ -144,4 +144,25 @@ public class Accident extends BaseEntity {
*/
private Integer flag;

/**
* 核实时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date verificationTime;

/**
* 上报时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date reportTime;

/**
* 结束时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date endTime;

}

+ 14
- 9
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/TimeAxisService.java 查看文件

@@ -72,18 +72,23 @@ public class TimeAxisService {
if(StringUtils.isNotEmpty(user.getRealname())){
promptlyLookVo.setRealName(user.getRealname());
}
//已读人数
promptlyLookVo.setNumber(accidentReadList.size());
list.add(promptlyLookVo);
}
vo.setLookTimeList(list);
//核实时间






return null;
if(accident.getVerificationTime() != null){
vo.setVerificationTime(accident.getVerificationTime());
}
//上报时间
if(accident.getReportTime() != null){
vo.setReportTime(accident.getReportTime());
}
//结束时间
if(accident.getEndTime() !=null){
vo.setEndTime(accident.getEndTime());
}
//立即查看已读人数
vo.setNumber(accidentReadList.size());
return JsonResult.success(vo);
}
}

+ 5
- 5
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/accident/AccidentPromptlyLookVo.java 查看文件

@@ -18,15 +18,15 @@ public class AccidentPromptlyLookVo {
*/
private String realName;

/**
* 已读人数
*/
private Integer number;;
// /**
// * 已读人数
// */
// private Integer number;

/**
* 立即查看
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date LookNowTime;
private Date lookNowTime;
}

+ 7
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/accident/AccidentTimeAxisVo.java 查看文件

@@ -31,14 +31,14 @@ public class AccidentTimeAxisVo {
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date VerificationTime;
private Date verificationTime;

/**
* 上报时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date ReportingTime;
private Date reportTime;

/**
* 事故结束时间
@@ -47,5 +47,10 @@ public class AccidentTimeAxisVo {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date endTime;

/**
* 立即查看可读人数
*/
private Integer number;


}

Loading…
取消
儲存