修改统计数据显示问题
This commit is contained in:
parent
52e4d883f9
commit
1bf27164d3
|
|
@ -23,6 +23,8 @@ public class CustomerExportData implements Serializable {
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
private String corpId;
|
private String corpId;
|
||||||
|
//客户唯一id
|
||||||
|
private String customerUserId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户名称
|
* 客户名称
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ public interface CustomerExportDataMapper extends BaseMapper<CustomerExportData>
|
||||||
*/
|
*/
|
||||||
CustomerExportData selectByUniqueKey(
|
CustomerExportData selectByUniqueKey(
|
||||||
@Param("corpId") String corpId,
|
@Param("corpId") String corpId,
|
||||||
@Param("customerName") String customerName,
|
@Param("customerUserId") String customerUserId,
|
||||||
@Param("addUserAccount") String addUserAccount,
|
@Param("addUserAccount") String addUserAccount,
|
||||||
@Param("addTime") Date addTime
|
@Param("addTime") Date addTime
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ public class CustomerDataChangeTrackingService {
|
||||||
try {
|
try {
|
||||||
// 构建用于计算指纹的字符串(排除id字段)
|
// 构建用于计算指纹的字符串(排除id字段)
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(data.getCustomerUserId()).append("|");
|
||||||
sb.append(data.getCustomerName()).append("|");
|
sb.append(data.getCustomerName()).append("|");
|
||||||
sb.append(data.getDescription()).append("|");
|
sb.append(data.getDescription()).append("|");
|
||||||
sb.append(data.getGender()).append("|");
|
sb.append(data.getGender()).append("|");
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ public class CustomerExportService {
|
||||||
// 根据唯一标识(客户名称+添加人账号+添加时间)查询是否已存在
|
// 根据唯一标识(客户名称+添加人账号+添加时间)查询是否已存在
|
||||||
CustomerExportData existingData = customerExportDataMapper.selectByUniqueKey(
|
CustomerExportData existingData = customerExportDataMapper.selectByUniqueKey(
|
||||||
corpId,
|
corpId,
|
||||||
exportData.getCustomerName(),
|
exportData.getCustomerUserId(),
|
||||||
exportData.getAddUserAccount(),
|
exportData.getAddUserAccount(),
|
||||||
exportData.getAddTime()
|
exportData.getAddTime()
|
||||||
);
|
);
|
||||||
|
|
@ -186,6 +186,7 @@ public class CustomerExportService {
|
||||||
//设置性别
|
//设置性别
|
||||||
if(externalContact != null) {
|
if(externalContact != null) {
|
||||||
exportData.setGender(externalContact.getGender());
|
exportData.setGender(externalContact.getGender());
|
||||||
|
exportData.setCustomerUserId(externalContact.getExternalUserid());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取跟进信息
|
// 获取跟进信息
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@
|
||||||
WHERE
|
WHERE
|
||||||
corp_id = #{corpId}
|
corp_id = #{corpId}
|
||||||
and
|
and
|
||||||
customer_name = #{customerName}
|
customer_user_id = #{customerUserId}
|
||||||
AND add_user_account = #{addUserAccount}
|
AND add_user_account = #{addUserAccount}
|
||||||
AND add_time = #{addTime}
|
AND add_time = #{addTime}
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue