Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zcq
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zcq
Commits
76e6ddc7
提交
76e6ddc7
authored
8月 07, 2019
作者:
yucaiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
fce861b4
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
ArticleLibraryController.java
...g/controller/articlelibrary/ArticleLibraryController.java
+2
-2
EbookController.java
...om/zrqx/resource/bg/controller/ebook/EbookController.java
+5
-0
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/articlelibrary/ArticleLibraryController.java
浏览文件 @
76e6ddc7
...
@@ -153,9 +153,9 @@ public class ArticleLibraryController {
...
@@ -153,9 +153,9 @@ public class ArticleLibraryController {
if
(
entity
.
getStatus
()
==
LibraryStatusEnum
.
STATUS_0
.
getCode
())
{
if
(
entity
.
getStatus
()
==
LibraryStatusEnum
.
STATUS_0
.
getCode
())
{
throw
new
BusinessValidateException
(
"待审核状态的文章不能直接操作上架状态需通过批量审核操作上架"
);
throw
new
BusinessValidateException
(
"待审核状态的文章不能直接操作上架状态需通过批量审核操作上架"
);
}
}
if
(
entity
.
getBookId
()
!=
null
&&
entity
.
getBookId
()
!=
""
)
{
/*
if (entity.getBookId() != null && entity.getBookId() != "") {
throw new BusinessValidateException("图书内拆分出来的文章不支持单独上、下架、删除操作");
throw new BusinessValidateException("图书内拆分出来的文章不支持单独上、下架、删除操作");
}
}
*/
}
}
for
(
ArticleLibrary
entity
:
list
)
{
for
(
ArticleLibrary
entity
:
list
)
{
entity
.
setStatus
(
form
.
getStatus
());
entity
.
setStatus
(
form
.
getStatus
());
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/ebook/EbookController.java
浏览文件 @
76e6ddc7
...
@@ -49,6 +49,7 @@ import com.zrqx.core.model.resource.ebook.EbookDiyType;
...
@@ -49,6 +49,7 @@ import com.zrqx.core.model.resource.ebook.EbookDiyType;
import
com.zrqx.core.model.resource.ebook.EbookResource
;
import
com.zrqx.core.model.resource.ebook.EbookResource
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibrary
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibrary
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryDiyType
;
import
com.zrqx.core.model.resource.imagelibrary.ImageLibraryDiyType
;
import
com.zrqx.core.util.datatype.ArrayUtils
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.util.response.CallBack
;
...
@@ -241,14 +242,18 @@ public class EbookController {
...
@@ -241,14 +242,18 @@ public class EbookController {
Example
example
=
alservice
.
createExample
();
Example
example
=
alservice
.
createExample
();
example
.
createCriteria
().
andIn
(
"bookId"
,
ids
);
example
.
createCriteria
().
andIn
(
"bookId"
,
ids
);
List
<
ArticleLibrary
>
articleList
=
alservice
.
selectByExample
(
example
);
List
<
ArticleLibrary
>
articleList
=
alservice
.
selectByExample
(
example
);
if
(
ArrayUtils
.
isNotEmpty
(
articleList
)){
List
<
String
>
articleIds
=
articleList
.
stream
().
map
(
ArticleLibrary
::
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
articleIds
=
articleList
.
stream
().
map
(
ArticleLibrary
::
getId
).
collect
(
Collectors
.
toList
());
alservice
.
batchDelete
(
articleIds
);
alservice
.
batchDelete
(
articleIds
);
}
// 删除图片
// 删除图片
example
=
ilService
.
createExample
();
example
=
ilService
.
createExample
();
example
.
createCriteria
().
andIn
(
"bookId"
,
ids
);
example
.
createCriteria
().
andIn
(
"bookId"
,
ids
);
List
<
ImageLibrary
>
imageList
=
ilService
.
selectByExample
(
example
);
List
<
ImageLibrary
>
imageList
=
ilService
.
selectByExample
(
example
);
if
(
ArrayUtils
.
isNotEmpty
(
imageList
))
{
List
<
Integer
>
imageIds
=
imageList
.
stream
().
map
(
ImageLibrary
::
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
imageIds
=
imageList
.
stream
().
map
(
ImageLibrary
::
getId
).
collect
(
Collectors
.
toList
());
ilService
.
batchDelete
(
imageIds
);
ilService
.
batchDelete
(
imageIds
);
}
return
CallBack
.
success
();
return
CallBack
.
success
();
}
}
@ApiOperation
(
"查询电子书列表"
)
@ApiOperation
(
"查询电子书列表"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论