|
@@ -77,12 +77,27 @@
|
|
|
<if test="search != null and search != ''">
|
|
|
AND (ses.id_ = #{search} OR ses.name_ LIKE CONCAT('%',#{search},'%'))
|
|
|
</if>
|
|
|
- <if test="createUserId != null">
|
|
|
- AND ses.create_user_id_ = #{createUserId}
|
|
|
- </if>
|
|
|
- <if test="type != null and type != ''">
|
|
|
+ <if test="type != null and type == 'COMMON'">
|
|
|
AND ses.type_ = #{type}
|
|
|
</if>
|
|
|
+ <if test="type != null and type == 'ALL'">
|
|
|
+ <if test="createUserId != null">
|
|
|
+ AND (ses.type_ = 'COMMON' OR (ses.create_user_id_ = #{createUserId} AND ses.type_ = 'PERSON'))
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="type != null and type == 'PERSON'">
|
|
|
+ <if test="createUserId != null">
|
|
|
+ AND ses.type_ = #{type} AND ses.create_user_id_ = #{createUserId}
|
|
|
+ </if>
|
|
|
+ <if test="createUserId == null">
|
|
|
+ AND ses.type_ = #{type}
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="type == null or type == ''">
|
|
|
+ <if test="createUserId != null">
|
|
|
+ AND ses.create_user_id_ = #{createUserId}
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="subjectId != null">
|
|
|
AND FIND_IN_SET(#{subjectId},ses.subject_ids_)
|
|
|
</if>
|