修改数据查询接口
This commit is contained in:
parent
f727a6d758
commit
f8010e8001
@ -36,13 +36,10 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSysWxUserInfoListNot" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult">
|
<select id="selectSysWxUserInfoListNot" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult">
|
||||||
<include refid="selectSysWxUserInfoVo"/>
|
select openid, nick_name, appid, phone, avatar_url, sex from sys_wx_user_info right join sys_order using(phone)
|
||||||
<where>
|
<where>
|
||||||
<if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
|
|
||||||
<if test="appid != null and appid != ''">and appid = #{appid}</if>
|
<if test="appid != null and appid != ''">and appid = #{appid}</if>
|
||||||
<if test="openid != null and openid != ''">and openid != #{openid}</if>
|
<if test="openid != null and openid != ''">and openid != #{openid}</if>
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
||||||
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<include refid="selectSysWxUserLogVo"/>
|
<include refid="selectSysWxUserLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
<if test="phone != null and phone != ''"> or phone = #{phone}</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
@ -59,9 +59,9 @@
|
|||||||
<include refid="selectSysWxUserLogVo"/>
|
<include refid="selectSysWxUserLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
||||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
<if test="phone != null and phone != ''"> or phone = #{phone}</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time asc
|
order by log_time asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult">
|
<select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user