添加ec同步客户来源
This commit is contained in:
@@ -52,8 +52,8 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectByHourDate" resultType="com.cool.store.entity.SyncEcCustomerDO" >
|
<select id="selectByHourDate" resultType="com.cool.store.entity.SyncEcCustomerDO" >
|
||||||
SELECT a.id as id, a.username as customername,a.mobile as customermobile,c.`name` as followname,c.mobile as followmobile FROM hy_partner_user_info a LEFT join hy_partner_line_info b on
|
SELECT a.id as id, a.username as customername,a.mobile as customermobile,c.`name` as followname,c.mobile as followmobile ,d.channel_id as channelId FROM hy_partner_user_info a LEFT join hy_partner_line_info b on
|
||||||
a.partner_id=b.partner_id left join enterprise_user c on b.investment_manager=c.user_id
|
a.partner_id=b.partner_id left join enterprise_user c on b.investment_manager=c.user_id LEFT join hy_partner_user_channel d on b.user_channel_id=d.id
|
||||||
WHERE a.create_time BETWEEN #{selectTime} and #{now} or
|
WHERE a.create_time BETWEEN #{selectTime} and #{now} or
|
||||||
a.update_time BETWEEN #{selectTime} and #{now} order by a.id Limit #{limit1},#{limit2}
|
a.update_time BETWEEN #{selectTime} and #{now} order by a.id Limit #{limit1},#{limit2}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -16,4 +16,6 @@ public class SyncEcCustomerDO {
|
|||||||
private String followname;
|
private String followname;
|
||||||
|
|
||||||
private String followmobile;
|
private String followmobile;
|
||||||
|
|
||||||
|
private Integer channelId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,6 +167,9 @@ public class EcSyncServiceImpl implements EcSyncService {
|
|||||||
if (StringUtil.isEmpty(partnerLine.getInvestmentManager())) {
|
if (StringUtil.isEmpty(partnerLine.getInvestmentManager())) {
|
||||||
if (StringUtil.isNotEmpty(resultLine.getInvestmentManager())) {
|
if (StringUtil.isNotEmpty(resultLine.getInvestmentManager())) {
|
||||||
resultLine.setId(partnerLine.getId()).setUpdateTime(new Date());
|
resultLine.setId(partnerLine.getId()).setUpdateTime(new Date());
|
||||||
|
//沪姨合伙人线索存在黑名单,EC该线索分配跟进人同步到沪姨合伙人但线索状态不变,还存在黑名单中
|
||||||
|
resultLine.setLineStatus(partnerLine.getLineStatus().intValue()==LineStatusEnum.BLACKLIST.getCode().intValue()
|
||||||
|
?LineStatusEnum.BLACKLIST.getCode():resultLine.getLineStatus());
|
||||||
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(resultLine);
|
hyPartnerLineInfoDAO.updateByPrimaryKeySelective(resultLine);
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@@ -81,4 +81,4 @@ hs.sms.accessKeySecret = iVOiK74k7C1wVbuUbipgJbfpAh1Zdb
|
|||||||
hs.sms.templateCode = SMS_461530041
|
hs.sms.templateCode = SMS_461530041
|
||||||
|
|
||||||
|
|
||||||
ec.baseUrl=http://58.33.58.162:10019
|
ec.baseUrl=https://oapi-gateway.shpr.top/basic
|
||||||
@@ -74,4 +74,4 @@ xxl.job.executor.logretentiondays = 3
|
|||||||
xxl.job.accessToken =
|
xxl.job.accessToken =
|
||||||
|
|
||||||
|
|
||||||
ec.baseUrl=http://58.33.58.162:10019
|
ec.baseUrl=https://oapi-gateway.shpr.top/basic
|
||||||
@@ -83,4 +83,4 @@ xxl.job.executor.logpath = logs/xxl-job/jobhandler
|
|||||||
xxl.job.executor.logretentiondays = 30
|
xxl.job.executor.logretentiondays = 30
|
||||||
xxl.job.accessToken =
|
xxl.job.accessToken =
|
||||||
|
|
||||||
ec.baseUrl=http://58.33.58.162:10019
|
ec.baseUrl=http://127.0.0.1:8017
|
||||||
Reference in New Issue
Block a user