|
|
@@ -449,6 +449,72 @@
|
|
|
</where>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
+ <select id="querySingleUserInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserInfo">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from user_info
|
|
|
+ <where>
|
|
|
+ and del_flag = 'N'
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="username != null and !"".equals(username)">
|
|
|
+ and username = #{username}
|
|
|
+ </if>
|
|
|
+ <if test="nickname != null and !"".equals(nickname)">
|
|
|
+ and nickname = #{nickname}
|
|
|
+ </if>
|
|
|
+ <if test="password != null and !"".equals(password)">
|
|
|
+ and password = #{password}
|
|
|
+ </if>
|
|
|
+ <if test="icon != null and !"".equals(icon)">
|
|
|
+ and icon = #{icon}
|
|
|
+ </if>
|
|
|
+ <if test="birthday != null and !"".equals(birthday)">
|
|
|
+ and birthday = #{birthday}
|
|
|
+ </if>
|
|
|
+ <if test="sex != null and !"".equals(sex)">
|
|
|
+ and sex = #{sex}
|
|
|
+ </if>
|
|
|
+ <if test="openId != null and !"".equals(openId)">
|
|
|
+ and open_id = #{openId}
|
|
|
+ </if>
|
|
|
+ <if test="unionId != null and !"".equals(unionId)">
|
|
|
+ and union_id = #{unionId}
|
|
|
+ </if>
|
|
|
+ <if test="phone != null and !"".equals(phone)">
|
|
|
+ and phone = #{phone}
|
|
|
+ </if>
|
|
|
+ <if test="mail != null and !"".equals(mail)">
|
|
|
+ and mail = #{mail}
|
|
|
+ </if>
|
|
|
+ <if test="country != null and !"".equals(country)">
|
|
|
+ and country = #{country}
|
|
|
+ </if>
|
|
|
+ <if test="province != null and !"".equals(province)">
|
|
|
+ and province = #{province}
|
|
|
+ </if>
|
|
|
+ <if test="city != null and !"".equals(city)">
|
|
|
+ and city = #{city}
|
|
|
+ </if>
|
|
|
+ <if test="district != null and !"".equals(district)">
|
|
|
+ and district = #{district}
|
|
|
+ </if>
|
|
|
+ <if test="roleId != null and !"".equals(roleId)">
|
|
|
+ and role_id = #{roleId}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
+ and del_flag = #{delFlag}
|
|
|
+ </if>
|
|
|
+ <if test="departId != null and !"".equals(departId)">
|
|
|
+ and depart_id = #{departId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ LIMIT 1
|
|
|
+ </select>
|
|
|
<select id="login" resultMap="BaseResultMap" parameterType="java.util.Map">
|
|
|
SELECT
|
|
|
<include refid="Base_Column_List"/>
|