/* * 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; public void copy(ContractMail source){ BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); } }