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.Table;
|
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
|
import com.hx.phiappt.model.BaseEntity;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.util.Date;
|
|
/**
|
* @Author 张旭 基础信息同步日志
|
* 2024-04-24 废弃该表
|
*/
|
//@Table(name = "sync_basic_information")
|
public class SyncBasicInformationRecord extends BaseEntity {
|
|
//请求参数
|
@Column(comment = "请求参数", type = MySqlTypeConstant.TEXT)
|
private String requestParameters;
|
//返回参数
|
@Column(comment = "返回参数", type = MySqlTypeConstant.TEXT)
|
private String returnParameters;
|
//1 初始化 2定时 3 场景触发 4心跳
|
@Column(comment = "同步类型", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer type;
|
//1 渠道 2 设备参数 3 员工 4 物料分类 5 商品 6 门店 7 科室 8诊所的治疗房间,手术房间 9标签 10 仓库 11 库存 12:咨询记录 13:病例模板 14:病例 15:处方模板 16:处方 17:会员等级变更记录
|
@Column(comment = "模块", length = 2, type = MySqlTypeConstant.TINYINT)
|
private Integer modular;
|
|
@Column(comment = "成功次数", length = 8, type = MySqlTypeConstant.INT)
|
private Integer successNumber;
|
|
@Column(comment = "失败次数", length = 8, type = MySqlTypeConstant.INT)
|
private Integer failNumber;
|
|
@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 startTime;
|
|
@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 endTime;
|
|
|
public SyncBasicInformationRecord() {
|
}
|
|
public SyncBasicInformationRecord(Integer type, Integer modular, Integer successNumber, Integer failNumber) {
|
this.type = type;
|
this.modular = modular;
|
this.successNumber = successNumber;
|
this.failNumber = failNumber;
|
}
|
|
public String getRequestParameters() {
|
return requestParameters;
|
}
|
|
public void setRequestParameters(String requestParameters) {
|
this.requestParameters = requestParameters;
|
}
|
|
public String getReturnParameters() {
|
return returnParameters;
|
}
|
|
public void setReturnParameters(String returnParameters) {
|
this.returnParameters = returnParameters;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public Integer getModular() {
|
return modular;
|
}
|
|
public void setModular(Integer modular) {
|
this.modular = modular;
|
}
|
|
public Integer getSuccessNumber() {
|
return successNumber;
|
}
|
|
public void setSuccessNumber(Integer successNumber) {
|
this.successNumber = successNumber;
|
}
|
|
public Integer getFailNumber() {
|
return failNumber;
|
}
|
|
public void setFailNumber(Integer failNumber) {
|
this.failNumber = failNumber;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
}
|