|
|
@@ -4,6 +4,8 @@
|
|
|
<resultMap id="BaseResultMap" type="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffUser">
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
<result column="third_staff_id" jdbcType="BIGINT" property="thirdStaffId" />
|
|
|
+ <result column="add_customer_time" jdbcType="BIGINT" property="addCustomerTime" />
|
|
|
+ <result column="remove_custiomer_time" jdbcType="BIGINT" property="removeCustiomerTime" />
|
|
|
<result column="unionid" jdbcType="VARCHAR" property="unionid" />
|
|
|
<result column="sex" jdbcType="INTEGER" property="sex" />
|
|
|
<result column="mobile" jdbcType="VARCHAR" property="mobile" />
|
|
|
@@ -85,9 +87,10 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, third_staff_id, unionid, sex, mobile, company_remark, acctid, avatar, `source`,
|
|
|
- english_name, remark_phone, realname, real_remarks, labelid, user_id, nickname, `position`,
|
|
|
- corp_id, remarks, seq, `status`, create_time, update_time
|
|
|
+ id, third_staff_id, add_customer_time, remove_custiomer_time, unionid, sex, mobile,
|
|
|
+ company_remark, acctid, avatar, `source`, english_name, remark_phone, realname, real_remarks,
|
|
|
+ labelid, user_id, nickname, `position`, corp_id, remarks, seq, `status`, create_time,
|
|
|
+ update_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffUserExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -123,22 +126,24 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffUser">
|
|
|
- insert into third_part_we_com_staff_user (id, third_staff_id, unionid,
|
|
|
- sex, mobile, company_remark,
|
|
|
- acctid, avatar, `source`,
|
|
|
- english_name, remark_phone, realname,
|
|
|
- real_remarks, labelid, user_id,
|
|
|
- nickname, `position`, corp_id,
|
|
|
- remarks, seq, `status`,
|
|
|
- create_time, update_time)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{thirdStaffId,jdbcType=BIGINT}, #{unionid,jdbcType=VARCHAR},
|
|
|
- #{sex,jdbcType=INTEGER}, #{mobile,jdbcType=VARCHAR}, #{companyRemark,jdbcType=VARCHAR},
|
|
|
- #{acctid,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER},
|
|
|
- #{englishName,jdbcType=VARCHAR}, #{remarkPhone,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR},
|
|
|
- #{realRemarks,jdbcType=VARCHAR}, #{labelid,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT},
|
|
|
- #{nickname,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{corpId,jdbcType=BIGINT},
|
|
|
- #{remarks,jdbcType=VARCHAR}, #{seq,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ insert into third_part_we_com_staff_user (id, third_staff_id, add_customer_time,
|
|
|
+ remove_custiomer_time, unionid, sex,
|
|
|
+ mobile, company_remark, acctid,
|
|
|
+ avatar, `source`, english_name,
|
|
|
+ remark_phone, realname, real_remarks,
|
|
|
+ labelid, user_id, nickname,
|
|
|
+ `position`, corp_id, remarks,
|
|
|
+ seq, `status`, create_time,
|
|
|
+ update_time)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{thirdStaffId,jdbcType=BIGINT}, #{addCustomerTime,jdbcType=BIGINT},
|
|
|
+ #{removeCustiomerTime,jdbcType=BIGINT}, #{unionid,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER},
|
|
|
+ #{mobile,jdbcType=VARCHAR}, #{companyRemark,jdbcType=VARCHAR}, #{acctid,jdbcType=VARCHAR},
|
|
|
+ #{avatar,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER}, #{englishName,jdbcType=VARCHAR},
|
|
|
+ #{remarkPhone,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR}, #{realRemarks,jdbcType=VARCHAR},
|
|
|
+ #{labelid,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{nickname,jdbcType=VARCHAR},
|
|
|
+ #{position,jdbcType=VARCHAR}, #{corpId,jdbcType=BIGINT}, #{remarks,jdbcType=VARCHAR},
|
|
|
+ #{seq,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffUser">
|
|
|
insert into third_part_we_com_staff_user
|
|
|
@@ -149,6 +154,12 @@
|
|
|
<if test="thirdStaffId != null">
|
|
|
third_staff_id,
|
|
|
</if>
|
|
|
+ <if test="addCustomerTime != null">
|
|
|
+ add_customer_time,
|
|
|
+ </if>
|
|
|
+ <if test="removeCustiomerTime != null">
|
|
|
+ remove_custiomer_time,
|
|
|
+ </if>
|
|
|
<if test="unionid != null">
|
|
|
unionid,
|
|
|
</if>
|
|
|
@@ -220,6 +231,12 @@
|
|
|
<if test="thirdStaffId != null">
|
|
|
#{thirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="addCustomerTime != null">
|
|
|
+ #{addCustomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="removeCustiomerTime != null">
|
|
|
+ #{removeCustiomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="unionid != null">
|
|
|
#{unionid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -300,6 +317,12 @@
|
|
|
<if test="record.thirdStaffId != null">
|
|
|
third_staff_id = #{record.thirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="record.addCustomerTime != null">
|
|
|
+ add_customer_time = #{record.addCustomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="record.removeCustiomerTime != null">
|
|
|
+ remove_custiomer_time = #{record.removeCustiomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="record.unionid != null">
|
|
|
unionid = #{record.unionid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -372,6 +395,8 @@
|
|
|
update third_part_we_com_staff_user
|
|
|
set id = #{record.id,jdbcType=BIGINT},
|
|
|
third_staff_id = #{record.thirdStaffId,jdbcType=BIGINT},
|
|
|
+ add_customer_time = #{record.addCustomerTime,jdbcType=BIGINT},
|
|
|
+ remove_custiomer_time = #{record.removeCustiomerTime,jdbcType=BIGINT},
|
|
|
unionid = #{record.unionid,jdbcType=VARCHAR},
|
|
|
sex = #{record.sex,jdbcType=INTEGER},
|
|
|
mobile = #{record.mobile,jdbcType=VARCHAR},
|
|
|
@@ -403,6 +428,12 @@
|
|
|
<if test="thirdStaffId != null">
|
|
|
third_staff_id = #{thirdStaffId,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="addCustomerTime != null">
|
|
|
+ add_customer_time = #{addCustomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="removeCustiomerTime != null">
|
|
|
+ remove_custiomer_time = #{removeCustiomerTime,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="unionid != null">
|
|
|
unionid = #{unionid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -472,6 +503,8 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComStaffUser">
|
|
|
update third_part_we_com_staff_user
|
|
|
set third_staff_id = #{thirdStaffId,jdbcType=BIGINT},
|
|
|
+ add_customer_time = #{addCustomerTime,jdbcType=BIGINT},
|
|
|
+ remove_custiomer_time = #{removeCustiomerTime,jdbcType=BIGINT},
|
|
|
unionid = #{unionid,jdbcType=VARCHAR},
|
|
|
sex = #{sex,jdbcType=INTEGER},
|
|
|
mobile = #{mobile,jdbcType=VARCHAR},
|