main
parent
ce73b42552
commit
969c4f4fe7
|
|
@ -56,16 +56,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
left join app_user u on u.id = a.user_id
|
||||
left join app_town t on t.id = a.address
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="username != null "> and username like concat('%',#{username},'%')</if>
|
||||
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
|
||||
<if test="topicId != null "> and topic_id like concat('%',#{topicId},'%')</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="privacyStatus != null "> and privacy_status = #{privacyStatus}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and updateBy = #{updateBy}</if>
|
||||
<if test="isTop != null "> and is_top = #{isTop}</if>
|
||||
<if test="isMember != null "> and is_member = #{isMember}</if>
|
||||
<if test="userId != null "> and a.user_id = #{userId}</if>
|
||||
<if test="username != null "> and u.username like concat('%',#{username},'%')</if>
|
||||
<if test="content != null and content != ''"> and a.content = #{content}</if>
|
||||
<if test="videoUrl != null and videoUrl != ''"> and a.video_url = #{videoUrl}</if>
|
||||
<if test="topicId != null "> and a.topic_id like concat('%',#{topicId},'%')</if>
|
||||
<if test="address != null and address != ''"> and a.address = #{address}</if>
|
||||
<if test="privacyStatus != null "> and a.privacy_status = #{privacyStatus}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and a.updateBy = #{updateBy}</if>
|
||||
<if test="isTop != null "> and a.is_top = #{isTop}</if>
|
||||
<if test="isMember != null "> and u.is_member = #{isMember}</if>
|
||||
</where>
|
||||
order by a.is_top,a.create_time
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue