|
|
@@ -2,11 +2,6 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.goafanti.common.dao.UserMidMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.UserMid">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="uid" jdbcType="VARCHAR" property="uid" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
@@ -14,59 +9,37 @@
|
|
|
<result column="last_sign_time" jdbcType="TIMESTAMP" property="lastSignTime" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="big_customer" jdbcType="INTEGER" property="bigCustomer" />
|
|
|
+ <result column="update_aid" jdbcType="VARCHAR" property="updateAid" />
|
|
|
+ <result column="update_name" jdbcType="VARCHAR" property="updateName" />
|
|
|
+ <result column="date_update_time" jdbcType="TIMESTAMP" property="dateUpdateTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
- id, `uid`, aid, last_follow_time, last_sign_time, create_time, big_customer
|
|
|
+ id, `uid`, aid, last_follow_time, last_sign_time, create_time, big_customer, update_aid,
|
|
|
+ update_name, date_update_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from user_mid
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
delete from user_mid
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.goafanti.common.model.UserMid">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
- insert into user_mid (id, `uid`, aid,
|
|
|
- last_follow_time, last_sign_time, create_time,
|
|
|
- big_customer)
|
|
|
- values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR},
|
|
|
- #{lastFollowTime,jdbcType=TIMESTAMP}, #{lastSignTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{bigCustomer,jdbcType=INTEGER})
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.UserMid" useGeneratedKeys="true">
|
|
|
+ insert into user_mid (`uid`, aid, last_follow_time,
|
|
|
+ last_sign_time, create_time, big_customer,
|
|
|
+ update_aid, update_name, date_update_time
|
|
|
+ )
|
|
|
+ values (#{uid,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{lastFollowTime,jdbcType=TIMESTAMP},
|
|
|
+ #{lastSignTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{bigCustomer,jdbcType=INTEGER},
|
|
|
+ #{updateAid,jdbcType=VARCHAR}, #{updateName,jdbcType=VARCHAR}, #{dateUpdateTime,jdbcType=TIMESTAMP}
|
|
|
+ )
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.goafanti.common.model.UserMid">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.UserMid" useGeneratedKeys="true">
|
|
|
insert into user_mid
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- id,
|
|
|
- </if>
|
|
|
<if test="uid != null">
|
|
|
`uid`,
|
|
|
</if>
|
|
|
@@ -85,11 +58,17 @@
|
|
|
<if test="bigCustomer != null">
|
|
|
big_customer,
|
|
|
</if>
|
|
|
+ <if test="updateAid != null">
|
|
|
+ update_aid,
|
|
|
+ </if>
|
|
|
+ <if test="updateName != null">
|
|
|
+ update_name,
|
|
|
+ </if>
|
|
|
+ <if test="dateUpdateTime != null">
|
|
|
+ date_update_time,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="uid != null">
|
|
|
#{uid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -108,14 +87,18 @@
|
|
|
<if test="bigCustomer != null">
|
|
|
#{bigCustomer,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="updateAid != null">
|
|
|
+ #{updateAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateName != null">
|
|
|
+ #{updateName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dateUpdateTime != null">
|
|
|
+ #{dateUpdateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserMid">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
update user_mid
|
|
|
<set>
|
|
|
<if test="uid != null">
|
|
|
@@ -136,25 +119,31 @@
|
|
|
<if test="bigCustomer != null">
|
|
|
big_customer = #{bigCustomer,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="updateAid != null">
|
|
|
+ update_aid = #{updateAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateName != null">
|
|
|
+ update_name = #{updateName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dateUpdateTime != null">
|
|
|
+ date_update_time = #{dateUpdateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.UserMid">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu May 06 15:37:38 CST 2021.
|
|
|
- -->
|
|
|
update user_mid
|
|
|
set `uid` = #{uid,jdbcType=VARCHAR},
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
last_follow_time = #{lastFollowTime,jdbcType=TIMESTAMP},
|
|
|
last_sign_time = #{lastSignTime,jdbcType=TIMESTAMP},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- big_customer = #{bigCustomer,jdbcType=INTEGER}
|
|
|
+ big_customer = #{bigCustomer,jdbcType=INTEGER},
|
|
|
+ update_aid = #{updateAid,jdbcType=VARCHAR},
|
|
|
+ update_name = #{updateName,jdbcType=VARCHAR},
|
|
|
+ date_update_time = #{dateUpdateTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
-
|
|
|
<update id="updateByUid" parameterType="com.goafanti.common.model.UserMid">
|
|
|
update user_mid
|
|
|
<set>
|
|
|
@@ -173,6 +162,15 @@
|
|
|
<if test="bigCustomer != null">
|
|
|
big_customer = #{bigCustomer,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="updateAid != null">
|
|
|
+ update_aid = #{updateAid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateName != null">
|
|
|
+ update_name = #{updateName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="dateUpdateTime != null">
|
|
|
+ date_update_time = #{dateUpdateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where `uid` = #{uid,jdbcType=VARCHAR}
|
|
|
</update>
|