Commit 717a8e23 by 王祖波

建联潜客分

parent f74b882b
...@@ -61,6 +61,11 @@ public class TabContactLog implements Serializable { ...@@ -61,6 +61,11 @@ public class TabContactLog implements Serializable {
private Date potentialTime; private Date potentialTime;
/** /**
* 潜客分
*/
private Integer potentialScore;
/**
* 来源日志id * 来源日志id
*/ */
private Long sourceLogId; private Long sourceLogId;
...@@ -197,6 +202,14 @@ public class TabContactLog implements Serializable { ...@@ -197,6 +202,14 @@ public class TabContactLog implements Serializable {
this.potentialTime = potentialTime; this.potentialTime = potentialTime;
} }
public Integer getPotentialScore() {
return potentialScore;
}
public void setPotentialScore(Integer potentialScore) {
this.potentialScore = potentialScore;
}
public Integer getSourceType() { public Integer getSourceType() {
return sourceType; return sourceType;
} }
......
...@@ -225,6 +225,10 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -225,6 +225,10 @@ public class ContactLogServiceImpl implements ContactLogService {
contactLog.setStoreCode(store.getStoreCode()); contactLog.setStoreCode(store.getStoreCode());
} }
} }
JSONObject jsonObject = esMemberInfoService.queryDataSingle(enterpriseId, memberId, "potentialScore");
if (jsonObject != null && jsonObject.getInteger("potentialScore") != null) {
contactLog.setPotentialScore(jsonObject.getInteger("potentialScore"));
}
Long logId = UniqueIdUtils.uniqueLong(); Long logId = UniqueIdUtils.uniqueLong();
contactLog.setLogId(logId); contactLog.setLogId(logId);
contactLog.setMemberId(memberId); contactLog.setMemberId(memberId);
...@@ -234,6 +238,7 @@ public class ContactLogServiceImpl implements ContactLogService { ...@@ -234,6 +238,7 @@ public class ContactLogServiceImpl implements ContactLogService {
contactLog.setContactCycleFirst(contactCycleFirst); contactLog.setContactCycleFirst(contactCycleFirst);
// 成为潜客时间 无用暂不写 // 成为潜客时间 无用暂不写
contactLog.setPotentialTime(null); contactLog.setPotentialTime(null);
contactLog.setSourceType(sourceType); contactLog.setSourceType(sourceType);
contactLog.setBizType(bizType); contactLog.setBizType(bizType);
contactLog.setEnterpriseId(enterpriseId); contactLog.setEnterpriseId(enterpriseId);
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<result property="contactCycle" column="contact_cycle" jdbcType="INTEGER"/> <result property="contactCycle" column="contact_cycle" jdbcType="INTEGER"/>
<result property="contactCycleFirst" column="contact_cycle_first" jdbcType="INTEGER"/> <result property="contactCycleFirst" column="contact_cycle_first" jdbcType="INTEGER"/>
<result property="potentialTime" column="potential_time" jdbcType="TIMESTAMP"/> <result property="potentialTime" column="potential_time" jdbcType="TIMESTAMP"/>
<result property="potentialScore" column="potential_score" jdbcType="INTEGER"/>
<result property="sourceType" column="source_type" jdbcType="INTEGER"/> <result property="sourceType" column="source_type" jdbcType="INTEGER"/>
<result property="sourceLogId" column="source_log_id" jdbcType="BIGINT"/> <result property="sourceLogId" column="source_log_id" jdbcType="BIGINT"/>
<result property="bizType" column="biz_type" jdbcType="INTEGER" /> <result property="bizType" column="biz_type" jdbcType="INTEGER" />
...@@ -155,6 +156,7 @@ ...@@ -155,6 +156,7 @@
contact_cycle, contact_cycle,
contact_cycle_first, contact_cycle_first,
potential_time, potential_time,
potential_score,
source_type, source_type,
source_log_id, source_log_id,
biz_type, biz_type,
...@@ -175,6 +177,7 @@ ...@@ -175,6 +177,7 @@
#{contactCycle}, #{contactCycle},
#{contactCycleFirst}, #{contactCycleFirst},
#{potentialTime}, #{potentialTime},
#{potentialScore},
#{sourceType}, #{sourceType},
#{sourceLogId}, #{sourceLogId},
#{bizType}, #{bizType},
...@@ -220,6 +223,9 @@ ...@@ -220,6 +223,9 @@
<if test="potentialTime != null"> <if test="potentialTime != null">
potential_time = #{potentialTime}, potential_time = #{potentialTime},
</if> </if>
<if test="potentialScore != null">
potential_score = #{potentialScore},
</if>
<if test="sourceType != null"> <if test="sourceType != null">
source_type = #{sourceType}, source_type = #{sourceType},
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment