消息分页新增返回已读

任务包列表增加搜索任务包名称 默认7条 可以模糊搜索
pull/1/head
lijingtao 1 year ago committed by sunchenliang
parent 6f9a6074d5
commit 116fae24ed

@ -32,32 +32,33 @@
<if test='msgCategory == "2" '> <if test='msgCategory == "2" '>
SELECT SELECT
id, m.id as id,
titile, m.titile as titile,
"系统管理员" as userNcame, "系统管理员" AS userNcame,
bus_json as busJson, m.bus_json AS busJson,
send_time as sendTime r.read_flag as readFlag,
m.send_time AS sendTime
FROM FROM
ocr_msg ocr_msg m LEFT JOIN ocr_msg_read r ON m.id = r.msg_id
WHERE WHERE
msg_category = '2' m.msg_category = '2'
AND AND m.receive_user_type = '1'
receive_user_type = '1' AND FIND_IN_SET( ""#{userid}"", m.receive_user_ids )
AND FIND_IN_SET( ""#{userid}"", receive_user_ids )
UNION ALL UNION ALL
SELECT SELECT
id, m.id as id,
titile, m.titile as titile,
"系统管理员" as userNcame, "系统管理员" AS userNcame,
bus_json as busJson, m.bus_json AS busJson,
send_time as sendTime r.read_flag as readFlag,
m.send_time AS sendTime
FROM FROM
ocr_msg ocr_msg m LEFT JOIN ocr_msg_read r ON m.id = r.msg_id
WHERE WHERE
msg_category = '2' m.msg_category = '2'
AND AND m.receive_user_type = '2'
receive_user_type = '2'
</if> </if>
<if test='msgCategory == "1" '> <if test='msgCategory == "1" '>
@ -66,9 +67,11 @@
m.titile as titile, m.titile as titile,
u.USERNAME as userName, u.USERNAME as userName,
m.bus_json as busJson, m.bus_json as busJson,
r.read_flag as readFlag,
m.send_time as sendTime m.send_time as sendTime
FROM FROM
ocr_msg m LEFT JOIN s_user_t u ON m.sender=u.ID ocr_msg m LEFT JOIN s_user_t u ON m.sender=u.ID
LEFT JOIN ocr_msg_read r ON m.id = r.msg_id
WHERE WHERE
m.msg_category = '1' m.msg_category = '1'
AND AND
@ -81,9 +84,11 @@
m.titile as titile, m.titile as titile,
u.USERNAME as userName, u.USERNAME as userName,
m.bus_json as busJson, m.bus_json as busJson,
r.read_flag as readFlag,
m.send_time as sendTime m.send_time as sendTime
FROM FROM
ocr_msg m LEFT JOIN s_user_t u ON m.sender=u.ID ocr_msg m LEFT JOIN s_user_t u ON m.sender=u.ID
LEFT JOIN ocr_msg_read r ON m.id = r.msg_id
WHERE WHERE
m.msg_category = '1' m.msg_category = '1'
AND AND

Loading…
Cancel
Save