|
@@ -45,10 +45,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="registerTime" column="register_time" />
|
|
<result property="registerTime" column="register_time" />
|
|
|
<result property="isReply" column="is_reply" />
|
|
<result property="isReply" column="is_reply" />
|
|
|
<result property="isPush" column="is_push" />
|
|
<result property="isPush" column="is_push" />
|
|
|
|
|
+ <result property="fsUserPhone" column="fs_user_phone" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectQwExternalContactVo">
|
|
<sql id="selectQwExternalContactVo">
|
|
|
- select id,qw_user_id,register_time,state,way_id,stage_status,first_time,open_id,is_interact,level, unionid, user_id,transfer_time,loss_time,del_time,transfer_num, external_user_id,transfer_status,status,create_time, name, avatar, type, gender, remark, description, tag_ids, remark_mobiles, remark_corp_name, add_way, oper_userid, corp_id, company_id, company_user_id, customer_id, fs_user_id,is_reply,is_push from qw_external_contact
|
|
|
|
|
|
|
+ select id,qw_user_id,register_time,state,way_id,stage_status,first_time,open_id,is_interact,level, unionid, user_id,transfer_time,loss_time,del_time,transfer_num, external_user_id,transfer_status,status,create_time, name, avatar, type, gender, remark, description, tag_ids, remark_mobiles, remark_corp_name, add_way, oper_userid, corp_id, company_id, company_user_id, customer_id, fs_user_id,is_reply,is_push,fs_user_phone from qw_external_contact
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectQwExternalContactList" parameterType="QwExternalContact" resultMap="QwExternalContactResult">
|
|
<select id="selectQwExternalContactList" parameterType="QwExternalContact" resultMap="QwExternalContactResult">
|
|
@@ -352,6 +353,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isProductBuy != null">is_product_buy = #{isProductBuy},</if>
|
|
<if test="isProductBuy != null">is_product_buy = #{isProductBuy},</if>
|
|
|
<if test="isUpsellProductBuy != null">is_upsell_product_buy = #{isUpsellProductBuy},</if>
|
|
<if test="isUpsellProductBuy != null">is_upsell_product_buy = #{isUpsellProductBuy},</if>
|
|
|
<if test="isPush != null">is_push = #{isPush},</if>
|
|
<if test="isPush != null">is_push = #{isPush},</if>
|
|
|
|
|
+ <if test="fsUserPhone != null">fs_user_phone = #{fsUserPhone},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|
|
@@ -784,5 +786,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by ec.create_time desc, ec.id desc
|
|
order by ec.create_time desc, ec.id desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <update id="batchUpdateFsUserPhoneById" parameterType="java.util.List">
|
|
|
|
|
+ UPDATE qw_external_contact
|
|
|
|
|
+ SET fs_user_phone = CASE id
|
|
|
|
|
+ <foreach collection="list" item="item">
|
|
|
|
|
+ WHEN #{item.id} THEN #{item.fsUserPhone}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ELSE fs_user_phone
|
|
|
|
|
+ END
|
|
|
|
|
+ WHERE id IN
|
|
|
|
|
+ <foreach collection="list" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item.id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|