Browse Source

高速云事件参数

develop
lau572 3 months ago
parent
commit
8c8c6bf602
  1. 2
      zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java
  2. 8
      zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java

2
zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java

@ -165,7 +165,7 @@ public class DcSdhsEventController {
} }
@PostMapping("/export") @PostMapping("/export")
@ApiOperation("导出") @ApiOperation("导出")
public void trafficSituationReport(HttpServletResponse response,@RequestBody DcSdhsEventQuery dcSdhsEventQuery) throws Exception { public void trafficSituationReport(HttpServletResponse response,DcSdhsEventQuery dcSdhsEventQuery) throws Exception {
try { try {
SimpleDateFormat df = new SimpleDateFormat(UniversalEnum.TIME_FORMAT_YEARS_MONTH_DAY.getValue()); SimpleDateFormat df = new SimpleDateFormat(UniversalEnum.TIME_FORMAT_YEARS_MONTH_DAY.getValue());
String date = df.format(new Date()); String date = df.format(new Date());

8
zc-business/src/main/java/com/zc/business/domain/DcSdhsEventQuery.java

@ -27,15 +27,11 @@ public class DcSdhsEventQuery
private String type; private String type;
/** 开始时间 */ /** 开始时间 */
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型
private Date startTime; private Date startTime;
/** 结束时间 */ /** 结束时间 */
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") //接收时间类型
private Date endTime; private Date endTime;
/** 需要导出的键 */ /** 需要导出的键 */

Loading…
Cancel
Save