From 11a551438369e9dcf789c98cb8430eb649de805b Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期一, 29 四月 2024 09:47:23 +0800
Subject: [PATCH] 视频标签sql加入强转修改提交
---
ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
index b70d798..8786af4 100644
--- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
+++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmAccessMapper.xml
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.alarm.access.mapper.ArdAlarmAccessMapper">
-
+
<resultMap type="ArdAlarmAccess" id="ArdAlarmAccessResult">
<result property="id" column="id" />
<result property="serialNo" column="serial_no" />
@@ -32,6 +32,9 @@
<select id="selectArdAlarmAccessList" parameterType="ArdAlarmAccess" resultMap="ArdAlarmAccessResult">
<include refid="selectArdAlarmAccessVo"/>
<where>
+ <if test="acsName!=null and acsName!=''">
+ AND acs_name like concat('%', #{acsName}, '%')
+ </if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 寮�濮嬫椂闂存绱� -->
AND alarm_time >= to_timestamp(#{params.beginTime},'yyyy-MM-DD HH24:MI:ss')
</if>
@@ -41,12 +44,12 @@
</where>
order by alarm_time desc
</select>
-
+
<select id="selectArdAlarmAccessById" parameterType="String" resultMap="ArdAlarmAccessResult">
<include refid="selectArdAlarmAccessVo"/>
where id = #{id}
</select>
-
+
<insert id="insertArdAlarmAccess" parameterType="ArdAlarmAccess">
insert into ard_alarm_access
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -120,7 +123,7 @@
</delete>
<delete id="deleteArdAlarmAccessByIds" parameterType="String">
- delete from ard_alarm_access where id in
+ delete from ard_alarm_access where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
@@ -171,8 +174,13 @@
</update>
<select id="accessYear" resultType="com.ruoyi.statistical.vo.CountVo">
- select to_char(alarm_time::DATE, 'MM') as month,count(id)
+ select to_char(alarm_time::DATE, 'MM') as date,count(id)
from ard_alarm_access
- where alarm_time >= #{start} and alarm_time <= #{end} group by month order by month
+ where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date
</select>
-</mapper>
\ No newline at end of file
+ <select id="accessMonth" resultType="com.ruoyi.statistical.vo.CountVo">
+ select to_char(alarm_time::DATE, 'dd') as date,count(id)
+ from ard_alarm_access
+ where alarm_time >= #{start} and alarm_time <= #{end} group by date order by date
+ </select>
+</mapper>
--
Gitblit v1.9.3