新增消息列表及其它细节修改
This commit is contained in:
@ -26,18 +26,62 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<!-- 消息类型统计(先分组再统计) -->
|
||||
<select id="userMessageTypeStatistics" resultType="java.util.Map">
|
||||
<select id="userGetMessageList" resultType="com.ruoyi.wgz.bo.res.WgzAppGetMessageListRes">
|
||||
SELECT
|
||||
message_large_type,
|
||||
count( 1 ) as ct
|
||||
a.id,
|
||||
a.headline,
|
||||
a.subheading,
|
||||
a.table_id as tableId,
|
||||
a.table_name as tableName,
|
||||
a.read_status as readStatus,
|
||||
a.create_time as createTime
|
||||
<if test="page.largeType == '1'">
|
||||
,c.recruit_name as recruitName
|
||||
,c.id as recruitId
|
||||
</if>
|
||||
<if test="page.largeType == '2'">
|
||||
,d.id as jsId
|
||||
,d.recruit_name as jsName
|
||||
</if>
|
||||
<if test="page.largeType == '3' and page.smallType == '0'">
|
||||
,e.id as otherId
|
||||
,e.now_time as otherFillingTime
|
||||
,e.reason as otherReason
|
||||
,f.username as otherApplicant
|
||||
,e.create_time as otherApplicationDate
|
||||
</if>
|
||||
FROM
|
||||
wgz_message
|
||||
WHERE
|
||||
recipient_id = #{id}
|
||||
AND recipient_type = "1"
|
||||
AND read_status = "0"
|
||||
GROUP BY
|
||||
message_large_type
|
||||
wgz_message as a
|
||||
<if test="page.largeType == '1'">
|
||||
LEFT JOIN bgt_project_recruit_apply as b ON b.id = a.table_id
|
||||
LEFT JOIN bgt_project_recruit as c ON c.id = b.recruit_id
|
||||
</if>
|
||||
<if test="page.largeType == '2'">
|
||||
LEFT JOIN wgz_pay_calculation as d ON d.id = a.table_id
|
||||
</if>
|
||||
<if test="page.largeType == '3' and page.smallType == '0'">
|
||||
LEFT JOIN wgz_reissueacard as e ON e.id = a.table_id
|
||||
LEFT JOIN wgz_user as f ON f.id = e.user_id
|
||||
</if>
|
||||
<where>
|
||||
a.recipient_type = "1" AND
|
||||
a.recipient_id = #{page.recipientId} AND
|
||||
a.del_flag = "0"
|
||||
<if test="page.largeType == '1'">
|
||||
AND b.del_flag = "0"
|
||||
AND c.del_flag = "0"
|
||||
</if>
|
||||
<if test="page.largeType == '2'">
|
||||
AND d.del_flag = "0"
|
||||
</if>
|
||||
<if test="page.largeType == '3' and page.smallType == '0'">
|
||||
AND e.del_flag = "0"
|
||||
AND f.del_flag = "0"
|
||||
</if>
|
||||
<if test="page.largeType == '3' and page.smallType == '1'">
|
||||
AND a.sender_type = "0"
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
Reference in New Issue
Block a user