Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hxkf
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
hxkf
Commits
22bc70af
提交
22bc70af
authored
12月 31, 2020
作者:
jiashixiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前台公共资源接口添加查询专家
上级
3d282b63
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
FgRecommendController.java
...source/fg/controller/recommend/FgRecommendController.java
+2
-4
FgAuthorLibraryMapper.java
...source/fg/mapper/authorlibrary/FgAuthorLibraryMapper.java
+7
-5
FgEbookMapper.java
...java/com/zrqx/resource/fg/mapper/ebook/FgEbookMapper.java
+2
-2
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/fg/controller/recommend/FgRecommendController.java
浏览文件 @
22bc70af
...
...
@@ -3,6 +3,7 @@ package com.zrqx.resource.fg.controller.recommend;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
com.zrqx.resource.commons.vo.fg.authorlibrary.FgAuthorLibraryListVO
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -123,10 +124,7 @@ public class FgRecommendController {
}
//首页-专家团队
if
(
"PC_home05"
.
equals
(
query
.
getCode
()))
{
FgQueryRecommedEbookForm
form
=
new
FgQueryRecommedEbookForm
();
form
.
setIds
(
ids
);
PageInfo
<
FgEbookListVO
>
result
=
ebookService
.
getRecommendList
(
form
,
pageParam
);
PageInfo
<
FgAuthorLibraryListVO
>
result
=
authorLibraryService
.
queryRecommendAuthorPage
(
ids
,
pageParam
);
vo
.
setRecommendResourcePage
(
result
);
return
CallBack
.
success
(
vo
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/fg/mapper/authorlibrary/FgAuthorLibraryMapper.java
浏览文件 @
22bc70af
...
...
@@ -55,15 +55,17 @@ public interface FgAuthorLibraryMapper extends BaseMapper<AuthorLibrary> {
List
<
FgAuthorLibraryListVO
>
queryRecommendAuthor
(
@Param
(
"form"
)
FgQueryRecommedAuthorForm
form
);
@Select
(
"<script>"
+
"select id,name,institutionName,sex,education,department,title,post,synopsis,img,uploadTime,browseNum "
+
"FROM res_author_library "
+
"where status = 1 "
+
"select a.id,a.name,a.institutionName,a.sex,a.education,a.department,a.title,a.post,a.synopsis,a.img,a.uploadTime,a.browseNum,a.expertise "
+
"FROM res_author_library a "
+
"left join res_recommend_resource b on a.id = b.resId "
+
"where a.status = 1 "
+
"<if test='ids != null and ids.size > 0' >"
+
"and id in "
+
"and
a.
id in "
+
" <foreach collection=\"ids\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">"
+
"#{id}"
+
"</foreach>"
+
"</if>"
+
"</if>"
+
"ORDER BY b.sort "
+
"</script>"
)
List
<
FgAuthorLibraryListVO
>
queryRecommendAuthorByIds
(
@Param
(
"ids"
)
List
<
String
>
ids
);
...
...
app/resource/src/main/java/com/zrqx/resource/fg/mapper/ebook/FgEbookMapper.java
浏览文件 @
22bc70af
...
...
@@ -30,7 +30,7 @@ public interface FgEbookMapper extends BaseMapper<Ebook>{
*/
@Select
(
"<script>"
+
"select bb.id, bb.name, bb.authorId, bb.author, bb.translatorId, bb.translator, "
+
"bb.publishTime, bb.status, bb.resourceType, be.priceOption, be.realPrice,be.price,be.
bookCover, be.summary
, be.bookStatus, be.browseNum ,be.isContainEntity, be.entityRealPrice, be.entityPrice "
+
"bb.publishTime, bb.status, bb.resourceType, be.priceOption, be.realPrice,be.price,be.
img, be.synopsis
, be.bookStatus, be.browseNum ,be.isContainEntity, be.entityRealPrice, be.entityPrice "
+
"FROM res_book bb "
+
"LEFT JOIN res_ebook be ON bb.id = be.id "
+
"LEFT JOIN res_ebook_diy_type diy ON be.id = diy.ebookId "
...
...
@@ -76,7 +76,7 @@ public interface FgEbookMapper extends BaseMapper<Ebook>{
*/
@Select
(
"<script>"
+
"select bb.id, bb.name, bb.authorId, bb.author, bb.translatorId, bb.translator, "
+
"bb.publishTime, bb.status, bb.resourceType, be.priceOption, be.price,be.realPrice, be.
bookCover, be.summary
, be.bookStatus, be.browseNum,be.isContainEntity, be.entityRealPrice, be.entityPrice "
+
"bb.publishTime, bb.status, bb.resourceType, be.priceOption, be.price,be.realPrice, be.
img, be.synopsis
, be.bookStatus, be.browseNum,be.isContainEntity, be.entityRealPrice, be.entityPrice "
+
"FROM res_book bb "
+
"LEFT JOIN res_ebook be ON bb.id = be.id "
+
"LEFT JOIN res_ebook_diy_type diy ON be.id = diy.ebookId "
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论