Browse Source

视频审核统计导出

develop
王兴琳 5 months ago
parent
commit
afe75b34fd
  1. 16
      zc-business/src/main/java/com/zc/business/controller/DcWarningController.java
  2. 2
      zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java
  3. 9
      zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

16
zc-business/src/main/java/com/zc/business/controller/DcWarningController.java

@ -109,6 +109,22 @@ public class DcWarningController extends BaseController
startPage(); startPage();
return getDataTable(dcWarningService.videoReviewEventSourceList(dcWarning)) ; return getDataTable(dcWarningService.videoReviewEventSourceList(dcWarning)) ;
} }
@PostMapping("/videoReviewEventSourceListExport")
public void videoReviewEventSourceListExport(HttpServletResponse response, DcWarning dcWarning) throws UnsupportedEncodingException {
List<DcWarning> list = dcWarningService.videoReviewEventSourceList(dcWarning);
ExcelUtil<DcWarning> util = new ExcelUtil<>(DcWarning.class);
util.exportExcel(response, list, "视频审核事件");
} @PostMapping("/videoReviewListExport")
public void videoReviewListExport(HttpServletResponse response, DcWarning dcWarning) throws UnsupportedEncodingException {
List<DcWarning> list = dcWarningService.videoReviewEventTimeList(dcWarning);
ExcelUtil<DcWarning> util = new ExcelUtil<>(DcWarning.class);
util.exportExcel(response, list, "视频审核事件");
}
@ApiOperation("查询视频审核事件时间") @ApiOperation("查询视频审核事件时间")
// @PreAuthorize("@ss.hasPermi('business:warning:list')") // @PreAuthorize("@ss.hasPermi('business:warning:list')")
@GetMapping("/videoReviewEventTime") @GetMapping("/videoReviewEventTime")

2
zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java

@ -2469,7 +2469,7 @@ RADAR_ASSOCIATED_MONITORING_POINT_QUERY_INTERFACE(0,"/api/radar/v1/selectRelateB
// 停车 // 停车
PULL_UP(4, "停车"), PULL_UP(4, "停车"),
// illegalParking // 非法停车
ILLEGAL_PARKING(4, "illegalParking"), ILLEGAL_PARKING(4, "illegalParking"),
// 逆行 // 逆行

9
zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="relieveType" column="relieve_type" /> <result property="relieveType" column="relieve_type" />
<result property="auditFlag" column="audit_flag" /> <result property="auditFlag" column="audit_flag" />
<result property="auditTime" column="audit_time" /> <result property="auditTime" column="audit_time" />
<result property="auditor" column="auditor" />
</resultMap> </resultMap>
<resultMap type="map" id="eventMap"> <resultMap type="map" id="eventMap">
<result property="targetId" column="targetId" /> <result property="targetId" column="targetId" />
@ -469,7 +470,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY warning_time DESC ORDER BY warning_time DESC
</select> </select>
<select id="selectVideoReviewEventTypeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning"> <select id="selectVideoReviewEventTypeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning">
select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time,warning_state,warning_time,lane,direction,warning_title,auditor
from dc_warning from dc_warning
<where> <where>
<if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if>
@ -496,7 +497,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="selectVideoEventList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning"> <select id="selectVideoEventList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning">
select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time,warning_state,warning_time,lane,direction,warning_title,auditor
from dc_warning from dc_warning
<where> <where>
(audit_flag = '1' OR audit_flag = '2') (audit_flag = '1' OR audit_flag = '2')
@ -521,7 +522,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="selectVideoReviewEventTimeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning"> <select id="selectVideoReviewEventTimeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning">
select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time,warning_state,warning_time,lane,direction,warning_title,auditor
from dc_warning from dc_warning
<where> <where>
<if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if>
@ -549,7 +550,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="videoReviewEventTimeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning"> <select id="videoReviewEventTimeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning">
select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time select id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time,warning_state,warning_time,lane,direction,warning_title,auditor
from dc_warning from dc_warning
<where> <where>
(audit_flag = '1' OR audit_flag = '2') (audit_flag = '1' OR audit_flag = '2')

Loading…
Cancel
Save