提交 7947b288 authored 作者: 任建彩's avatar 任建彩

feat:excel批量上传

1.resource
上级 4bdd8ab5
......@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zrqx.core.enums.BookCopyrightTypeEnum;
import com.zrqx.util.excelutil.ExcelResources;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -91,4 +92,6 @@ public class Book {
private Integer departmentId;
@ApiModelProperty(value = "部门")
private String departmentCode;
@ApiModelProperty(value ="物料号")
private String itemNo;
}
......@@ -2,6 +2,7 @@ package com.zrqx.resource.model.vo.ebook;
import com.zrqx.util.excelutil.ExcelResources;
import com.zrqx.util.excelutil.ImportVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
......@@ -9,35 +10,57 @@ import lombok.Data;
*/
@Data
public class ExcelBookExportVo extends ImportVo {
@ExcelResources(title = "名称", order = 1)
private String name;
@ExcelResources(title = "isbn", order = 1)
@ExcelResources(title = "isbn", order = 2)
private String isbn;
@ExcelResources(title = "名称", order = 2)
private String name;
@ExcelResources(title = "出版单位 ", order = 3)
private String publisher;
@ExcelResources(title = "版次", order = 3)
private String revision;
@ExcelResources(title = "出版时间 ", order = 4)
private String publishTime;
@ExcelResources(title = "关键词", order = 4)
private String keywords;
@ExcelResources(title = "译者", order = 5)
private String translator;
@ExcelResources(title = "中图分类 ", order = 5)
private String midpicid;
@ExcelResources(title = "作者", order = 6)
private String author;
@ExcelResources(title = "出版时间 ", order = 5)
private String publishTime;
@ExcelResources(title = "系列", order = 7)
private String project;
@ExcelResources(title = "出版社 ", order = 5)
private String publisher;
@ExcelResources(title = "责任编辑", order = 8)
private String executiveEditor;
@ExcelResources(title = "定价", order = 5)
private String price;
@ExcelResources(title = "丛书名称", order = 9)
private String bookSeries;
@ExcelResources(title = "作者", order = 5)
private String author;
@ExcelResources(title = "版次", order = 10)
private String revision;
@ExcelResources(title = "字数(千字)", order = 11)
private String fontCount;
@ExcelResources(title = "图书封面", order = 12)
private String cover;
@ExcelResources(title = "简介 ", order = 5)
@ExcelResources(title = "语种", order = 13)
private String languagesLabel;
@ExcelResources(title = "学习阶段", order = 14)
private String studyLabel;
@ExcelResources(title = "内容简介", order = 15)
private String synopsis;
@ExcelResources(title = "图书目录", order = 16)
private String bookCatalog;
@ExcelResources(title = "资源分类", order = 17)
private String typeName;
@ExcelResources(title = "物料号", order = 18)
private String itemNo;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论