Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nrgl
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
nrgl
Commits
0a9348e8
提交
0a9348e8
authored
5月 27, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
4d23ce8a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
11 行删除
+23
-11
SaveUpdateEbookForm.java
...zrqx/core/form/resource/bg/ebook/SaveUpdateEbookForm.java
+2
-2
EbookLibraryController.java
...ce/bg/controller/ebooklibrary/EbookLibraryController.java
+21
-9
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/ebook/SaveUpdateEbookForm.java
浏览文件 @
0a9348e8
...
...
@@ -49,9 +49,9 @@ public class SaveUpdateEbookForm {
@ApiModelProperty
(
"数据类型:0 纸质版 1电子版 2纸质版+电子版 3其他"
)
private
Integer
dataType
;
@ApiModelProperty
(
"所属部门id"
)
private
String
departmentId
;
private
Integer
departmentId
;
@ApiModelProperty
(
"所属部门"
)
private
Integer
department
;
private
String
department
;
@ApiModelProperty
(
"审核状态 0:录入中 1:待审核 2:审核中 3:审核通过 4:审核未通过"
)
private
Integer
bookStatus
;
/**纸质书信息**/
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/ebooklibrary/EbookLibraryController.java
浏览文件 @
0a9348e8
...
...
@@ -3,14 +3,12 @@ package com.zrqx.resource.bg.controller.ebooklibrary;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
java.io.IOException
;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -24,10 +22,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
tk.mybatis.mapper.entity.Example.Criteria
;
import
com.zrqx.core.constant.resource.ResourceRequestPath
;
import
com.zrqx.core.constant.sysuser.SysUserRequestPath
;
import
com.zrqx.core.enums.ResourceTypeEnum
;
...
...
@@ -41,6 +37,7 @@ import com.zrqx.core.form.resource.bg.ebook.SaveDiyTypeForm;
import
com.zrqx.core.form.resource.bg.ebook.SaveUpdateEbookForm
;
import
com.zrqx.core.form.resource.bg.ebook.UpdateEbookForm
;
import
com.zrqx.core.model.resource.animationlibrary.AnimationLibrary
;
import
com.zrqx.core.model.resource.articlelibrary.ArticleGoods
;
import
com.zrqx.core.model.resource.audiolibrary.AudioLibrary
;
import
com.zrqx.core.model.resource.coursewarelibrary.CoursewareLibrary
;
import
com.zrqx.core.model.resource.ebook.Book
;
...
...
@@ -68,11 +65,11 @@ import com.zrqx.core.vo.resource.ebook.ImportExcelBookVO;
import
com.zrqx.core.vo.resource.label.LabelAndContentByDataTypeVO
;
import
com.zrqx.resource.bg.service.ResourceRelationVoService
;
import
com.zrqx.resource.bg.service.animationlibrary.AnimationLibraryService
;
import
com.zrqx.resource.bg.service.articlelibrary.ArticleGoodsService
;
import
com.zrqx.resource.bg.service.articlelibrary.ArticleLibraryService
;
import
com.zrqx.resource.bg.service.articlelibrary.ChapterLibraryService
;
import
com.zrqx.resource.bg.service.audiolibrary.AudioLibraryService
;
import
com.zrqx.resource.bg.service.coursewarelibrary.CoursewareLibraryService
;
import
com.zrqx.resource.bg.service.diytype.DiyTypeService
;
import
com.zrqx.resource.bg.service.ebook.BookGoodsAlbumService
;
import
com.zrqx.resource.bg.service.ebook.BookGoodsService
;
import
com.zrqx.resource.bg.service.ebook.BookIssuedService
;
...
...
@@ -143,6 +140,8 @@ public class EbookLibraryController {
private
BookGoodsService
goodsService
;
@Autowired
private
ClassifyRelationService
diyTypeService
;
@Autowired
private
ArticleGoodsService
articleGoodsService
;
...
...
@@ -375,8 +374,14 @@ public class EbookLibraryController {
ClassifyRelation
edt
=
new
ClassifyRelation
();
edt
.
setObjectId
(
ev
.
getEbook
().
getBookId
());
edt
.
setCode
(
ev
.
getCode
());
edt
.
setResourceType
(
1
);
edt
.
setDtId
(
"0"
);
bookTypeService
.
insert
(
edt
);
//商品信息
BookGoods
goods
=
new
BookGoods
();
goods
.
setObjectId
(
ev
.
getBook
().
getId
());
goods
.
setDataSources
(
1
);
bookGoodsService
.
insertSelective
(
goods
);
// 章节
ev
.
getChapterSet
().
forEach
(
chapter
->
{
chapter
.
setBookid
(
ev
.
getBook
().
getId
());
...
...
@@ -395,7 +400,13 @@ public class EbookLibraryController {
aldt
.
setObjectId
(
article
.
getId
());
aldt
.
setCode
(
ev
.
getCode
());
aldt
.
setDtId
(
"0"
);
aldt
.
setResourceType
(
2
);
bookTypeService
.
insertSelective
(
aldt
);
//商品信息
ArticleGoods
agoods
=
new
ArticleGoods
();
agoods
.
setObjectId
(
article
.
getId
());
agoods
.
setDataSources
(
1
);
articleGoodsService
.
insertSelective
(
agoods
);
});
// 图片
...
...
@@ -409,12 +420,13 @@ public class EbookLibraryController {
ildt
.
setDtId
(
"0"
);
ildt
.
setCode
(
ev
.
getCode
());
ildt
.
setObjectId
(
image
.
getId
());
ildt
.
setResourceType
(
5
);
bookTypeService
.
insertSelective
(
ildt
);
//商品信息
ImageGoods
goods
=
new
ImageGoods
();
goods
.
setObjectId
(
image
.
getId
());
goods
.
setDataSources
(
1
);
imageGoodsService
.
insertSelective
(
goods
);
ImageGoods
i
goods
=
new
ImageGoods
();
i
goods
.
setObjectId
(
image
.
getId
());
i
goods
.
setDataSources
(
1
);
imageGoodsService
.
insertSelective
(
i
goods
);
});
try
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论