package com.oying.modules.system.domain; import com.oying.base.BaseEntity; import cn.hutool.core.bean.BeanUtil; import io.swagger.annotations.ApiModelProperty; import cn.hutool.core.bean.copier.CopyOptions; import java.sql.Timestamp; import javax.validation.constraints.NotBlank; import java.io.Serializable; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.Setter; /** * @description / * @author lixin * @date 2025-05-29 **/ @Getter @Setter @TableName("sys_merchants") public class Merchants extends BaseEntity implements Serializable { @TableId(value = "merchants_id", type = IdType.AUTO) @ApiModelProperty(value = "ID") private Long merchantsId; @NotBlank @ApiModelProperty(value = "名称") private String merchantName; @NotBlank @ApiModelProperty(value = "商户编码") private String merchantCode; @NotBlank @ApiModelProperty(value = "营业执照号") private String businessLicense; @NotBlank @ApiModelProperty(value = "营业执照号路径") private String businessLicensePath; @NotBlank @ApiModelProperty(value = "联系手机") private String contactMobile; @ApiModelProperty(value = "排序") private Integer merchantsSort; @ApiModelProperty(value = "状态") private String enabled = "1"; @ApiModelProperty(value = "审核人") private String authUser; @ApiModelProperty(value = "审核时间") private Timestamp authTime; @ApiModelProperty(value = "审核信息") private String authMessage; public void copy(Merchants source){ BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); } }