Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wyszyk
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
任建彩
wyszyk
Commits
7947b288
提交
7947b288
authored
7月 25, 2022
作者:
任建彩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:excel批量上传
1.resource
上级
4bdd8ab5
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
139 行增加
和
37 行删除
+139
-37
Book.java
.../src/main/java/com/zrqx/resource/model/po/ebook/Book.java
+3
-0
ExcelBookExportVo.java
...a/com/zrqx/resource/model/vo/ebook/ExcelBookExportVo.java
+41
-18
EbookServiceImpl.java
...java/com/zrqx/resource/service/impl/EbookServiceImpl.java
+95
-19
没有找到文件。
wyszyk-provider/wyszyk-provider-resource/src/main/java/com/zrqx/resource/model/po/ebook/Book.java
浏览文件 @
7947b288
...
...
@@ -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
;
}
wyszyk-provider/wyszyk-provider-resource/src/main/java/com/zrqx/resource/model/vo/ebook/ExcelBookExportVo.java
浏览文件 @
7947b288
...
...
@@ -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
p
ublishTime
;
@ExcelResources
(
title
=
"
系列"
,
order
=
7
)
private
String
p
roject
;
@ExcelResources
(
title
=
"
出版社 "
,
order
=
5
)
private
String
publishe
r
;
@ExcelResources
(
title
=
"
责任编辑"
,
order
=
8
)
private
String
executiveEdito
r
;
@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
;
}
wyszyk-provider/wyszyk-provider-resource/src/main/java/com/zrqx/resource/service/impl/EbookServiceImpl.java
浏览文件 @
7947b288
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论