Browse Source

高速云事件参数

develop
lau572 7 months ago
parent
commit
8c8c6bf602
  1. 2
      zc-business/src/main/java/com/zc/business/controller/DcSdhsEventController.java
  2. 4
      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")
@ApiOperation("导出")
public void trafficSituationReport(HttpServletResponse response,@RequestBody DcSdhsEventQuery dcSdhsEventQuery) throws Exception {
public void trafficSituationReport(HttpServletResponse response,DcSdhsEventQuery dcSdhsEventQuery) throws Exception {
try {
SimpleDateFormat df = new SimpleDateFormat(UniversalEnum.TIME_FORMAT_YEARS_MONTH_DAY.getValue());
String date = df.format(new Date());

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

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

Loading…
Cancel
Save