package com.hx.phip.model; import com.fasterxml.jackson.annotation.JsonFormat; import com.gitee.sunchenbin.mybatis.actable.annotation.Column; import com.gitee.sunchenbin.mybatis.actable.annotation.Index; import com.gitee.sunchenbin.mybatis.actable.annotation.Table; import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; import com.hx.phiappt.model.BaseEntity; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; /** * @Author * 2024-04-24 废弃该表 */ //@Table(name = "his_v_visit_record") @Data public class HisVisitRecord extends BaseEntity { @Column(comment = "领建到访id", length = 64, type = MySqlTypeConstant.VARCHAR) private String hisId; //customer._id @Column(comment = "用户标识", length = 64, type = MySqlTypeConstant.VARCHAR) private String userId; @Column(comment = "用户姓名", length = 64, type = MySqlTypeConstant.VARCHAR) private String userName; //organization._id @Column(comment = "门店标识", length = 64, type = MySqlTypeConstant.VARCHAR) private String shopId; @Column(comment = "门店名称", length = 64, type = MySqlTypeConstant.VARCHAR) private String shopName; //arriveTime @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @Column(comment="到店时间",type = MySqlTypeConstant.DATETIME) private Date arrivalTime; //receptTime @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @Column(comment="接待时间",type = MySqlTypeConstant.DATETIME) private Date receptTime; //leaveTime @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") @Column(comment="离开时间",type = MySqlTypeConstant.DATETIME) private Date leaveTime; @Column(comment = "是否处理 (0:待处理 1 处理完成 2 处理失败)", length = 1, type = MySqlTypeConstant.INT) private Integer whetherToHandle=NO; public HisVisitRecord() { } public HisVisitRecord(String hisId, String userId, String userName, String shopId, String shopName, Date arrivalTime, Integer whetherToHandle) { this.hisId = hisId; this.userId = userId; this.userName = userName; this.shopId = shopId; this.shopName = shopName; this.arrivalTime = arrivalTime; this.whetherToHandle = whetherToHandle; } }