|
|
@@ -46,18 +46,25 @@
|
|
|
<include refid="Base_Column"/>
|
|
|
from `user_base_info`
|
|
|
<where>
|
|
|
+ <if test="id != null">
|
|
|
+ AND `id` = #{id}
|
|
|
+ </if>
|
|
|
<if test="nickName != null and nickName !=''">
|
|
|
AND `nick_name` = #{nickName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
- <if test="userName != null and userName !=''">
|
|
|
+ <if test="mp != null and mp !=''">
|
|
|
+ AND `id` in (select `uid` from `user_login_account` where `login_account` like
|
|
|
+ CONCAT('%',#{mp,jdbcType=VARCHAR},'%'))
|
|
|
+ </if>
|
|
|
+ <if test="email != null and email !=''">
|
|
|
AND `id` in (select `uid` from `user_login_account` where `login_account` like
|
|
|
- CONCAT('%',#{userName,jdbcType=VARCHAR},'%'))
|
|
|
+ CONCAT('%',#{email,jdbcType=VARCHAR},'%'))
|
|
|
</if>
|
|
|
<if test="state != null">
|
|
|
- AND `state` = #{state, typeHandler=com.dliyun.commons.typeHandler.IEnumTypeHandler}
|
|
|
+ AND `state` = #{state, typeHandler=com.zhiqiyun.open.mybatis.typeHandler.IEnumTypeHandler}
|
|
|
</if>
|
|
|
<if test="gender != null">
|
|
|
- AND `gender` = #{gender, typeHandler=com.dliyun.commons.typeHandler.IEnumTypeHandler}
|
|
|
+ AND `gender` = #{gender, typeHandler=com.zhiqiyun.open.mybatis.typeHandler.IEnumTypeHandler}
|
|
|
</if>
|
|
|
<if test="registerTime != null">
|
|
|
AND `register_time` between #{registerTime.statDate, jdbcType=TIMESTAMP} and
|