chenjiahe
2024-05-30 bec1cccceabfce2d83cf72fe7e902b5c63baa20d
提交 | 用户 | age
4fd200 1 package com.hz.phis.vo.returnVisitRecord;
c4454c 2
R 3 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
4 import com.hx.util.DateUtil;
5 import com.hx.util.MapUtil;
6 import lombok.Data;
7
8 import java.util.*;
9
10 /**
11  * 回访列表返回dto
4fd200 12  * @author CJH
c4454c 13  */
R 14 @Data
4fd200 15 public class ReturnVisitListVo {
c4454c 16
4fd200 17     /**用户id*/
c4454c 18     private String userId;
4fd200 19     /**用户名称*/
c4454c 20     private String userName;
4fd200 21     /**员工标识*/
c4454c 22     private String corpId;
4fd200 23     /**员工名称*/
c4454c 24     private String corpName;
R 25
4fd200 26     /**计划日期*/
c4454c 27     private Date planTime;
4fd200 28     /**回访时间*/
c4454c 29     private Date returnVisitTime;
4fd200 30     /**完成时间*/
c4454c 31     private Date doneTime;
R 32
4fd200 33     /**用户生日*/
c4454c 34     private String birthDay;
4fd200 35     /**CIQ*/
c4454c 36     private String CIQ;
4fd200 37     /**会员号*/
c4454c 38     private String memberNO;
4fd200 39     /**手机号*/
c4454c 40     private String tel;
bec1cc 41     /**用户外部联系人编号*/
C 42     private String externalUserId;
c4454c 43
4fd200 44     /**渠道来源*/
c4454c 45     private String channelType;
4fd200 46     /**渠道来源*/
c4454c 47     private String channelType2;
4fd200 48     /**顾问名称*/
c4454c 49     private String cnName;
R 50
51     // --- 取值第一个 todo
4fd200 52     /**回访状态 0未回访 1已回访*/
c4454c 53     private Integer returnVisitStatus;
4fd200 54     /**完成状态 0未完成 1已完成 2已取消*/
c4454c 55     private Integer doneStatus;
4fd200 56     /**超时状态 0未超时 1已超时*/
c4454c 57     private Integer timeoutStatus;
4fd200 58     /**回访结果 0 未知 1回访成功 2回访失败*/
c4454c 59     private Integer visitResultStatus;
4fd200 60     /**回访是否满意 0 未知 1满意 2不满意*/
c4454c 61     private Integer satisfiedStatus;
4fd200 62
c4454c 63     //--- 取值第一个 todo
R 64
4fd200 65     /**回访情况(员工回访时候填写)*/
c4454c 66     private String situation;
4fd200 67     /**回访备注(员工回访时候填写)*/
c4454c 68     private String visitRemark;
R 69
70     /*** 回访列表子数据**/
4fd200 71     private List<ReturnVisitListItemVo> itemList = new ArrayList<>();
c4454c 72
R 73
4fd200 74     //---查询额外返回的参数
C 75     /**id*/
c4454c 76     private String id;
4fd200 77     /**用户所属门店标识 返回*/
c4454c 78     private String shopId ;
4fd200 79     /**用户所属门店名称*/
c4454c 80     private String shopName ;
4fd200 81     /**回访类型 字典id"*/
c4454c 82     private String returnVisitType;
4fd200 83     /**回访类型名称*/
c4454c 84     private String returnVisitTypeName;
R 85
4fd200 86     /**回访方式 字典id*/
c4454c 87     private String returnVisitMethod ;
4fd200 88     /**回访方式名称*/
c4454c 89     private String returnVisitMethodName;
4fd200 90     /**创建人*/
c4454c 91     private String createPersonName;
R 92
93
4fd200 94     public ReturnVisitListVo() {
c4454c 95     }
R 96
4fd200 97     public ReturnVisitListVo(Map<String,Object> recordMap) {
c4454c 98         this.userId = MapUtil.getString(recordMap,"userId");
R 99         this.userName = MapUtil.getString(recordMap,"userName");
100         this.corpId = MapUtil.getString(recordMap,"corpId");
101         this.corpName = MapUtil.getString(recordMap,"corpName");
102         this.planTime = DateUtil.parseString_2(recordMap.get("planTime").toString());
103         this.returnVisitTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"returnVisitTime"));
104         this.doneTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"doneTime"));
105         this.birthDay = MapUtil.getString(recordMap,"birthDay");
106         this.CIQ = MapUtil.getString(recordMap,"CIQ");
107         this.memberNO = MapUtil.getString(recordMap,"memberNO");
108         this.tel = MapUtil.getString(recordMap,"tel");
109         this.channelType = MapUtil.getString(recordMap,"channelType");
110         this.channelType2 = MapUtil.getString(recordMap,"channelType2");
111         this.cnName = MapUtil.getString(recordMap,"cnName");
112         this.returnVisitStatus = MapUtil.getInt(recordMap,"returnVisitStatus");
113         this.doneStatus = MapUtil.getInt(recordMap,"doneStatus");
114         this.timeoutStatus = MapUtil.getInt(recordMap,"timeoutStatus");
115         this.visitResultStatus = MapUtil.getInt(recordMap,"visitResultStatus");
116         this.satisfiedStatus = MapUtil.getInt(recordMap,"satisfiedStatus");
117         this.situation = MapUtil.getString(recordMap,"situation");
118         this.visitRemark = MapUtil.getString(recordMap,"visitRemark");
119     }
120
121 }