|
@@ -73,6 +73,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and UPPER(m.receive_by) like UPPER(CONCAT('%',#{userId},'%'))
|
|
|
</if>
|
|
|
+ and YEAR(a.alarm_time) = YEAR(SYSDATE())
|
|
|
</where>
|
|
|
group by a.alarm_id
|
|
|
</select>
|
|
@@ -122,6 +123,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and UPPER(m.receive_by) like UPPER(CONCAT('%',#{userId},'%'))
|
|
|
</if>
|
|
|
+ and YEAR(a.alarm_time) = YEAR(SYSDATE())
|
|
|
</where>
|
|
|
group by a.alarm_id,MONTH(a.alarm_time)
|
|
|
|
|
@@ -172,6 +174,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and UPPER(m.receive_by) like UPPER(CONCAT('%',#{userId},'%'))
|
|
|
</if>
|
|
|
+ and YEAR(a.alarm_time) = YEAR(SYSDATE())
|
|
|
</where>
|
|
|
group by a.alarm_id
|
|
|
</select>
|
|
@@ -214,6 +217,7 @@
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and UPPER(m.receive_by) like UPPER(CONCAT('%',#{userId},'%'))
|
|
|
</if>
|
|
|
+ and YEAR(a.alarm_time) = YEAR(SYSDATE())
|
|
|
</where>
|
|
|
group by a.alarm_id,MONTH(a.alarm_time)
|
|
|
|