|
@@ -39,6 +39,7 @@
|
|
|
<result column="recommender" property="recommender" jdbcType="INTEGER"/>
|
|
<result column="recommender" property="recommender" jdbcType="INTEGER"/>
|
|
|
<result column="money_ticket" property="moneyTicket" jdbcType="INTEGER"/>
|
|
<result column="money_ticket" property="moneyTicket" jdbcType="INTEGER"/>
|
|
|
<result column="session_key" property="sessionKey" jdbcType="VARCHAR"/>
|
|
<result column="session_key" property="sessionKey" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="mini_id" property="miniId" jdbcType="INTEGER"/>
|
|
|
|
|
|
|
|
<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"/>
|
|
@@ -84,6 +85,7 @@
|
|
|
<result column="recommender" property="recommender" jdbcType="INTEGER"/>
|
|
<result column="recommender" property="recommender" jdbcType="INTEGER"/>
|
|
|
<result column="money_ticket" property="moneyTicket" jdbcType="INTEGER"/>
|
|
<result column="money_ticket" property="moneyTicket" jdbcType="INTEGER"/>
|
|
|
<result column="session_key" property="sessionKey" jdbcType="VARCHAR"/>
|
|
<result column="session_key" property="sessionKey" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="mini_id" property="miniId" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
@@ -91,7 +93,7 @@
|
|
|
country, province, city, district, create_time, del_flag, money_coin, money_point,
|
|
country, province, city, district, create_time, del_flag, money_coin, money_point,
|
|
|
contacter, contact_phone, company_name, company_type, admin_flag, cash_pledge,
|
|
contacter, contact_phone, company_name, company_type, admin_flag, cash_pledge,
|
|
|
approve_flag, store_flag, company_flag, approve_step, notice_flag, remind_flag,
|
|
approve_flag, store_flag, company_flag, approve_step, notice_flag, remind_flag,
|
|
|
- create_flag, level_id, house_card, recommender, money_ticket,session_key
|
|
|
|
|
|
|
+ create_flag, level_id, house_card, recommender, money_ticket,session_key,mini_id
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
select
|
|
@@ -222,6 +224,9 @@
|
|
|
<if test="sessionKey != null">
|
|
<if test="sessionKey != null">
|
|
|
session_key,
|
|
session_key,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="miniId != null">
|
|
|
|
|
+ mini_id,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -338,6 +343,9 @@
|
|
|
<if test="sessionKey != null">
|
|
<if test="sessionKey != null">
|
|
|
#{sessionKey},
|
|
#{sessionKey},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="miniId != null">
|
|
|
|
|
+ #{miniId},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
|
|
@@ -454,6 +462,9 @@
|
|
|
<if test="sessionKey != null">
|
|
<if test="sessionKey != null">
|
|
|
session_key = #{sessionKey},
|
|
session_key = #{sessionKey},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="miniId != null">
|
|
|
|
|
+ mini_id = #{miniId},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -564,6 +575,9 @@
|
|
|
<if test="record.moneyTicket != null and !"".equals(record.moneyTicket)">
|
|
<if test="record.moneyTicket != null and !"".equals(record.moneyTicket)">
|
|
|
and money_ticket = #{record.moneyTicket}
|
|
and money_ticket = #{record.moneyTicket}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.miniId != null and !"".equals(record.miniId)">
|
|
|
|
|
+ and mini_id = #{record.miniId}
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
@@ -688,6 +702,9 @@
|
|
|
and money_ticket = #{moneyTicket}
|
|
and money_ticket = #{moneyTicket}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="miniId != null and !"".equals(miniId)">
|
|
|
|
|
+ and mini_id = #{miniId}
|
|
|
|
|
+ </if>
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
OR nickname LIKE concat('%',#{searchKey},'%')
|
|
OR nickname LIKE concat('%',#{searchKey},'%')
|
|
@@ -766,6 +783,9 @@
|
|
|
<if test="moneyTicket != null and !"".equals(moneyTicket)">
|
|
<if test="moneyTicket != null and !"".equals(moneyTicket)">
|
|
|
and money_ticket = #{moneyTicket}
|
|
and money_ticket = #{moneyTicket}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="miniId != null and !"".equals(miniId)">
|
|
|
|
|
+ and mini_id = #{miniId}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
LIMIT 1
|
|
LIMIT 1
|
|
|
</select>
|
|
</select>
|
|
@@ -847,6 +867,11 @@
|
|
|
and money_ticket = #{moneyTicket}
|
|
and money_ticket = #{moneyTicket}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="miniId != null and !"".equals(miniId)">
|
|
|
|
|
+ and mini_id = #{miniId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</where>
|
|
</where>
|
|
|
LIMIT 1
|
|
LIMIT 1
|
|
|
</select>
|
|
</select>
|