Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wyszyk
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
任建彩
wyszyk
Commits
38f28185
提交
38f28185
authored
8月 30, 2022
作者:
任建彩
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:系列
1.resource
上级
9c2d710a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
7 行删除
+5
-7
RecommendResourceServiceImpl.java
...x/resource/service/impl/RecommendResourceServiceImpl.java
+4
-2
ResourceLibraryServiceImpl.java
...rqx/resource/service/impl/ResourceLibraryServiceImpl.java
+1
-5
没有找到文件。
wyszyk-provider/wyszyk-provider-resource/src/main/java/com/zrqx/resource/service/impl/RecommendResourceServiceImpl.java
浏览文件 @
38f28185
...
...
@@ -299,7 +299,7 @@ public class RecommendResourceServiceImpl extends ServiceImpl<RecommendResourceM
switch
(
code
)
{
case
GlobalConstant
.
SYZT
:
//填充数据且补全推荐位数量
result
=
this
.
queryRecommendResourceList
(
ids
,
num
,
ProjectLibrary
.
class
,
AllResourceTypeEnum
.
PROJECT
,
null
);
result
=
this
.
queryRecommendResourceList
(
ids
,
num
,
ProjectLibrary
.
class
,
AllResourceTypeEnum
.
PROJECT
,
"1"
);
break
;
case
GlobalConstant
.
TJTSZY
:
//填充数据且补全推荐位数量
...
...
@@ -410,7 +410,9 @@ public class RecommendResourceServiceImpl extends ServiceImpl<RecommendResourceM
if
(
ids
.
size
()
>
0
)
{
sql
.
append
(
" AND id NOT IN {1} "
);
}
if
(
StringUtils
.
isNotBlank
(
bookid
)
&&
bookid
==
"1"
){
sql
.
append
(
" type = 1 "
);
}
sql
.
append
(
" ORDER BY createdTime DESC LIMIT 0, {2};"
);
List
<
Object
>
fillIds
=
SqlRunner
.
db
().
selectObjs
(
sql
.
toString
(),
StatusEnum
.
ENABLE
.
getCode
(),
ids
,
diff
);
...
...
wyszyk-provider/wyszyk-provider-resource/src/main/java/com/zrqx/resource/service/impl/ResourceLibraryServiceImpl.java
浏览文件 @
38f28185
package
com
.
zrqx
.
resource
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.TableInfo
;
import
com.baomidou.mybatisplus.core.metadata.TableInfoHelper
;
import
com.baomidou.mybatisplus.extension.toolkit.SqlRunner
;
...
...
@@ -211,10 +210,7 @@ public class ResourceLibraryServiceImpl implements ResourceLibraryService {
resultMap
.
put
(
"author"
,
audioBookAuthorService
.
queryAudioBookAuthorList
((
String
)
resultMap
.
get
(
"id"
)));
break
;
case
PROJECT:
//ProjectLibrary projectLibrary = projectLibraryMapper.selectById(id);
LambdaQueryWrapper
<
ProjectLibrary
>
projectLibrary
=
new
LambdaQueryWrapper
<>();
projectLibrary
.
eq
(
ProjectLibrary:
:
getId
,
id
);
projectLibrary
.
eq
(
ProjectLibrary:
:
getType
,
1
);
ProjectLibrary
projectLibrary
=
projectLibraryMapper
.
selectById
(
id
);
if
(
projectLibrary
==
null
)
break
;
resultMap
=
mapper
.
convertValue
(
projectLibrary
,
new
TypeReference
<
Map
<
String
,
Object
>>()
{});
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论