|
@@ -4,12 +4,13 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
|
|
+import com.alibaba.excel.annotation.write.style.ContentStyle;
|
|
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
+import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
|
|
|
|
|
@Data
|
|
|
-@ColumnWidth(16)
|
|
|
@HeadRowHeight(20)
|
|
|
@ContentRowHeight(18)
|
|
|
//忽略为加excel注解的字段
|
|
@@ -21,6 +22,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "单位工程")
|
|
|
@ExcelProperty(value = "单位工程",order = 1)
|
|
|
+ @ColumnWidth(30)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String unitProject;
|
|
|
|
|
|
/**
|
|
@@ -28,6 +31,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "分部工程")
|
|
|
@ExcelProperty(value = "分部工程",order = 2)
|
|
|
+ @ColumnWidth(40)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String partProject;
|
|
|
|
|
|
/**
|
|
@@ -35,6 +40,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "子分部工程")
|
|
|
@ExcelProperty(value = "子分部工程",order = 3)
|
|
|
+ @ColumnWidth(40)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String partChildProject;
|
|
|
|
|
|
/**
|
|
@@ -42,6 +49,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "分项工程")
|
|
|
@ExcelProperty(value = "分项工程",order = 4)
|
|
|
+ @ColumnWidth(40)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String subentryProject;
|
|
|
|
|
|
/**
|
|
@@ -49,6 +58,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "子分项工程")
|
|
|
@ExcelProperty(value = "子分项工程",order = 5)
|
|
|
+ @ColumnWidth(40)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String subentryChildProject;
|
|
|
|
|
|
/**
|
|
@@ -56,6 +67,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "工序")
|
|
|
@ExcelProperty(value = "工序",order = 6)
|
|
|
+ @ColumnWidth(40)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String process;
|
|
|
|
|
|
//施工台账信息 start ==================================
|
|
@@ -83,6 +96,8 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "审批状态,1未上报,2待审批,3已审批")
|
|
|
@ExcelProperty(value = "审批状态",order = 7)
|
|
|
+ @ColumnWidth(15)
|
|
|
+ @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
|
|
|
private String taskStatus;
|
|
|
|
|
|
/**
|
|
@@ -107,12 +122,16 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "是否填写了日期")
|
|
|
@ExcelProperty(value = "日期是否完整",order = 9)
|
|
|
+ @ColumnWidth(20)
|
|
|
+ @ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
|
|
|
private String dateIsComplete;
|
|
|
/**
|
|
|
* 文件提名
|
|
|
*/
|
|
|
@ApiModelProperty(value = "文件提名")
|
|
|
@ExcelProperty(value = "文件提名",order = 8)
|
|
|
+ @ColumnWidth(100)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
private String infoQueryName;
|
|
|
|
|
|
/**
|
|
@@ -120,12 +139,15 @@ public class NeiYeLedgerVO {
|
|
|
*/
|
|
|
@ApiModelProperty(value = "路径")
|
|
|
@ExcelProperty(value = "文件地址",order = 11)
|
|
|
+ @ColumnWidth(110)
|
|
|
private String pdfUrl;
|
|
|
/**
|
|
|
* 附件报告
|
|
|
*/
|
|
|
@ApiModelProperty(value = "附件报告")
|
|
|
- @ExcelProperty(value = "附件报告",index = 10)
|
|
|
+ @ColumnWidth(100)
|
|
|
+ @ContentStyle(wrapped = true)
|
|
|
+ @ExcelProperty(value = "附件报告",order = 10)
|
|
|
private String fileTypeMsg;
|
|
|
|
|
|
public NeiYeLedgerVO(String... values) {
|