|
@@ -149,12 +149,15 @@
|
|
|
a.id_ id,SUBJECT_ SUBJECT ,OWNER_ID_ ownerId,OWNER_ ownerName ,MESSAGE_TYPE_ messageType,CREATE_TIME_ createTime,CANREPLY_ canreply,
|
|
a.id_ id,SUBJECT_ SUBJECT ,OWNER_ID_ ownerId,OWNER_ ownerName ,MESSAGE_TYPE_ messageType,CREATE_TIME_ createTime,CANREPLY_ canreply,
|
|
|
IS_PUBLIC_ isPublic,FILE_MSG_ fileMsg,RECEIVER_TIME_ receiverTime ,TABLE_ID_ tableId , TABLE_NAME_ tableName , TASK_ID_ taskId, CONTENT_ content
|
|
IS_PUBLIC_ isPublic,FILE_MSG_ fileMsg,RECEIVER_TIME_ receiverTime ,TABLE_ID_ tableId , TABLE_NAME_ tableName , TASK_ID_ taskId, CONTENT_ content
|
|
|
FROM ibps_msg_inner a JOIN ibps_msg_receiver b ON a.id_ = b.MSG_ID_ LEFT JOIN ibps_msg_read c ON a.id_ = c.msg_id_
|
|
FROM ibps_msg_inner a JOIN ibps_msg_receiver b ON a.id_ = b.MSG_ID_ LEFT JOIN ibps_msg_read c ON a.id_ = c.msg_id_
|
|
|
|
|
+ <where>
|
|
|
<if test="split !=null and split.length>0 ">
|
|
<if test="split !=null and split.length>0 ">
|
|
|
- where
|
|
|
|
|
<foreach collection="split" item="item" index="index" separator="OR">
|
|
<foreach collection="split" item="item" index="index" separator="OR">
|
|
|
b.receiver_id_ LIKE CONCAT('%',#{item},'%')
|
|
b.receiver_id_ LIKE CONCAT('%',#{item},'%')
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="isRead == 0"> AND c.RECEIVER_TIME_ is null </if>
|
|
|
|
|
+ <if test="isRead == 1"> AND c.RECEIVER_TIME_ is not null </if>
|
|
|
|
|
+ </where>
|
|
|
ORDER BY a.create_time_ DESC
|
|
ORDER BY a.create_time_ DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|