修改数据查询接口

This commit is contained in:
huangdeliang 2020-12-09 22:09:07 +08:00
parent f727a6d758
commit f8010e8001
2 changed files with 24 additions and 27 deletions

View File

@ -36,13 +36,10 @@
</select>
<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>
<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="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>
</select>

View File

@ -50,7 +50,7 @@
<include refid="selectSysWxUserLogVo"/>
<where>
<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>
order by create_time desc
</select>
@ -59,9 +59,9 @@
<include refid="selectSysWxUserLogVo"/>
<where>
<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>
order by create_time asc
order by log_time asc
</select>
<select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult">