ec来源更改保存
This commit is contained in:
@@ -19,9 +19,10 @@
|
|||||||
<result column="recommend_partner_id" jdbcType="VARCHAR" property="recommendPartnerId" />
|
<result column="recommend_partner_id" jdbcType="VARCHAR" property="recommendPartnerId" />
|
||||||
<result column="recommend_partner_name" jdbcType="VARCHAR" property="recommendPartnerName" />
|
<result column="recommend_partner_name" jdbcType="VARCHAR" property="recommendPartnerName" />
|
||||||
<result column="recommend_partner_mobile" jdbcType="VARCHAR" property="recommendPartnerMobile" />
|
<result column="recommend_partner_mobile" jdbcType="VARCHAR" property="recommendPartnerMobile" />
|
||||||
|
<result column="user_channel_id" jdbcType="VARCHAR" property="userChannelId" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, partner_id, mobile, username, live_area, want_shop_area, accept_adjust_type,
|
id, partner_id, mobile, username, live_area, want_shop_area, accept_adjust_type,user_channel_id,
|
||||||
invite_code, is_write_partner_know, create_time, update_time, shop_code, shop_name, shop_id, recommend_partner_id, recommend_partner_name, recommend_partner_mobile
|
invite_code, is_write_partner_know, create_time, update_time, shop_code, shop_name, shop_id, recommend_partner_id, recommend_partner_name, recommend_partner_mobile
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPartnerId" resultMap="BaseResultMap" >
|
<select id="selectByPartnerId" resultMap="BaseResultMap" >
|
||||||
@@ -115,6 +116,9 @@
|
|||||||
<if test="record.recommendPartnerMobile != null">
|
<if test="record.recommendPartnerMobile != null">
|
||||||
recommend_partner_mobile,
|
recommend_partner_mobile,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.userChannelId != null">
|
||||||
|
user_channel_id,
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="record.partnerId != null">
|
<if test="record.partnerId != null">
|
||||||
@@ -165,6 +169,9 @@
|
|||||||
<if test="record.recommendPartnerMobile != null">
|
<if test="record.recommendPartnerMobile != null">
|
||||||
#{record.recommendPartnerMobile},
|
#{record.recommendPartnerMobile},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.userChannelId != null">
|
||||||
|
#{record.userChannelId},
|
||||||
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateByPrimaryKeySelective">
|
<update id="updateByPrimaryKeySelective">
|
||||||
|
|||||||
@@ -80,6 +80,6 @@ public class HyPartnerLineInfoDO implements Serializable {
|
|||||||
@ApiModelProperty("移除黑名单原因")
|
@ApiModelProperty("移除黑名单原因")
|
||||||
private String removeBlackReason;
|
private String removeBlackReason;
|
||||||
|
|
||||||
@ApiModelProperty("hy_partner_user_channel.id")
|
@ApiModelProperty("hy_partner_user_channel.channel_id")
|
||||||
private Integer userChannelId;
|
private Integer userChannelId;
|
||||||
}
|
}
|
||||||
@@ -70,4 +70,7 @@ public class HyPartnerUserInfoDO implements Serializable {
|
|||||||
|
|
||||||
@ApiModelProperty("推荐加盟商手机号")
|
@ApiModelProperty("推荐加盟商手机号")
|
||||||
private String recommendPartnerMobile;
|
private String recommendPartnerMobile;
|
||||||
|
|
||||||
|
@ApiModelProperty("hy_partner_user_channel.channel_id")
|
||||||
|
private Integer userChannelId;
|
||||||
}
|
}
|
||||||
@@ -122,7 +122,7 @@ public class EcSyncServiceImpl implements EcSyncService {
|
|||||||
}
|
}
|
||||||
String newPartnerId = UUIDUtils.get32UUID();
|
String newPartnerId = UUIDUtils.get32UUID();
|
||||||
HyPartnerUserInfoDO resultUser = new HyPartnerUserInfoDO();
|
HyPartnerUserInfoDO resultUser = new HyPartnerUserInfoDO();
|
||||||
resultUser.setUsername(customerInfoItem.getName()).setMobile(customerInfoItem.getMobile());
|
resultUser.setUsername(customerInfoItem.getName()).setMobile(customerInfoItem.getMobile()).setUserChannelId(Convert.toInt(channelId));
|
||||||
|
|
||||||
HyPartnerLineInfoDO resultLine = new HyPartnerLineInfoDO();
|
HyPartnerLineInfoDO resultLine = new HyPartnerLineInfoDO();
|
||||||
String followUserName = customerInfoItem.getFollowUserName();
|
String followUserName = customerInfoItem.getFollowUserName();
|
||||||
|
|||||||
Reference in New Issue
Block a user