Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jfjxhly
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jfjxhly
Commits
a8b26c7f
提交
a8b26c7f
authored
3月 24, 2021
作者:
renjianyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
cca51bbc
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
61 行增加
和
53 行删除
+61
-53
AnnexLibrarySerivceImpl.java
...urce/bg/service/annexlibrary/AnnexLibrarySerivceImpl.java
+1
-1
ArticleLibrarySerivceImpl.java
.../bg/service/articlelibrary/ArticleLibrarySerivceImpl.java
+1
-1
AudioLibrarySerivceImpl.java
...urce/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
+2
-2
CartoonLibrarySerivceImpl.java
.../bg/service/cartoonlibrary/CartoonLibrarySerivceImpl.java
+1
-1
H5LibrarySerivceImpl.java
...com/zrqx/resource/bg/service/h5/H5LibrarySerivceImpl.java
+1
-1
ImageLibrarySerivceImpl.java
...urce/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
+1
-1
PaintingLibrarySerivceImpl.java
...g/service/paintinglibrary/PaintingLibrarySerivceImpl.java
+1
-1
ProjectLibrarySerivceImpl.java
.../bg/service/projectlibrary/ProjectLibrarySerivceImpl.java
+1
-1
VideoLibrarySerivceImpl.java
...urce/bg/service/videolibrary/VideoLibrarySerivceImpl.java
+2
-2
VrLibrarySerivceImpl.java
...com/zrqx/resource/bg/service/vr/VrLibrarySerivceImpl.java
+1
-1
Ebook.java
...ain/java/com/zrqx/resource/commons/model/ebook/Ebook.java
+3
-0
FgResourceLibraryController.java
...ntroller/resourcelibrary/FgResourceLibraryController.java
+46
-41
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/bg/service/annexlibrary/AnnexLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -103,7 +103,7 @@ public class AnnexLibrarySerivceImpl extends BaseServiceImpl<AnnexLibrary,String
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
ANNEX
.
getCode
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setReadTextPower
(
1
);
entity
.
setDownloadNum
(
50
);
entity
.
setSalesNum
(
0
);
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/articlelibrary/ArticleLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -102,7 +102,7 @@ public class ArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,St
//添加
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setBrowseNum
(
5
0
);
//浏览数量
entity
.
setBrowseNum
(
0
);
//浏览数量
entity
.
setReadTextPower
(
1
);
entity
.
setSalesNum
(
0
);
entity
.
setGoodsType
(
GoodsTypeEnum
.
ARTICLE
.
getCode
());
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/audiolibrary/AudioLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -118,7 +118,7 @@ public class AudioLibrarySerivceImpl extends BaseServiceImpl<AudioLibrary,String
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
AUDIO
.
getCode
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setSalesNum
(
0
);
mapper
.
insert
(
entity
);
// QrCode qrCode = new QrCode();
...
...
@@ -177,7 +177,7 @@ public class AudioLibrarySerivceImpl extends BaseServiceImpl<AudioLibrary,String
form
.
forEach
(
f
->
{
AudioLibrary
entity
=
new
AudioLibrary
();
BeanUtils
.
copyProperties
(
f
,
entity
);
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setResourceType
(
AllResourceTypeEnum
.
AUDIO
.
getCode
());
entity
.
setPriceOption
(
PriceOptionEnum
.
STATUS_0
.
getCode
());
entity
.
setRealPrice
(
new
BigDecimal
(
0
));
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/cartoonlibrary/CartoonLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -100,7 +100,7 @@ public class CartoonLibrarySerivceImpl extends BaseServiceImpl<CartoonLibrary,St
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setResourceType
(
AllResourceTypeEnum
.
CARTOON
.
getCode
());
mapper
.
insert
(
entity
);
}
else
{
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/h5/H5LibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -87,7 +87,7 @@ public class H5LibrarySerivceImpl extends BaseServiceImpl<H5Library,String> impl
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setResourceType
(
AllResourceTypeEnum
.
H5
.
getCode
());
mapper
.
insert
(
entity
);
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -101,7 +101,7 @@ public class ImageLibrarySerivceImpl extends BaseServiceImpl<ImageLibrary,String
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
IMAGE
.
getCode
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setReadTextPower
(
1
);
entity
.
setDownloadNum
(
50
);
entity
.
setSalesNum
(
0
);
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/paintinglibrary/PaintingLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -94,7 +94,7 @@ public class PaintingLibrarySerivceImpl extends BaseServiceImpl<PaintingLibrary,
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setResourceType
(
AllResourceTypeEnum
.
PAINTING
.
getCode
());
mapper
.
insert
(
entity
);
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/projectlibrary/ProjectLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -73,7 +73,7 @@ public class ProjectLibrarySerivceImpl extends BaseServiceImpl<ProjectLibrary,St
//添加专题
entity
.
setUploadTime
(
new
Date
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
PROJECT
.
getCode
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
if
(
mapper
.
insert
(
entity
)
==
0
){
throw
new
BaseException
(
"保存失败!"
);
}
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/videolibrary/VideoLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -133,7 +133,7 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
VIDEO
.
getCode
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setShares
(
0
);
entity
.
setSalesNum
(
0
);
entity
.
setSalesType
(
SalsesTypeEnum
.
STATUS_1
.
getCode
());
...
...
@@ -204,7 +204,7 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
form
.
forEach
(
f
->
{
VideoLibrary
entity
=
new
VideoLibrary
();
BeanUtils
.
copyProperties
(
f
,
entity
);
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setShares
(
0
);
entity
.
setSalesType
(
SalsesTypeEnum
.
STATUS_1
.
getCode
());
entity
.
setResourceType
(
AllResourceTypeEnum
.
VIDEO
.
getCode
());
...
...
app/resource/src/main/java/com/zrqx/resource/bg/service/vr/VrLibrarySerivceImpl.java
浏览文件 @
a8b26c7f
...
...
@@ -85,7 +85,7 @@ public class VrLibrarySerivceImpl extends BaseServiceImpl<VrLibrary,String> impl
entity
.
setStatus
(
LibraryStatusEnum
.
STATUS_0
.
getCode
());
entity
.
setUploadTime
(
new
Date
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setBrowseNum
(
5
0
);
entity
.
setBrowseNum
(
0
);
entity
.
setResourceType
(
AllResourceTypeEnum
.
VR
.
getCode
());
mapper
.
insert
(
entity
);
...
...
app/resource/src/main/java/com/zrqx/resource/commons/model/ebook/Ebook.java
浏览文件 @
a8b26c7f
...
...
@@ -92,4 +92,7 @@ public class Ebook {
private
String
editRecommendation
;
@ApiModelProperty
(
"精彩书摘"
)
private
String
digest
;
@ApiModelProperty
(
"电子书顺序,用于解放军出版社星火燎原"
)
private
Integer
ebookOrderNum
;
}
app/resource/src/main/java/com/zrqx/resource/fg/controller/resourcelibrary/FgResourceLibraryController.java
浏览文件 @
a8b26c7f
...
...
@@ -1094,6 +1094,7 @@ public class FgResourceLibraryController {
}
fqSq
.
append
(
")"
);
}
System
.
out
.
println
(
fqSq
.
toString
());
sq
.
set
(
"fq"
,
fqSq
.
toString
());
if
(
StringUtils
.
isBlank
(
form
.
getContent
())){
// 设置查询条件
...
...
@@ -1156,24 +1157,24 @@ public class FgResourceLibraryController {
//分类和标签返显
//this.solrListOfLabelAndDiyType(form, resultPage);
// 查询全部分类
String
diyTypeName
=
null
;
if
(
form
.
getResourceType
()
!=
null
){
//判断搜索资源类型,过滤
if
(
form
.
getResourceType
().
equals
(
AllResourceTypeEnum
.
BOOK
.
getCode
())){
diyTypeName
=
"图书分类"
;
}
if
(
form
.
getResourceType
().
equals
(
AllResourceTypeEnum
.
VIDEO
.
getCode
())){
diyTypeName
=
"视频分类"
;
}
if
(
form
.
getResourceType
().
equals
(
AllResourceTypeEnum
.
AUDIO
.
getCode
())){
diyTypeName
=
"音频分类"
;
}
}
List
<
FgDiyTypeVo
>
diyTypeList
=
this
.
tree
(
diyTypeName
);
if
(
ArrayUtils
.
isNotEmpty
(
diyTypeList
)){
diyTypeList
=
diyTypeList
.
get
(
0
).
getChildren
();
}
resultPage
.
setDiyTypeList
(
diyTypeList
);
//
String diyTypeName = null;
//
if(form.getResourceType() != null){
//
//判断搜索资源类型,过滤
//
if(form.getResourceType().equals(AllResourceTypeEnum.BOOK.getCode())){
//
diyTypeName = "图书分类";
//
}
//
if(form.getResourceType().equals(AllResourceTypeEnum.VIDEO.getCode())){
//
diyTypeName = "视频分类";
//
}
//
if(form.getResourceType().equals(AllResourceTypeEnum.AUDIO.getCode())){
//
diyTypeName = "音频分类";
//
}
//
}
//
List<FgDiyTypeVo> diyTypeList = this.tree(diyTypeName);
//
if(ArrayUtils.isNotEmpty(diyTypeList)){
//
diyTypeList = diyTypeList.get(0).getChildren();
//
}
//
resultPage.setDiyTypeList(diyTypeList);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -1184,7 +1185,10 @@ public class FgResourceLibraryController {
// 遍历数据
for
(
SolrDocument
solrDocument
:
doclist
)
{
// 图书
if
(
solrDocument
.
get
(
"resourceType"
).
equals
(
AllResourceTypeEnum
.
BOOK
.
getCode
())){
/*
if(solrDocument.get("resourceType").equals(AllResourceTypeEnum.BOOK.getCode()
)){
//存储每个高亮处理后的结果
Map<String, Object> resultMap = new HashMap<String, Object>();
FgEbookVO ebookVo = new FgEbookVO();
...
...
@@ -1474,40 +1478,41 @@ public class FgResourceLibraryController {
}
reslist.add(resultMap);
}
// 直播
if
(
solrDocument
.
get
(
"resourceType"
).
equals
(
AllResourceTypeEnum
.
LIVE
.
getCode
())){
*/
//存储每个高亮处理后的结果
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<
String
,
Object
>();
FgLiveVO
vo
=
new
FgLiveVO
();
vo
=
resourceLibraryService
.
getInfoBysolrDocument
(
solrDocument
);
resultMap
.
put
(
"message"
,
vo
.
getMessage
());
resultMap
.
put
(
"messageCode"
,
vo
.
getMessageCode
());
//
FgLiveVO vo = new FgLiveVO();
//
vo = resourceLibraryService.getInfoBysolrDocument(solrDocument);
//
resultMap.put("message", vo.getMessage());
//
resultMap.put("messageCode", vo.getMessageCode());
//查询结果的id,存入map
resultMap
.
put
(
"id"
,
solrDocument
.
get
(
"id"
));
resultMap
.
put
(
"
status"
,
solrDocument
.
get
(
"status
"
));
resultMap
.
put
(
"
liveStatus"
,
solrDocument
.
get
(
"liveStatu
s"
));
resultMap
.
put
(
"
img"
,
solrDocument
.
get
(
"img
"
));;
resultMap
.
put
(
"
price"
,
solrDocument
.
get
(
"price
"
));
resultMap
.
put
(
"
realPrice"
,
solrDocument
.
get
(
"realPrice
"
));
resultMap
.
put
(
"
priceOption"
,
solrDocument
.
get
(
"priceOption
"
));
resultMap
.
put
(
"liveTime"
,
formatLiveDate
((
Date
)
solrDocument
.
get
(
"liveTime"
)));
resultMap
.
put
(
"browseNum"
,
solrDocument
.
get
(
"browseNum"
));
resultMap
.
put
(
"resourceType"
,
solrDocument
.
get
(
"resourceType"
));
resultMap
.
put
(
"
name"
,
solrDocument
.
get
(
"name
"
));
resultMap
.
put
(
"
synopsis"
,
solrDocument
.
get
(
"synopsi
s"
));
resultMap
.
put
(
"
timeLength"
,
solrDocument
.
get
(
"timeLength
"
));;
resultMap
.
put
(
"
ordernum"
,
solrDocument
.
get
(
"ordernum
"
));
resultMap
.
put
(
"
ebookOrderNum"
,
solrDocument
.
get
(
"ebookOrderNum
"
));
resultMap
.
put
(
"
resourceType"
,
solrDocument
.
get
(
"resourceType
"
));
//
resultMap.put("liveTime",formatLiveDate((Date)solrDocument.get("liveTime")));
//
resultMap.put("browseNum",solrDocument.get("browseNum"));
//
resultMap.put("resourceType",solrDocument.get("resourceType"));
resultMap
.
put
(
"name"
,
solrDocument
.
get
(
"name"
));
resultMap
.
put
(
"author"
,
solrDocument
.
get
(
"author"
));
resultMap
.
put
(
"authorId"
,
solrDocument
.
get
(
"authorId"
));
//
resultMap.put("name",solrDocument.get("name"));
//
resultMap.put("author", solrDocument.get("author"));
//
resultMap.put("authorId", solrDocument.get("authorId"));
//将高亮处理的结果存人resultMap
if
(
highlightMap
!=
null
){
if
(
highlightMap
.
get
(
solrDocument
.
get
(
"id"
)).
get
(
"name"
)
!=
null
){
resultMap
.
put
(
"name"
,
highlightMap
.
get
(
solrDocument
.
get
(
"id"
)).
get
(
"name"
).
get
(
0
));
}
if
(
highlightMap
.
get
(
solrDocument
.
get
(
"id"
)).
get
(
"Author"
)
!=
null
){
resultMap
.
put
(
"author"
,
highlightMap
.
get
(
solrDocument
.
get
(
"id"
)).
get
(
"author"
).
get
(
0
));
}
//
if(highlightMap.get(solrDocument.get("id")).get("Author") != null){
//
resultMap.put("author", highlightMap.get(solrDocument.get("id")).get("author").get(0));
//
}
}
reslist
.
add
(
resultMap
);
}
}
return
reslist
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论