package com.yeejoin.amos.boot.module.hygf.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/11/23
 */
@Data
@Accessors(chain = true)
@TableName(value = "hygf_contract_fill_data",autoResultMap = true)
public class ContractFillData extends BaseEntity {
    //字段名称
    @TableField("title")
    private String  title;
    //字段类型
    @TableField("type")
    private String  type;
    //字段标识
    @TableField("field")
    private String  field;
    //是否必填
    @TableField("required")
    private boolean required;
    //下拉值
    @TableField(value = "select_list",typeHandler = FastjsonTypeHandler.class)
    private List<Object> selectList;
    //字段值
    @TableField("value")
    private String  value;

    //模板id
    @TableField("template_id")
    private Long  templateId;
    //模板id
    @TableField("contract_id")
    private Long  contractId;

    //合同填充字段值
    @TableField(exist = false)
    List<ContractFillData> contractFillData;
}
