| | |
| | | <if test="messageParam.channelCode !='' and messageParam.channelCode != null"> |
| | | and t1.channel_code=#{messageParam.channelCode} |
| | | </if> |
| | | <if test="messageParam.targetTo !='' and messageParam.targetTo != null"> |
| | | and t1.target_to=#{messageParam.targetTo} |
| | | </if> |
| | | <if test="messageParam.messageType != null"> |
| | | and t1.message_type=#{messageParam.messageType} |
| | | </if> |
| | | <if test="messageParam.isView != null"> |
| | | and t1.is_view=#{messageParam.isView} |
| | | </if> |
| | | <if test="messageParam.startTime != null and messageParam.startTime != '' and messageParam.endTime != null and messageParam.endTime != '' "> |
| | | and t1.create_time between #{messageParam.startTime} and #{messageParam.endTime} |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectUserColumn" resultType="com.ycl.vo.message.MessageColumnUserVO"> |
| | | SELECT |
| | | t1.*, |
| | | t2.is_receive |
| | | FROM |
| | | ums_message_column t1 LEFT JOIN ums_message_column_set t2 ON t1.id = t2.message_column_id |
| | | WHERE |
| | | t2.user_id=#{id} |
| | | and t1.is_show=1 |
| | | </select> |
| | | |
| | | </mapper> |