Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
b91f7d8d
Commit
b91f7d8d
authored
Apr 09, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
5db6f55b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
+20
-13
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+6
-2
LearningContentController.java
...useum/party/web/controller/LearningContentController.java
+9
-8
application.properties
src/main/resources/application.properties
+5
-3
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
b91f7d8d
...
@@ -301,8 +301,12 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -301,8 +301,12 @@ public class ExhibitionBoardController extends BaseController {
exhibitionBoard
.
setExhibitionBoardCatName
(
name
);
exhibitionBoard
.
setExhibitionBoardCatName
(
name
);
}
}
if
(
exhibitionBoard
.
getVideoContentId
()
!=
null
)
{
if
(
exhibitionBoard
.
getVideoContentId
()
!=
null
)
{
String
name
=
this
.
videoContentService
.
getById
(
exhibitionBoard
.
getVideoContentId
()).
getName
();
final
VideoContent
videoContent
=
this
.
videoContentService
.
getById
(
exhibitionBoard
.
getVideoContentId
());
exhibitionBoard
.
setVideoContentName
(
name
);
if
(
videoContent
==
null
)
{
exhibitionBoard
.
setVideoContentName
(
"该视频内容已被删除"
);
}
else
{
exhibitionBoard
.
setVideoContentName
(
videoContent
.
getName
());
}
}
}
}
}
return
getResult
(
page
);
return
getResult
(
page
);
...
...
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/LearningContentController.java
View file @
b91f7d8d
...
@@ -343,14 +343,15 @@ public class LearningContentController extends BaseController {
...
@@ -343,14 +343,15 @@ public class LearningContentController extends BaseController {
String
videoContentId
=
exhibitionBoard
.
getVideoContentId
();
String
videoContentId
=
exhibitionBoard
.
getVideoContentId
();
if
(
videoContentId
!=
null
)
{
if
(
videoContentId
!=
null
)
{
final
VideoContent
videoContent
=
this
.
videoContentService
.
getById
(
videoContentId
);
final
VideoContent
videoContent
=
this
.
videoContentService
.
getOne
(
Wrappers
.<
VideoContent
>
lambdaQuery
().
eq
(
VideoContent:
:
getId
,
videoContentId
));
exhibitionBoard
.
setVideoContentName
(
videoContent
.
getName
());
if
(
videoContent
!=
null
)
{
assetQueryWrapper
.
clear
();
assetQueryWrapper
.
clear
();
assetQueryWrapper
=
Wrappers
.<
Asset
>
lambdaQuery
().
eq
(
Asset:
:
getRefItemId
,
videoContentId
);
assetQueryWrapper
=
Wrappers
.<
Asset
>
lambdaQuery
().
eq
(
Asset:
:
getRefItemId
,
videoContentId
);
assetQueryWrapper
.
eq
(
Asset:
:
getFileCat
,
FileCatEnum
.
VIDEO_CONTENT
.
name
());
assetQueryWrapper
.
eq
(
Asset:
:
getFileCat
,
FileCatEnum
.
VIDEO_CONTENT
.
name
());
final
List
<
Asset
>
videoList
=
this
.
assetService
.
list
(
assetQueryWrapper
);
final
List
<
Asset
>
videoList
=
this
.
assetService
.
list
(
assetQueryWrapper
);
exhibitionBoard
.
setVideoList
(
videoList
);
exhibitionBoard
.
setVideoList
(
videoList
);
exhibitionBoard
.
setVideoContentName
(
videoContent
.
getName
());
}
}
}
}
}
learningContent
.
setExhibitionBoardList
(
exhibitionBoardList
);
learningContent
.
setExhibitionBoardList
(
exhibitionBoardList
);
...
...
src/main/resources/application.properties
View file @
b91f7d8d
...
@@ -23,6 +23,7 @@ mybatis-plus.configuration.call-setters-on-nulls=true
...
@@ -23,6 +23,7 @@ mybatis-plus.configuration.call-setters-on-nulls=true
mybatis-plus.configuration.jdbc-type-for-null
=
null
mybatis-plus.configuration.jdbc-type-for-null
=
null
mybatis-plus.configuration.log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.configuration.log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
########################################################
########################################################
###FastDFS
###FastDFS
########################################################
########################################################
...
@@ -51,10 +52,10 @@ spring.mvc.format.date=yyyy-MM-dd HH:mm:ss
...
@@ -51,10 +52,10 @@ spring.mvc.format.date=yyyy-MM-dd HH:mm:ss
#spring.mvc.static-path-pattern=/public/**
#spring.mvc.static-path-pattern=/public/**
spring.web.resources.static-locations
=
classpath:/META-INF/resources/,classpath:/resources/,classpath:/statics/,classpath:/public/
spring.web.resources.static-locations
=
classpath:/META-INF/resources/,classpath:/resources/,classpath:/statics/,classpath:/public/
spring.servlet.multipart.enabled
=
true
spring.servlet.multipart.enabled
=
true
spring.servlet.multipart.max-request-size
=
4096
MB
spring.servlet.multipart.max-request-size
=
102400
MB
spring.servlet.multipart.max-file-size
=
4096
MB
spring.servlet.multipart.max-file-size
=
102400
MB
spring.web.resources.add-mappings
=
true
spring.web.resources.add-mappings
=
true
#spring.mvc.converters.preferred-json-mapper=fastjson
########################################################
########################################################
###thymeleaf
###thymeleaf
...
@@ -63,6 +64,7 @@ spring.profiles.active=dev
...
@@ -63,6 +64,7 @@ spring.profiles.active=dev
spring.thymeleaf.mode
=
HTML
spring.thymeleaf.mode
=
HTML
spring.thymeleaf.cache
=
false
spring.thymeleaf.cache
=
false
########################################################
########################################################
###Log
###Log
########################################################
########################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment