package com.ltkj.hosp.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ltkj.common.annotation.Excel;
|
import com.ltkj.common.core.domain.BaseEntity;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* 合同对象 tj_contract
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-02-17
|
*/
|
@Data
|
@AllArgsConstructor
|
@NoArgsConstructor
|
public class TjContract extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private String id;
|
|
/**
|
* 单位id(外键)
|
*/
|
private String drugManufacturerId;
|
|
/**
|
* 合同名称
|
*/
|
@Excel(name = "合同名称")
|
private String contractName;
|
|
/**
|
* 签约时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "签约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
private Date signTime;
|
|
/**
|
* 甲方签约人
|
*/
|
@Excel(name = "甲方签约人")
|
private String aSignPerson;
|
|
/**
|
* 甲方联系电话
|
*/
|
@Excel(name = "甲方联系电话")
|
private String aSignPhone;
|
|
/**
|
* 乙方签约人
|
*/
|
@Excel(name = "乙方签约人")
|
private String bSignPerson;
|
|
/**
|
* 乙方联系电话
|
*/
|
@Excel(name = "乙方联系电话")
|
private String bSignPhone;
|
|
/**
|
* 合同金额
|
*/
|
@Excel(name = "合同金额")
|
private BigDecimal contractAmount;
|
|
/**
|
* 合同有效期
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
@Excel(name = "合同有效期", width = 30, dateFormat = "yyyy-MM-dd")
|
private Date contractValidTime;
|
|
/**
|
* 合同回款状态(1需首付2需付尾款3已结清)
|
*/
|
@Excel(name = "合同回款状态(1需首付2需付尾款3已结清)",readConverterExp="1=需首付,2=需付尾款,2=已结清")
|
private String contractStatus;
|
|
|
@TableField(exist = false)
|
@ApiModelProperty(value = "单位名")
|
private String cnName;
|
|
|
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("id", getId())
|
.append("drugManufacturerId", getDrugManufacturerId())
|
.append("contractName", getContractName())
|
.append("signTime", getSignTime())
|
.append("contractAmount", getContractAmount())
|
.append("contractValidTime", getContractValidTime())
|
.append("contractStatus", getContractStatus())
|
.append("remark", getRemark())
|
.append("deleted", getDeleted())
|
.append("createBy", getCreateBy())
|
.append("createTime", getCreateTime())
|
.append("updateBy", getUpdateBy())
|
.append("updateTime", getUpdateTime())
|
.toString();
|
}
|
}
|