jeecgboot / autopoi

AutoPOI 功能如同名字auto,追求的就是自动化,让一个没接触过poi的人员,可以傻瓜化的快速实现Excel导入导出、Word模板导出、可以仅仅5行代码就可以完成Excel的导入导出。
http://www.jeecg.com
Apache License 2.0
477 stars 204 forks source link

导出字段类型 文档里10 是数字型,代码里是4 #30

Open rrrrong opened 4 years ago

rrrrong commented 4 years ago

https://github.com/zhangdaiscott/autopoi/blob/master/autopoi/src/main/java/org/jeecgframework/poi/excel/export/base/ExcelExportBase.java

Object value = getCellValue(entity, obj); //update-begin--Author:xuelin Date:20171018 for:TASK #2372 【excel】easypoi 导出类型,type增加数字类型-------------------- if (entity.getType() == 1) { createStringCell(row, cellNum++, value == null ? "" : value.toString(), row.getRowNum() % 2 == 0 ? getStyles(false, entity) : getStyles(true, entity), entity); } else if (entity.getType() == 4){ createNumericCell(row, cellNum++, value == null ? "" : value.toString(), index % 2 == 0 ? getStyles(false, entity) : getStyles(true, entity), entity); } else{ createImageCell(patriarch, entity, row, cellNum++, value == null ? "" : value.toString(), obj); } //update-end--Author:xuelin Date:20171018 for:TASK #2372 【excel】easypoi 导出类型,type增加数字类型----------------

外面所有的文档都不是这样的定义。。。。。