客户相关bug修复

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