easyExcel-modle

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了easyExcel-modle相关的知识,希望对你有一定的参考价值。

?????????ati   iba   package   model   turn   rop   port   ??????   mod   

package com.alibaba.easyexcel.test.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

import java.math.BigDecimal;
import java.util.Date;

public class WriteModel extends BaseWriteModel {



@ExcelProperty(value = {"??????3","??????3","??????3"},index = 2)
private int p3;

@ExcelProperty(value = {"??????1","??????4","??????4"},index = 3)
private long p4;

@ExcelProperty(value = {"??????5","??????51","??????52"},index = 4)
private String p5;

@ExcelProperty(value = {"??????6","??????61","??????611"},index = 5)
private float p6;

@ExcelProperty(value = {"??????6","??????61","??????612"},index = 6)
private BigDecimal p7;

@ExcelProperty(value = {"??????6","??????62","??????621"},index = 7)
private Date p8;

@ExcelProperty(value = {"??????6","??????62","??????622"},index = 8)
private String p9;

@ExcelProperty(value = {"??????6","??????62","??????622"},index = 9)
private double p10;

public String getP1() {
return p1;
}

public void setP1(String p1) {
this.p1 = p1;
}

public String getP2() {
return p2;
}

public void setP2(String p2) {
this.p2 = p2;
}

public int getP3() {
return p3;
}

public void setP3(int p3) {
this.p3 = p3;
}

public long getP4() {
return p4;
}

public void setP4(long p4) {
this.p4 = p4;
}

public String getP5() {
return p5;
}

public void setP5(String p5) {
this.p5 = p5;
}

public float getP6() {
return p6;
}

public void setP6(float p6) {
this.p6 = p6;
}

public BigDecimal getP7() {
return p7;
}

public void setP7(BigDecimal p7) {
this.p7 = p7;
}

public Date getP8() {
return p8;
}

public void setP8(Date p8) {
this.p8 = p8;
}

public String getP9() {
return p9;
}

public void setP9(String p9) {
this.p9 = p9;
}

public double getP10() {
return p10;
}

public void setP10(double p10) {
this.p10 = p10;
}

@Override
public String toString() {
return "JavaModel1{" +
"p1=???" + p1 + ????????? +
", p2=???" + p2 + ????????? +
", p3=" + p3 +
", p4=" + p4 +
", p5=???" + p5 + ????????? +
", p6=" + p6 +
", p7=" + p7 +
", p8=" + p8 +
", p9=???" + p9 + ????????? +
", p10=" + p10 +
???}???;
}
}

以上是关于easyExcel-modle的主要内容,如果未能解决你的问题,请参考以下文章

VSCode自定义代码片段——CSS选择器

谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js

片段和活动之间的核心区别是啥?哪些代码可以写成片段?

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段6——CSS选择器

VSCode自定义代码片段——声明函数