|
|
@@ -34,6 +34,11 @@
|
|
|
<result column="notice_flag" property="noticeFlag" jdbcType="CHAR"/>
|
|
|
<result column="remind_flag" property="remindFlag" jdbcType="CHAR"/>
|
|
|
<result column="create_flag" property="createFlag" jdbcType="CHAR"/>
|
|
|
+ <result column="ttdj_id" property="ttdjId" jdbcType="VARCHAR"/>
|
|
|
+ <result column="is_vip" property="isVip" jdbcType="BIT"/>
|
|
|
+ <result column="start_date" property="startDate" jdbcType="VARCHAR"/>
|
|
|
+ <result column="expire_date" property="expireDate" jdbcType="VARCHAR"/>
|
|
|
+ <result column="token" property="token" jdbcType="VARCHAR"/>
|
|
|
<association property="departId" javaType="string" column="id"
|
|
|
select="com.izouma.awesomeadmin.dao.DepartInfoMapper.getUserDepartId"/>
|
|
|
<association property="roleId" javaType="string" column="id"
|
|
|
@@ -44,7 +49,7 @@
|
|
|
country, province, city, district, create_time, del_flag, money_coin, money_point,
|
|
|
contacter, contact_phone, company_name, company_type, admin_flag, cash_pledge,
|
|
|
approve_flag, store_flag, company_flag, approve_step, notice_flag, remind_flag,
|
|
|
- create_flag
|
|
|
+ create_flag, ttdj_id, is_vip, start_date, expire_date, token
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
@@ -53,9 +58,9 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
- delete
|
|
|
- from sys_user
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ DELETE
|
|
|
+ FROM sys_user
|
|
|
+ WHERE id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.UserInfo" useGeneratedKeys="true"
|
|
|
keyProperty="id">
|
|
|
@@ -160,6 +165,21 @@
|
|
|
<if test="createFlag != null">
|
|
|
create_flag,
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null">
|
|
|
+ ttdj_id,
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null">
|
|
|
+ is_vip,
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ start_date,
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null">
|
|
|
+ expire_date,
|
|
|
+ </if>
|
|
|
+ <if test="token != null">
|
|
|
+ token,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -261,6 +281,21 @@
|
|
|
<if test="createFlag != null">
|
|
|
#{createFlag},
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null">
|
|
|
+ #{ttdjId},
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null">
|
|
|
+ #{isVip},
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ #{startDate},
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null">
|
|
|
+ #{expireDate},
|
|
|
+ </if>
|
|
|
+ <if test="token != null">
|
|
|
+ #{token},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
|
|
|
@@ -362,6 +397,21 @@
|
|
|
<if test="createFlag != null">
|
|
|
create_flag = #{createFlag},
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null">
|
|
|
+ ttdj_id = #{ttdjId},
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null">
|
|
|
+ is_vip = #{isVip},
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ start_date = #{startDate},
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null">
|
|
|
+ expire_date = #{expireDate},
|
|
|
+ </if>
|
|
|
+ <if test="token != null">
|
|
|
+ token = #{token},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -459,6 +509,21 @@
|
|
|
<if test="record.createFlag != null and !"".equals(record.createFlag)">
|
|
|
and create_flag = #{record.createFlag}
|
|
|
</if>
|
|
|
+ <if test="record.ttdjId != null and !"".equals(record.ttdjId)">
|
|
|
+ and ttdj_id = #{record.ttdjId}
|
|
|
+ </if>
|
|
|
+ <if test="record.isVip != null and !"".equals(record.isVip)">
|
|
|
+ and is_vip = #{record.isVip}
|
|
|
+ </if>
|
|
|
+ <if test="record.startDate != null and !"".equals(record.startDate)">
|
|
|
+ and start_date = #{record.startDate}
|
|
|
+ </if>
|
|
|
+ <if test="record.expireDate != null and !"".equals(record.expireDate)">
|
|
|
+ and expire_date = #{record.expireDate}
|
|
|
+ </if>
|
|
|
+ <if test="record.token != null and !"".equals(record.token)">
|
|
|
+ and token = #{record.token}
|
|
|
+ </if>
|
|
|
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -563,10 +628,24 @@
|
|
|
<if test="approveStep != null and !"".equals(approveStep)">
|
|
|
and approve_step = #{approveStep}
|
|
|
</if>
|
|
|
-
|
|
|
<if test="createFlag != null and !"".equals(createFlag)">
|
|
|
and create_flag = #{createFlag}
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null and !"".equals(ttdjId)">
|
|
|
+ and ttdj_id = #{ttdjId}
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null and !"".equals(isVip)">
|
|
|
+ and is_vip = #{isVip}
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null and !"".equals(startDate)">
|
|
|
+ and start_date = #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null and !"".equals(expireDate)">
|
|
|
+ and expire_date = #{expireDate}
|
|
|
+ </if>
|
|
|
+ <if test="token != null and !"".equals(token)">
|
|
|
+ and token = #{token}
|
|
|
+ </if>
|
|
|
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -643,6 +722,21 @@
|
|
|
<if test="createFlag != null and !"".equals(createFlag)">
|
|
|
and create_flag = #{createFlag}
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null and !"".equals(ttdjId)">
|
|
|
+ and ttdj_id = #{ttdjId}
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null and !"".equals(isVip)">
|
|
|
+ and is_vip = #{isVip}
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null and !"".equals(startDate)">
|
|
|
+ and start_date = #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null and !"".equals(expireDate)">
|
|
|
+ and expire_date = #{expireDate}
|
|
|
+ </if>
|
|
|
+ <if test="token != null and !"".equals(token)">
|
|
|
+ and token = #{token}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
@@ -709,6 +803,21 @@
|
|
|
<if test="createFlag != null and !"".equals(createFlag)">
|
|
|
and create_flag = #{createFlag}
|
|
|
</if>
|
|
|
+ <if test="ttdjId != null and !"".equals(ttdjId)">
|
|
|
+ and ttdj_id = #{ttdjId}
|
|
|
+ </if>
|
|
|
+ <if test="isVip != null and !"".equals(isVip)">
|
|
|
+ and is_vip = #{isVip}
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null and !"".equals(startDate)">
|
|
|
+ and start_date = #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="expireDate != null and !"".equals(expireDate)">
|
|
|
+ and expire_date = #{expireDate}
|
|
|
+ </if>
|
|
|
+ <if test="token != null and !"".equals(token)">
|
|
|
+ and token = #{token}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
@@ -732,8 +841,10 @@
|
|
|
<select id="findUserByRoleName" resultType="java.lang.String">
|
|
|
SELECT user_id
|
|
|
FROM sys_user_role
|
|
|
- WHERE FIND_IN_SET((SELECT id FROM sys_role WHERE enname = #{roleName}
|
|
|
- AND sys_role.del_flag = 'N'), role_id)
|
|
|
+ WHERE FIND_IN_SET((SELECT id
|
|
|
+ FROM sys_role
|
|
|
+ WHERE enname = #{roleName}
|
|
|
+ AND sys_role.del_flag = 'N'), role_id)
|
|
|
</select>
|
|
|
<update id="delete">
|
|
|
UPDATE sys_user SET del_flag = 'Y'
|