客户相关bug修复

1 parent 2c9f3506
package com.linkwechat.wecom.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import java.util.Date;
......@@ -37,6 +38,7 @@ public class WeCustomerDetail {
private String qq;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date birthday;
private String position;
......@@ -69,7 +71,11 @@ public class WeCustomerDetail {
//添加方式
private Integer addMethod;
//跟进人id
private String trackUserId;
//添加时间
@JsonFormat(pattern = "yyyy-MM-dd")
private Date firstAddTime;
//跟进状态
......@@ -87,6 +93,7 @@ public class WeCustomerDetail {
private String groupName;
//加入时间
@JsonFormat(pattern = "yyyy-MM-dd")
private Date joinTime;
//群主
......
......@@ -650,7 +650,6 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
List<WeCustomerList> weCustomerList = this.findWeCustomerList(
WeCustomerList.builder()
.externalUserid(externalUserid)
.firstUserId(userId)
.build()
);
if(CollectionUtil.isNotEmpty(weCustomerList)){
......@@ -662,6 +661,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
weCustomerList.stream().forEach(k->{
trackUsers.add(WeCustomerDetail.TrackUser.builder()
.addMethod(k.getAddMethod())
.trackUserId(k.getFirstUserId())
.firstAddTime(k.getFirstAddTime())
.trackState(k.getTrackState())
.userName(k.getUserName())
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!