|
|
|
|
@ -4,10 +4,9 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
|
|
|
import com.enjoy.common.core.web.domain.BaseEntity;
|
|
|
|
|
import com.enjoy.common.core.annotation.Excel;
|
|
|
|
|
import com.enjoy.common.core.utils.iqc.ExcelImport;
|
|
|
|
|
import com.enjoy.common.core.web.domain.BaseEntity;
|
|
|
|
|
import com.enjoy.oqc.domain.BaseEntity;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
@ -31,7 +30,8 @@ import java.util.Date;
|
|
|
|
|
@TableName("${tableName}")
|
|
|
|
|
public class ${entityName} extends BaseEntity{
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
<#list originalColumns as po>
|
|
|
|
|
<#list originalColumns as po>
|
|
|
|
|
<#if po.fieldName == 'creatorId' || po.fieldName == 'createBy' || po.fieldName == 'createTime' || po.fieldName == 'updaterId' || po.fieldName == 'updateBy' || po.fieldName == 'updateTime' || po.fieldName == 'tenantId'><#else>
|
|
|
|
|
/**${po.filedComment}*/
|
|
|
|
|
<#if po.fieldName == primaryKeyField>
|
|
|
|
|
@TableId(type = IdType.ASSIGN_ID)
|
|
|
|
|
@ -63,5 +63,7 @@ public class ${entityName} extends BaseEntity{
|
|
|
|
|
@TableLogic
|
|
|
|
|
</#if>
|
|
|
|
|
private <#if po.fieldType=='java.sql.Blob'>byte[]<#else>${po.fieldType}</#if> ${po.fieldName};
|
|
|
|
|
</#list>
|
|
|
|
|
</#if>
|
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|