zhangjinli 3 years ago
parent ab02a1dd11
commit c2604e6627

@ -58,6 +58,7 @@ public class Task extends Model {
* *
*/ */
@Schema(title="图文介绍") @Schema(title="图文介绍")
@TableField("imgTexts")
private String imgText; private String imgText;
/** /**

@ -38,7 +38,7 @@ public class ExcelUtil {
int titleIndex = 0; int titleIndex = 0;
for (Object key : list.get(0).keySet()) { for (Object key : list.get(0).keySet()) {
Cell cell = row.createCell(titleIndex); Cell cell = row.createCell(titleIndex);
cell.setCellValue((String) list.get(0).get(key)); cell.setCellValue((String) key);
cell.setCellStyle(titleStyle); cell.setCellStyle(titleStyle);
titleIndex += 1; titleIndex += 1;
} }

Loading…
Cancel
Save