|
@@ -41,12 +41,12 @@
|
|
|
SELECT ig.* FROM im_group ig
|
|
|
LEFT JOIN im_group_member igm ON igm.group_id_ = ig.id_
|
|
|
<where>
|
|
|
- <if test="params.userId != null">
|
|
|
- AND igm.user_id_ = #{params.userId}
|
|
|
+ <if test="userId != null">
|
|
|
+ AND igm.user_id_ = #{userId}
|
|
|
</if>
|
|
|
- <if test="params.search != null and param.search != ''">
|
|
|
- AND (ig.id_ = #{params.search} OR
|
|
|
- ig.name_ LIKE CONCAT('%',#{params.search},'%') OR ig.introduce_ LIKE CONCAT('%',#{params.search},'%'))
|
|
|
+ <if test="search != null and search != ''">
|
|
|
+ AND (ig.id_ = #{search} OR
|
|
|
+ ig.name_ LIKE CONCAT('%',#{search},'%') OR ig.introduce_ LIKE CONCAT('%',#{search},'%'))
|
|
|
</if>
|
|
|
</where>
|
|
|
ORDER BY id_ DESC
|