|
@@ -23,6 +23,7 @@
|
|
|
<result column="config" property="config" jdbcType="VARCHAR"/>
|
|
<result column="config" property="config" jdbcType="VARCHAR"/>
|
|
|
<result column="mis_child" property="misChild" jdbcType="VARCHAR"/>
|
|
<result column="mis_child" property="misChild" jdbcType="VARCHAR"/>
|
|
|
<result column="inherit_flag" property="inheritFlag" jdbcType="CHAR"/>
|
|
<result column="inherit_flag" property="inheritFlag" jdbcType="CHAR"/>
|
|
|
|
|
+ <result column="use_flag" property="useFlag" jdbcType="CHAR"/>
|
|
|
<association property="departId" javaType="string" column="id"
|
|
<association property="departId" javaType="string" column="id"
|
|
|
select="com.izouma.awesomeadmin.dao.DepartInfoMapper.getUserDepartId"/>
|
|
select="com.izouma.awesomeadmin.dao.DepartInfoMapper.getUserDepartId"/>
|
|
|
<association property="roleId" javaType="string" column="id"
|
|
<association property="roleId" javaType="string" column="id"
|
|
@@ -31,7 +32,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
id, username, nickname, icon, birthday, sex, open_id, union_id, phone, mail,
|
|
id, username, nickname, icon, birthday, sex, open_id, union_id, phone, mail,
|
|
|
country, province, city, district, create_time, del_flag, work_number, config,
|
|
country, province, city, district, create_time, del_flag, work_number, config,
|
|
|
- mis_child, inherit_flag, password
|
|
|
|
|
|
|
+ mis_child, inherit_flag, password, use_flag
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
select
|
|
@@ -114,6 +115,9 @@
|
|
|
<if test="inheritFlag != null">
|
|
<if test="inheritFlag != null">
|
|
|
inherit_flag,
|
|
inherit_flag,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="useFlag != null">
|
|
|
|
|
+ use_flag,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -182,6 +186,9 @@
|
|
|
<if test="inheritFlag != null">
|
|
<if test="inheritFlag != null">
|
|
|
#{inheritFlag,jdbcType=CHAR},
|
|
#{inheritFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="useFlag != null">
|
|
|
|
|
+ #{useFlag,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
|
|
@@ -250,6 +257,9 @@
|
|
|
<if test="inheritFlag != null">
|
|
<if test="inheritFlag != null">
|
|
|
inherit_flag = #{inheritFlag,jdbcType=CHAR},
|
|
inherit_flag = #{inheritFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="useFlag != null">
|
|
|
|
|
+ use_flag = #{useFlag,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -314,6 +324,9 @@
|
|
|
<if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
<if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
and del_flag = #{record.delFlag}
|
|
and del_flag = #{record.delFlag}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.useFlag != null and !"".equals(record.useFlag)">
|
|
|
|
|
+ and use_flag = #{record.useFlag}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
order by id desc
|
|
order by id desc
|
|
|
</select>
|
|
</select>
|