rx
2024-08-02 7b2467a59d3a663fc3d004c852a843f363251029
提交 | 用户 | 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;
85f765 62     /**创建人类型 0 第三方平台(员工信息) 1 后台 (后台用户信息),2 系统创建**/
R 63     private Integer createPersonType;
64
65
4fd200 66
c4454c 67     //--- 取值第一个 todo
R 68
4fd200 69     /**回访情况(员工回访时候填写)*/
c4454c 70     private String situation;
4fd200 71     /**回访备注(员工回访时候填写)*/
c4454c 72     private String visitRemark;
R 73
74     /*** 回访列表子数据**/
4fd200 75     private List<ReturnVisitListItemVo> itemList = new ArrayList<>();
c4454c 76
R 77
4fd200 78     //---查询额外返回的参数
C 79     /**id*/
c4454c 80     private String id;
4fd200 81     /**用户所属门店标识 返回*/
c4454c 82     private String shopId ;
4fd200 83     /**用户所属门店名称*/
c4454c 84     private String shopName ;
4fd200 85     /**回访类型 字典id"*/
c4454c 86     private String returnVisitType;
4fd200 87     /**回访类型名称*/
c4454c 88     private String returnVisitTypeName;
R 89
4fd200 90     /**回访方式 字典id*/
c4454c 91     private String returnVisitMethod ;
4fd200 92     /**回访方式名称*/
c4454c 93     private String returnVisitMethodName;
4fd200 94     /**创建人*/
c4454c 95     private String createPersonName;
R 96
97
4fd200 98     public ReturnVisitListVo() {
c4454c 99     }
R 100
4fd200 101     public ReturnVisitListVo(Map<String,Object> recordMap) {
c4454c 102         this.userId = MapUtil.getString(recordMap,"userId");
R 103         this.userName = MapUtil.getString(recordMap,"userName");
104         this.corpId = MapUtil.getString(recordMap,"corpId");
105         this.corpName = MapUtil.getString(recordMap,"corpName");
106         this.planTime = DateUtil.parseString_2(recordMap.get("planTime").toString());
107         this.returnVisitTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"returnVisitTime"));
108         this.doneTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"doneTime"));
109         this.birthDay = MapUtil.getString(recordMap,"birthDay");
110         this.CIQ = MapUtil.getString(recordMap,"CIQ");
111         this.memberNO = MapUtil.getString(recordMap,"memberNO");
112         this.tel = MapUtil.getString(recordMap,"tel");
113         this.channelType = MapUtil.getString(recordMap,"channelType");
114         this.channelType2 = MapUtil.getString(recordMap,"channelType2");
115         this.cnName = MapUtil.getString(recordMap,"cnName");
116         this.returnVisitStatus = MapUtil.getInt(recordMap,"returnVisitStatus");
117         this.doneStatus = MapUtil.getInt(recordMap,"doneStatus");
118         this.timeoutStatus = MapUtil.getInt(recordMap,"timeoutStatus");
119         this.visitResultStatus = MapUtil.getInt(recordMap,"visitResultStatus");
120         this.satisfiedStatus = MapUtil.getInt(recordMap,"satisfiedStatus");
121         this.situation = MapUtil.getString(recordMap,"situation");
122         this.visitRemark = MapUtil.getString(recordMap,"visitRemark");
85f765 123         this.createPersonType = MapUtil.getInt(recordMap,"createPersonType");
596cb5 124         this.createPersonName = MapUtil.getString(recordMap,"createPersonName");
85f765 125         if(MapUtil.getInt(recordMap,"createPersonType")!=2){
R 126             this.id = MapUtil.getString(recordMap,"id");
127         }
c4454c 128     }
R 129
130 }