|
@@ -69,10 +69,11 @@
|
|
|
<result property="qwExtId" column="qw_ext_id" />
|
|
|
<result property="rank" column="rank" />
|
|
|
<result property="react" column="react" />
|
|
|
+ <result property="orderCount" column="order_count" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserVo">
|
|
|
- select user_id, username, nick_name, avatar, phone, integral, status, `level`, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres, tui_user_id, tui_time, tui_user_count, ma_open_id, mp_open_id, union_id, is_del, user_code, remark, nickname, create_time, update_time, last_ip, now_money, brokerage_price, balance, sign_num, integral_status, is_buy, password, real_name, birthday, id_card, jpush_id, is_vip, vip_start_date, vip_end_date, vip_level, vip_status, sex, store_open_id, is_official_account_auth, is_push, is_individuation_push, is_weixin_auth, company_id, company_user_id, register_date, register_code, test, login_device, source, is_add_qw, qw_user_id, is_show, parent_id, course_ma_open_id, history_app, qw_ext_id, `rank`, react from fs_user
|
|
|
+ select user_id, username, nick_name, avatar, phone, integral, status, `level`, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres, tui_user_id, tui_time, tui_user_count, ma_open_id, mp_open_id, union_id, is_del, user_code, remark, nickname, create_time, update_time, last_ip, now_money, brokerage_price, balance, sign_num, integral_status, is_buy, password, real_name, birthday, id_card, jpush_id, is_vip, vip_start_date, vip_end_date, vip_level, vip_status, sex, store_open_id, is_official_account_auth, is_push, is_individuation_push, is_weixin_auth, company_id, company_user_id, register_date, register_code, test, login_device, source, is_add_qw, qw_user_id, is_show, parent_id, course_ma_open_id, history_app, qw_ext_id, `rank`, react,order_count from fs_user
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserList" parameterType="FsUserScrm" resultMap="FsUserResult">
|
|
@@ -444,6 +445,7 @@
|
|
|
<if test="qwExtId != null">qw_ext_id,</if>
|
|
|
<if test="rank != null">rank,</if>
|
|
|
<if test="react != null">react,</if>
|
|
|
+ <if test="orderCount != null">order_count,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="username != null">#{username},</if>
|
|
@@ -509,55 +511,55 @@
|
|
|
<if test="qwExtId != null">#{qwExtId},</if>
|
|
|
<if test="rank != null">#{rank},</if>
|
|
|
<if test="react != null">#{react},</if>
|
|
|
+ <if test="orderCount != null">#{orderCount},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateFsUser" parameterType="FsUserScrm">
|
|
|
update fs_user
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="username != null">username = #{username},</if>
|
|
|
- <if test="password != null">password = #{password},</if>
|
|
|
- <if test="realName != null">real_name = #{realName},</if>
|
|
|
- <if test="birthday != null">birthday = #{birthday},</if>
|
|
|
- <if test="idCard != null">id_card = #{idCard},</if>
|
|
|
- <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="nickName != null">nick_name = #{nickName},</if>
|
|
|
<if test="nickname != null">nickname = #{nickname},</if>
|
|
|
<if test="avatar != null">avatar = #{avatar},</if>
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- <if test="lastIp != null">last_ip = #{lastIp},</if>
|
|
|
- <if test="nowMoney != null">now_money = #{nowMoney},</if>
|
|
|
- <if test="brokeragePrice != null">brokerage_price = #{brokeragePrice},</if>
|
|
|
<if test="integral != null">integral = #{integral},</if>
|
|
|
<if test="signNum != null">sign_num = #{signNum},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
- <if test="level != null">level = #{level},</if>
|
|
|
- <if test="spreadUserId != null">spread_user_id = #{spreadUserId},</if>
|
|
|
- <if test="spreadTime != null">spread_time = #{spreadTime},</if>
|
|
|
- <if test="userType != null and userType != ''">user_type = #{userType},</if>
|
|
|
- <if test="isPromoter != null">is_promoter = #{isPromoter},</if>
|
|
|
- <if test="payCount != null">pay_count = #{payCount},</if>
|
|
|
- <if test="spreadCount != null">spread_count = #{spreadCount},</if>
|
|
|
- <if test="addres != null and addres != ''">addres = #{addres},</if>
|
|
|
+ <if test="tuiUserId != null">tui_user_id = #{tuiUserId},</if>
|
|
|
+ <if test="tuiTime != null">tui_time = #{tuiTime},</if>
|
|
|
+ <if test="tuiUserCount != null">tui_user_count = #{tuiUserCount},</if>
|
|
|
<if test="maOpenId != null">ma_open_id = #{maOpenId},</if>
|
|
|
<if test="mpOpenId != null">mp_open_id = #{mpOpenId},</if>
|
|
|
<if test="unionId != null">union_id = #{unionId},</if>
|
|
|
<if test="isDel != null">is_del = #{isDel},</if>
|
|
|
+ <if test="userCode != null">user_code = #{userCode},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="lastIp != null">last_ip = #{lastIp},</if>
|
|
|
+ <if test="balance != null">balance = #{balance},</if>
|
|
|
+ <if test="integralStatus != null">integral_status = #{integralStatus},</if>
|
|
|
+ <if test="isBuy != null">is_buy = #{isBuy},</if>
|
|
|
+ <if test="password != null">password = #{password},</if>
|
|
|
+ <if test="jpushId != null">jpush_id = #{jpushId},</if>
|
|
|
+ <if test="isVip != null">is_vip = #{isVip},</if>
|
|
|
+ <if test="vipStartDate != null">vip_start_date = #{vipStartDate},</if>
|
|
|
+ <if test="vipEndDate != null">vip_end_date = #{vipEndDate},</if>
|
|
|
+ <if test="vipLevel != null">vip_level = #{vipLevel},</if>
|
|
|
+ <if test="vipStatus != null">vip_status = #{vipStatus},</if>
|
|
|
+ <if test="sex != null">sex = #{sex},</if>
|
|
|
+ <if test="storeOpenId != null">store_open_id = #{storeOpenId},</if>
|
|
|
+ <if test="isPush != null">is_push = #{isPush},</if>
|
|
|
+ <if test="isIndividuationPush != null">is_individuation_push = #{isIndividuationPush},</if>
|
|
|
<if test="isWeixinAuth != null">is_weixin_auth = #{isWeixinAuth},</if>
|
|
|
- <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
- <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
- <if test="registerDate != null">register_date = #{registerDate},</if>
|
|
|
- <if test="registerCode != null">register_code = #{registerCode},</if>
|
|
|
+ <if test="loginDevice != null">login_device = #{loginDevice},</if>
|
|
|
<if test="source != null">source = #{source},</if>
|
|
|
- <if test="userCode != null">user_code = #{userCode},</if>
|
|
|
- <if test="isShow != null">is_show = #{isShow},</if>
|
|
|
- <if test="qwExtId != null">qw_ext_id = #{qwExtId},</if>
|
|
|
<if test="isAddQw != null">is_add_qw = #{isAddQw},</if>
|
|
|
- <!--<if test="qwRepeat != null">qw_repeat = #{qwRepeat},</if>
|
|
|
- <if test="userRepeat != null">user_repeat = #{userRepeat},</if>
|
|
|
- <if test="payOrder != null">pay_order = #{payOrder},</if>
|
|
|
- <if test="isBecomeMember != null">is_become_member = #{isBecomeMember},</if>-->
|
|
|
+ <if test="courseMaOpenId != null">course_ma_open_id = #{courseMaOpenId},</if>
|
|
|
+ <if test="parentId != null">parent_id = #{parentId},</if>
|
|
|
+ <if test="qwExtId != null">qw_ext_id = #{qwExtId},</if>
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
+ <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
</trim>
|
|
|
where user_id = #{userId}
|
|
|
</update>
|