|
@@ -2207,21 +2207,18 @@ inner join(
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getUserByNameList" parameterType="java.lang.String" resultType="com.goafanti.customer.bo.CustomerSimpleBo">
|
|
<select id="getUserByNameList" parameterType="java.lang.String" resultType="com.goafanti.customer.bo.CustomerSimpleBo">
|
|
|
- select id,nickname name,aid
|
|
|
|
|
- from `user` where type = 1 and status =0 and source in (1,2,3)
|
|
|
|
|
- and nickname like concat('%',#{name},'%')
|
|
|
|
|
- <if test="type==1">
|
|
|
|
|
- and share_type in (0,2,3,4)
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ select a.id,a.nickname name,a.aid,a.channel,a.share_type shareType ,
|
|
|
|
|
+ a.new_channel newChannel,b.name aname
|
|
|
|
|
+ from `user` a left join admin b on a.aid =b.id
|
|
|
|
|
+ where a.type = 1 and a.status =0 and a.source in (1,2,3)
|
|
|
|
|
+ and a.nickname like concat('%',#{name},'%')
|
|
|
|
|
+
|
|
|
<if test="page_sql != null">
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
${page_sql}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getUserByNameCount" resultType="java.lang.Integer" >
|
|
<select id="getUserByNameCount" resultType="java.lang.Integer" >
|
|
|
select count(*) from `user` where type = 1 and status =0 and source in (1,2,3) and nickname like concat('%',#{name},'%')
|
|
select count(*) from `user` where type = 1 and status =0 and source in (1,2,3) and nickname like concat('%',#{name},'%')
|
|
|
- <if test="type==1">
|
|
|
|
|
- and share_type in (0,2,3,4)
|
|
|
|
|
- </if>
|
|
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getAllUser" resultType="com.goafanti.common.bo.OutUser">
|
|
<select id="getAllUser" resultType="com.goafanti.common.bo.OutUser">
|
|
|
select id,name ,province ,name_mobile nameMobile from user_now
|
|
select id,name ,province ,name_mobile nameMobile from user_now
|