/*
|
* Copyright 2019-2020 Zheng Jie
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
* you may not use this file except in compliance with the License.
|
* You may obtain a copy of the License at
|
*
|
* http://www.apache.org/licenses/LICENSE-2.0
|
*
|
* Unless required by applicable law or agreed to in writing, software
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* See the License for the specific language governing permissions and
|
* limitations under the License.
|
*/
|
package me.zhengjie.modules.contract.domain;
|
|
import lombok.Data;
|
import cn.hutool.core.bean.BeanUtil;
|
import io.swagger.annotations.ApiModelProperty;
|
import cn.hutool.core.bean.copier.CopyOptions;
|
import me.zhengjie.base.BaseEntity;
|
|
import javax.persistence.*;
|
import java.sql.Timestamp;
|
import java.io.Serializable;
|
|
/**
|
* @website https://eladmin.vip
|
* @description /
|
* @author baolh
|
* @date 2026-02-26
|
**/
|
@Entity
|
@Data
|
@Table(name="contract_mail")
|
public class ContractMail extends BaseEntity implements Serializable {
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@Column(name = "`id`")
|
@ApiModelProperty(value = "ID")
|
private Long id;
|
|
@Column(name = "`contract_id`")
|
@ApiModelProperty(value = "合同ID")
|
private Long contractId;
|
|
@Column(name = "`mail_send_time`")
|
@ApiModelProperty(value = "邮件发送时间")
|
private Timestamp mailSendTime;
|
|
@Column(name = "`mail_tracking_no`")
|
@ApiModelProperty(value = "邮件运单号")
|
private String mailTrackingNo;
|
|
@Column(name = "`mail_method`")
|
@ApiModelProperty(value = "邮寄方式")
|
private String mailMethod;
|
|
@Column(name = "`mail_content`")
|
@ApiModelProperty(value = "邮件内容")
|
private String mailContent;
|
|
@Column(name = "`remarks`")
|
@ApiModelProperty(value = "备注信息")
|
private String remarks;
|
|
@Column(name = "`first_id`")
|
@ApiModelProperty(value = "甲方信息ID")
|
private Long firstId;
|
|
@Column(name = "`second_id`")
|
@ApiModelProperty(value = "乙方信息ID")
|
private Long secondId;
|
|
@Column(name = "`mail_sender_name`")
|
@ApiModelProperty(value = "寄件人姓名")
|
private String mailSenderName;
|
|
@Column(name = "`mail_sender_tel`")
|
@ApiModelProperty(value = "寄件人联系方式")
|
private String mailSenderTel;
|
|
@Column(name = "`mail_sender_addr`")
|
@ApiModelProperty(value = "寄件地址")
|
private String mailSenderAddr;
|
|
@Column(name = "`mail_consignee_name`")
|
@ApiModelProperty(value = "收件人姓名")
|
private String mailConsigneeName;
|
|
@Column(name = "`mail_consignee_tel`")
|
@ApiModelProperty(value = "收件人联系方式")
|
private String mailConsigneeTel;
|
|
@Column(name = "`mail_consignee_addr`")
|
@ApiModelProperty(value = "收件地址")
|
private String mailConsigneeAddr;
|
|
public void copy(ContractMail source){
|
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
}
|
}
|