package com.hz.phis.vo.returnVisitRecord;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.hx.util.DateUtil;
|
import com.hx.util.MapUtil;
|
import lombok.Data;
|
|
import java.util.*;
|
|
/**
|
* 回访列表返回dto
|
* @author CJH
|
*/
|
@Data
|
public class ReturnVisitListVo {
|
|
/**用户id*/
|
private String userId;
|
/**用户名称*/
|
private String userName;
|
/**员工标识*/
|
private String corpId;
|
/**员工名称*/
|
private String corpName;
|
|
/**计划日期*/
|
private Date planTime;
|
/**回访时间*/
|
private Date returnVisitTime;
|
/**完成时间*/
|
private Date doneTime;
|
/***计划周期**/
|
private Integer cycleDay;
|
|
/**用户生日*/
|
private String birthDay;
|
/**CIQ*/
|
private String CIQ;
|
/**会员号*/
|
private String memberNO;
|
/**手机号*/
|
private String tel;
|
/**用户外部联系人编号*/
|
private String externalUserId;
|
|
/**渠道来源*/
|
private String channelType;
|
/**渠道来源*/
|
private String channelType2;
|
/**顾问名称*/
|
private String cnName;
|
|
// --- 取值第一个 todo
|
/**回访状态 0未回访 1已回访*/
|
private Integer returnVisitStatus;
|
/**完成状态 0未完成 1已完成 2已取消*/
|
private Integer doneStatus;
|
/**超时状态 0未超时 1已超时*/
|
private Integer timeoutStatus;
|
/**回访结果 0 未知 1回访成功 2回访失败*/
|
private Integer visitResultStatus;
|
/**回访是否满意 0 未知 1满意 2不满意*/
|
private Integer satisfiedStatus;
|
|
//--- 取值第一个 todo
|
|
/**回访情况(员工回访时候填写)*/
|
private String situation;
|
/**回访备注(员工回访时候填写)*/
|
private String visitRemark;
|
|
//--- 取值第一个 todo
|
/**创建类型*/
|
private Integer createPersonType;
|
/**回访标识*/
|
private String returnVisitId;
|
|
/*** 回访列表子数据**/
|
private List<ReturnVisitListItemVo> itemList = new ArrayList<>();
|
|
|
//---查询额外返回的参数
|
/**id*/
|
private String id;
|
/**用户所属门店标识 返回*/
|
private String shopId ;
|
/**用户所属门店名称*/
|
private String shopName ;
|
/**回访类型 字典id"*/
|
private String returnVisitType;
|
/**回访类型名称*/
|
private String returnVisitTypeName;
|
|
/**回访方式 字典id*/
|
private String returnVisitMethod ;
|
/**回访方式名称*/
|
private String returnVisitMethodName;
|
/**创建人*/
|
private String createPersonName;
|
|
|
public ReturnVisitListVo() {
|
}
|
|
public ReturnVisitListVo(Map<String,Object> recordMap) {
|
this.userId = MapUtil.getString(recordMap,"userId");
|
this.userName = MapUtil.getString(recordMap,"userName");
|
this.corpId = MapUtil.getString(recordMap,"corpId");
|
this.corpName = MapUtil.getString(recordMap,"corpName");
|
this.planTime = DateUtil.parseString_2(recordMap.get("planTime").toString());
|
this.returnVisitTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"returnVisitTime"));
|
this.doneTime = DateUtil.parseString_1(MapUtil.getString(recordMap,"doneTime"));
|
this.birthDay = MapUtil.getString(recordMap,"birthDay");
|
this.CIQ = MapUtil.getString(recordMap,"CIQ");
|
this.memberNO = MapUtil.getString(recordMap,"memberNO");
|
this.tel = MapUtil.getString(recordMap,"tel");
|
this.channelType = MapUtil.getString(recordMap,"channelType");
|
this.channelType2 = MapUtil.getString(recordMap,"channelType2");
|
this.cnName = MapUtil.getString(recordMap,"cnName");
|
this.returnVisitStatus = MapUtil.getInt(recordMap,"returnVisitStatus");
|
this.doneStatus = MapUtil.getInt(recordMap,"doneStatus");
|
this.timeoutStatus = MapUtil.getInt(recordMap,"timeoutStatus");
|
this.visitResultStatus = MapUtil.getInt(recordMap,"visitResultStatus");
|
this.satisfiedStatus = MapUtil.getInt(recordMap,"satisfiedStatus");
|
this.situation = MapUtil.getString(recordMap,"situation");
|
this.visitRemark = MapUtil.getString(recordMap,"visitRemark");
|
this.cycleDay = MapUtil.getInt(recordMap,"cycleDay");
|
this.createPersonType = MapUtil.getInt(recordMap,"createPersonType");
|
this.returnVisitId = MapUtil.getString(recordMap,"id");
|
}
|
|
}
|