{{#eq apps "link"}}
package {{packageName}}.api.{{apps}}.domain;


import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import cn.ibizlab.util.domain.*;
import org.springframework.data.annotation.Id;
import org.apache.ibatis.type.JdbcType;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import {{packageName}}.api.{{apps}}.dict.*;

/**
 * {{appEntity.entity.logicName}}
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = "{{appEntity.entity.tableName}}")
@ApiModel(value = "{{appEntity.entity.logicName}}")
public class {{pascalCase appEntity.codeName}} {

{{#each appEntity.entity.fields}}
    {{#if phisicalDEField}}
    /**
     * {{logicName}}
     */
        {{#if keyDEField}}
    @Id
    @TableId(value = "{{columnName}}"{{#type.number}} , type = IdType.ASSIGN_ID{{/type.number}}{{#type.string}} , type = IdType.ASSIGN_UUID{{/type.string}})
        {{else}}
    @TableField(value = "{{columnName}}"{{#insertOnly}} , fill = FieldFill.INSERT{{/insertOnly}}{{#eq type.name "TEXT"}},jdbcType = JdbcType.CLOB{{/eq}})
                {{#logicValidField}}
    @TableLogic{{#appEntity.entity.validLogicValue}}(value = "{{appEntity.entity.validLogicValue}}"{{#appEntity.entity.invalidLogicValue}} , delval = "{{appEntity.entity.invalidLogicValue}}"{{/appEntity.entity.invalidLogicValue}}){{/appEntity.entity.validLogicValue}}
                {{/logicValidField}}
        {{/if}}
    @JsonProperty("{{jsonName}}")
            {{#timeType}}
    @JsonFormat(pattern = "{{format}}", locale = "zh", timezone = "GMT+8")
            {{/timeType}}
    @JSONField(name = "{{jsonName}}"{{#timeType}} , format = "{{format}}"{{/timeType}})
            {{#eq type.java "Long"}}
    @JsonSerialize(using = ToStringSerializer.class)
            {{/eq}}
    @ApiModelProperty(value = "{{logicName}}")
    private {{type.java}} {{camelCase codeName}};
    {{#neq columnName jsonName}}
    //columnName!=jsonName
    {{/neq}}
    {{/if}}
{{/each}}

    @TableField(exist = false)
    private boolean removetag;
}
{{/eq}}