rx
2024-09-10 ee590e0d57edca3fc923211285681c8f0e43fdc5
提交 | 用户 | 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;
5cf332 32     /***计划周期**/
R 33     private Integer cycleDay;
c4454c 34
4fd200 35     /**用户生日*/
c4454c 36     private String birthDay;
4fd200 37     /**CIQ*/
c4454c 38     private String CIQ;
4fd200 39     /**会员号*/
c4454c 40     private String memberNO;
4fd200 41     /**手机号*/
c4454c 42     private String tel;
bec1cc 43     /**用户外部联系人编号*/
C 44     private String externalUserId;
c4454c 45
4fd200 46     /**渠道来源*/
c4454c 47     private String channelType;
4fd200 48     /**渠道来源*/
c4454c 49     private String channelType2;
4fd200 50     /**顾问名称*/
c4454c 51     private String cnName;
R 52
53     // --- 取值第一个 todo
4fd200 54     /**回访状态 0未回访 1已回访*/
c4454c 55     private Integer returnVisitStatus;
4fd200 56     /**完成状态 0未完成 1已完成 2已取消*/
c4454c 57     private Integer doneStatus;
4fd200 58     /**超时状态 0未超时 1已超时*/
c4454c 59     private Integer timeoutStatus;
4fd200 60     /**回访结果 0 未知 1回访成功 2回访失败*/
c4454c 61     private Integer visitResultStatus;
4fd200 62     /**回访是否满意 0 未知 1满意 2不满意*/
c4454c 63     private Integer satisfiedStatus;
4fd200 64
c4454c 65     //--- 取值第一个 todo
R 66
4fd200 67     /**回访情况(员工回访时候填写)*/
c4454c 68     private String situation;
4fd200 69     /**回访备注(员工回访时候填写)*/
c4454c 70     private String visitRemark;
R 71
72     /*** 回访列表子数据**/
4fd200 73     private List<ReturnVisitListItemVo> itemList = new ArrayList<>();
c4454c 74
R 75
4fd200 76     //---查询额外返回的参数
C 77     /**id*/
c4454c 78     private String id;
4fd200 79     /**用户所属门店标识 返回*/
c4454c 80     private String shopId ;
4fd200 81     /**用户所属门店名称*/
c4454c 82     private String shopName ;
4fd200 83     /**回访类型 字典id"*/
c4454c 84     private String returnVisitType;
4fd200 85     /**回访类型名称*/
c4454c 86     private String returnVisitTypeName;
R 87
4fd200 88     /**回访方式 字典id*/
c4454c 89     private String returnVisitMethod ;
4fd200 90     /**回访方式名称*/
c4454c 91     private String returnVisitMethodName;
4fd200 92     /**创建人*/
c4454c 93     private String createPersonName;
R 94
95
4fd200 96     public ReturnVisitListVo() {
c4454c 97     }
R 98
4fd200 99     public ReturnVisitListVo(Map<String,Object> recordMap) {
c4454c 100         this.userId = MapUtil.getString(recordMap,"userId");
R 101         this.userName = MapUtil.getString(recordMap,"userName");
102         this.corpId = MapUtil.getString(recordMap,"corpId");
103         this.corpName = MapUtil.getString(recordMap,"corpName");
104         this.planTime = DateUtil.parseString_2(recordMap.get("planTime").toString());
105         this.returnVisitTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"returnVisitTime"));
106         this.doneTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"doneTime"));
107         this.birthDay = MapUtil.getString(recordMap,"birthDay");
108         this.CIQ = MapUtil.getString(recordMap,"CIQ");
109         this.memberNO = MapUtil.getString(recordMap,"memberNO");
110         this.tel = MapUtil.getString(recordMap,"tel");
111         this.channelType = MapUtil.getString(recordMap,"channelType");
112         this.channelType2 = MapUtil.getString(recordMap,"channelType2");
113         this.cnName = MapUtil.getString(recordMap,"cnName");
114         this.returnVisitStatus = MapUtil.getInt(recordMap,"returnVisitStatus");
115         this.doneStatus = MapUtil.getInt(recordMap,"doneStatus");
116         this.timeoutStatus = MapUtil.getInt(recordMap,"timeoutStatus");
117         this.visitResultStatus = MapUtil.getInt(recordMap,"visitResultStatus");
118         this.satisfiedStatus = MapUtil.getInt(recordMap,"satisfiedStatus");
119         this.situation = MapUtil.getString(recordMap,"situation");
120         this.visitRemark = MapUtil.getString(recordMap,"visitRemark");
5cf332 121         this.cycleDay = MapUtil.getInt(recordMap,"cycleDay");
c4454c 122     }
R 123
124 }