|
@@ -17,6 +17,15 @@
|
|
|
from content_platform_gzh_account
|
|
|
where create_account_id = #{createAccountId}
|
|
|
and status = 1
|
|
|
+ <if test="param.name!= null and param.name!= ''">
|
|
|
+ and name like concat('%', #{param.name}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="param.ghId!= null and param.ghId!= ''">
|
|
|
+ and gh_id = #{param.ghId}
|
|
|
+ </if>
|
|
|
+ <if test="param.type!= null">
|
|
|
+ and type = #{param.type}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getCooperateAccountList"
|
|
@@ -25,6 +34,15 @@
|
|
|
from content_platform_gzh_account
|
|
|
where create_account_id = #{createAccountId}
|
|
|
and status = 1
|
|
|
+ <if test="param.name!= null and param.name!= ''">
|
|
|
+ and name like concat('%', #{param.name}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="param.ghId!= null and param.ghId!= ''">
|
|
|
+ and gh_id = #{param.ghId}
|
|
|
+ </if>
|
|
|
+ <if test="param.type!= null">
|
|
|
+ and type = #{param.type}
|
|
|
+ </if>
|
|
|
order by create_timestamp desc
|
|
|
limit #{offset}, #{pageSize}
|
|
|
</select>
|