Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jfjxhly
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jfjxhly
Commits
7c6f7ad5
提交
7c6f7ad5
authored
3月 31, 2021
作者:
renjianyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
1b8db8c1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
4 行删除
+17
-4
FgArticleLibraryOneVO.java
...e/commons/vo/fg/articlelibrary/FgArticleLibraryOneVO.java
+6
-3
FgArticleLibraryController.java
...controller/articlelibrary/FgArticleLibraryController.java
+7
-0
FgResourceRelationService.java
...m/zrqx/resource/fg/service/FgResourceRelationService.java
+4
-1
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/commons/vo/fg/articlelibrary/FgArticleLibraryOneVO.java
浏览文件 @
7c6f7ad5
package
com
.
zrqx
.
resource
.
commons
.
vo
.
fg
.
articlelibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
com.zrqx.resource.commons.model.articlelibrary.ArticleToAudio
;
import
com.zrqx.resource.commons.model.resourcerelation.ResourceRelation
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"FgArticleLibraryOneVO"
,
description
=
"前台-单个查询文章返回的实体"
)
...
...
@@ -109,4 +109,7 @@ public class FgArticleLibraryOneVO {
@ApiModelProperty
(
"音频集合"
)
private
List
<
ArticleToAudio
>
articleToAudioList
;
@ApiModelProperty
(
"资源关联库"
)
private
List
<
ResourceRelation
>
resourceRelationList
;
}
app/resource/src/main/java/com/zrqx/resource/fg/controller/articlelibrary/FgArticleLibraryController.java
浏览文件 @
7c6f7ad5
...
...
@@ -31,6 +31,7 @@ import com.zrqx.core.util.bean.BeanUtils;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.resource.bg.service.ResourceRelationService
;
import
com.zrqx.resource.commons.form.fg.articlelibrary.FgDirectoryForm
;
import
com.zrqx.resource.commons.form.fg.articlelibrary.FgQueryArticleLibraryForm
;
import
com.zrqx.resource.commons.form.fg.articlelibrary.FgQueryRelatedArticleForm
;
...
...
@@ -44,6 +45,7 @@ import com.zrqx.resource.commons.vo.fg.diytype.FgDiyTypeVo;
import
com.zrqx.resource.commons.vo.fg.label.FgLabelInfoVO
;
import
com.zrqx.resource.commons.vo.fg.marketing.FgPromotionInfoOneVO
;
import
com.zrqx.resource.commons.vo.fg.resource.FgAboutListVo
;
import
com.zrqx.resource.fg.service.FgResourceRelationService
;
import
com.zrqx.resource.fg.service.articlelibrary.FgArticleLibraryDiyTypeService
;
import
com.zrqx.resource.fg.service.articlelibrary.FgArticleLibraryLabelContentDiyTypeService
;
import
com.zrqx.resource.fg.service.articlelibrary.FgArticleLibraryService
;
...
...
@@ -83,6 +85,8 @@ public class FgArticleLibraryController {
@Autowired
private
FgEbookService
ebookService
;
@Autowired
private
FgResourceRelationService
fgresourceRelationService
;
@Autowired
private
Redis
redis
;
/** 促销*/
@Autowired
...
...
@@ -188,6 +192,9 @@ public class FgArticleLibraryController {
ChapterLibrary
directorys
=
chapterLibraryService
.
selectOne
(
directory
);
articleLibraryOneVO
.
setOrderNum
(
directorys
.
getOrderNum
());
id
=
articleLibrary
.
getId
();
Example
example
=
fgresourceRelationService
.
createExample
();
example
.
createCriteria
().
andEqualTo
(
"objectId"
,
id
);
articleLibraryOneVO
.
setResourceRelationList
(
fgresourceRelationService
.
selectByExample
(
example
));
//通过bookID和orderNum查询文章
}
else
{
Integer
orderNum
=
form
.
getOrderNum
();
...
...
app/resource/src/main/java/com/zrqx/resource/fg/service/FgResourceRelationService.java
浏览文件 @
7c6f7ad5
...
...
@@ -2,11 +2,14 @@ package com.zrqx.resource.fg.service;
import
java.util.List
;
import
com.zrqx.core.service.BaseService
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.resource.commons.form.fg.resource.FgQueryRelatedForm
;
import
com.zrqx.resource.commons.model.resourcerelation.ResourceRelation
;
import
com.zrqx.resource.commons.vo.fg.resource.FgAboutListVo
;
public
interface
FgResourceRelationService
{
public
interface
FgResourceRelationService
extends
BaseService
<
ResourceRelation
,
Integer
>
{
/**
* 获取相关资源列表
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论