修改统计数据显示问题

This commit is contained in:
MerCry 2026-03-06 17:11:45 +08:00
parent 52e4d883f9
commit 1bf27164d3
5 changed files with 7 additions and 3 deletions

View File

@ -23,6 +23,8 @@ public class CustomerExportData implements Serializable {
private Long id;
private String corpId;
//客户唯一id
private String customerUserId;
/**
* 客户名称

View File

@ -53,7 +53,7 @@ public interface CustomerExportDataMapper extends BaseMapper<CustomerExportData>
*/
CustomerExportData selectByUniqueKey(
@Param("corpId") String corpId,
@Param("customerName") String customerName,
@Param("customerUserId") String customerUserId,
@Param("addUserAccount") String addUserAccount,
@Param("addTime") Date addTime
);

View File

@ -83,6 +83,7 @@ public class CustomerDataChangeTrackingService {
try {
// 构建用于计算指纹的字符串排除id字段
StringBuilder sb = new StringBuilder();
sb.append(data.getCustomerUserId()).append("|");
sb.append(data.getCustomerName()).append("|");
sb.append(data.getDescription()).append("|");
sb.append(data.getGender()).append("|");

View File

@ -117,7 +117,7 @@ public class CustomerExportService {
// 根据唯一标识客户名称+添加人账号+添加时间查询是否已存在
CustomerExportData existingData = customerExportDataMapper.selectByUniqueKey(
corpId,
exportData.getCustomerName(),
exportData.getCustomerUserId(),
exportData.getAddUserAccount(),
exportData.getAddTime()
);
@ -186,6 +186,7 @@ public class CustomerExportService {
//设置性别
if(externalContact != null) {
exportData.setGender(externalContact.getGender());
exportData.setCustomerUserId(externalContact.getExternalUserid());
}
// 获取跟进信息

View File

@ -114,7 +114,7 @@
WHERE
corp_id = #{corpId}
and
customer_name = #{customerName}
customer_user_id = #{customerUserId}
AND add_user_account = #{addUserAccount}
AND add_time = #{addTime}
LIMIT 1