From 4bd74ded216856176d47a87f69572084023be329 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期二, 02 四月 2024 16:49:19 +0800
Subject: [PATCH] 工段级看板接口
---
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml | 39 ++++++++++++++++++++++++++++++++-------
1 files changed, 32 insertions(+), 7 deletions(-)
diff --git a/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml b/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml
index 9925f50..df2baa5 100644
--- a/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml
+++ b/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.system.mapper.SysAnnouncementSendMapper">
-
+
<resultMap id="AnnouncementSendModel" type="org.jeecg.modules.system.model.AnnouncementSendModel" >
<result column="id" property="id" jdbcType="VARCHAR"/>
<result column="annt_id" property="anntId" jdbcType="VARCHAR"/>
@@ -17,12 +17,12 @@
<result column="open_type" property="openType" jdbcType="VARCHAR"/>
<result column="open_page" property="openPage" jdbcType="VARCHAR"/>
</resultMap>
-
+
<select id="queryByUserId" parameterType="String" resultType="String">
- select sas.annt_id from sys_announcement_send sas
+ select sas.annt_id from sys_announcement_send sas
where sas.user_id = #{userId}
</select>
-
+
<select id="getMyAnnouncementSendList" parameterType="Object" resultMap="AnnouncementSendModel">
select
sas.id,
@@ -96,12 +96,37 @@
<!-- 淇敼涓哄凡璇绘秷鎭� -->
<update id="updateReaded">
update sys_announcement_send set read_flag = '1'
- where user_id = #{userId}
+ where user_id = #{userId}
and annt_id in
<foreach collection="annoceIdList" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
-
+ <select id="getPrimaryInfo" resultType="org.jeecg.modules.system.entity.SysAnnouncementSend">
+ select
+ t1.id id,
+ t1.annt_id anntId,
+ t1.user_id userId,
+ t1.read_flag readFlag,
+ t2.msg_content msgContent,
+ t2.msg_category msgCategory
+ from
+ sys_announcement_send t1
+ left join sys_announcement t2
+ on t1.annt_id = t2.id
+ where t1.read_flag = '0'
+ and t1.user_id = #{userId}
+ <if test="msgCategoryList.size != 0">
+ and t2.msg_category in (
+ <foreach item="msgCategory" collection="msgCategoryList" separator=",">
+ #{msgCategory}
+ </foreach>
+ )
+ </if>
+ </select>
-</mapper>
\ No newline at end of file
+ <select id="findLastMessage" resultType="org.jeecg.modules.system.entity.SysAnnouncement">
+ SELECT TOP 1 * FROM sys_announcement WHERE msg_content = #{messageContent} ORDER BY create_time DESC;
+ </select>
+
+</mapper>
--
Gitblit v1.9.3