package ${package}; <#if isImport || isExport> import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.write.style.ContentStyle; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import com.xjrsoft.common.annotation.Trans; import com.xjrsoft.common.enums.TransType; import java.time.LocalTime; import java.time.LocalDateTime; import java.math.BigDecimal; import java.util.Date; /** * @title: ${tableComment} * @Author ${author} * @Date: ${date} * @Version 1.0 */ @Data public class ${entityClass}${isPage?string("Page","List")}Vo { <#--属性遍历--> <#list fields as field> /** * ${field.fieldComment} */ <#if !(field.pk || field.fieldName == "ruleUserId")> <#if isImport || isExport> <#-- 所有单元格设置成文本格式--> @ContentStyle(dataFormat = 49) @ExcelProperty("${field.label}") <#else> <#if isImport || isExport> @ExcelIgnore @ApiModelProperty("${field.fieldComment}") <#if field.fieldType == "LocalDateTime" && field.pattern??> @JsonFormat(pattern = "${field.pattern}") <#if field.datasourceType??> <#assign multi = ""> <#if field.multi><#assign multi = ", isMulti = true"> <#if field.datasourceType = "dic"> @Trans(type = TransType.DIC, id = "${field.datasourceId}"${multi}) <#if field.datasourceType = "api"> @Trans(type = TransType.API, id = "${field.datasourceId}"${multi}) <#if field.componentType??> <#if field.componentType = "user"> @Trans(type = TransType.USER) <#if field.componentType = "organization"> @Trans(type = TransType.DEPT) <#if field.componentType = "area"> @Trans(type = TransType.AREA) <#if field.componentType = "cascader"> @Trans(type = TransType.CASCADE, id = "${field.datasourceId}", separator = "${field.separator}", showFormat = "${field.showFormat}") private ${field.fieldType} ${field.fieldName}; }