Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
2ee5e530
Commit
2ee5e530
authored
Jun 21, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-填充展板编号,新增展板视频内容信息可为空
parent
55fc3974
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
52 deletions
+92
-52
AddressUtil.java
...main/java/cn/chnmuseum/party/common/util/AddressUtil.java
+6
-0
ExhibitionBoardService.java
...va/cn/chnmuseum/party/service/ExhibitionBoardService.java
+1
-0
ChinaMobileRestApiController.java
...um/party/web/controller/ChinaMobileRestApiController.java
+79
-48
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+6
-4
No files found.
src/main/java/cn/chnmuseum/party/common/util/AddressUtil.java
View file @
2ee5e530
...
@@ -28,6 +28,12 @@ public class AddressUtil {
...
@@ -28,6 +28,12 @@ public class AddressUtil {
if
(
ip
==
null
||
ip
.
length
()
==
0
||
"unknown"
.
equalsIgnoreCase
(
ip
))
{
if
(
ip
==
null
||
ip
.
length
()
==
0
||
"unknown"
.
equalsIgnoreCase
(
ip
))
{
ip
=
request
.
getRemoteAddr
();
ip
=
request
.
getRemoteAddr
();
}
}
// 多次反向代理后会有多个IP值,只有第一个是真实IP
if
(
null
!=
ip
&&
ip
.
length
()
>
15
){
if
(
ip
.
indexOf
(
","
)
>
0
){
ip
=
ip
.
substring
(
0
,
ip
.
indexOf
(
","
));
}
}
return
ip
;
return
ip
;
}
}
...
...
src/main/java/cn/chnmuseum/party/service/ExhibitionBoardService.java
View file @
2ee5e530
...
@@ -19,4 +19,5 @@ public interface ExhibitionBoardService extends IService<ExhibitionBoard> {
...
@@ -19,4 +19,5 @@ public interface ExhibitionBoardService extends IService<ExhibitionBoard> {
List
<
ExhibitionBoard
>
getList
(
String
learningProjectId
,
boolean
b
);
List
<
ExhibitionBoard
>
getList
(
String
learningProjectId
,
boolean
b
);
List
<
ExhibitionBoard
>
getByContentList
(
String
learningContentId
,
boolean
b
);
List
<
ExhibitionBoard
>
getByContentList
(
String
learningContentId
,
boolean
b
);
}
}
src/main/java/cn/chnmuseum/party/web/controller/ChinaMobileRestApiController.java
View file @
2ee5e530
This diff is collapsed.
Click to expand it.
src/main/java/cn/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
2ee5e530
...
@@ -68,8 +68,6 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -68,8 +68,6 @@ public class ExhibitionBoardController extends BaseController {
private
LearningContentBoardService
learningContentBoardService
;
private
LearningContentBoardService
learningContentBoardService
;
@Resource
@Resource
private
LearningContentService
learningContentService
;
private
LearningContentService
learningContentService
;
@Resource
private
LearningProjectService
learningProjectService
;
@PostMapping
(
"/save"
)
@PostMapping
(
"/save"
)
@RequiresAuthentication
//@RequiresPermissions("exhibition:board:save")
@RequiresAuthentication
//@RequiresPermissions("exhibition:board:save")
...
@@ -422,6 +420,10 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -422,6 +420,10 @@ public class ExhibitionBoardController extends BaseController {
exhibitionBoard
.
setVideoContentCopyrightOwnerName
(
copyrightOwner
.
getName
());
exhibitionBoard
.
setVideoContentCopyrightOwnerName
(
copyrightOwner
.
getName
());
}
}
}
}
if
(
StringUtils
.
isEmpty
(
exhibitionBoard
.
getVideoContentCopyrightOwnerId
()))
{
exhibitionBoard
.
setVideoContentCopyrightOwnerName
(
"无"
);
exhibitionBoard
.
setVideoContentName
(
"无"
);
}
if
(
exhibitionBoard
.
getExhibitionBoardCatId
()
!=
null
)
{
if
(
exhibitionBoard
.
getExhibitionBoardCatId
()
!=
null
)
{
final
ExhibitionBoardCat
exhibitionBoardCat
=
this
.
exhibitionBoardCatService
.
getById
(
exhibitionBoard
.
getExhibitionBoardCatId
());
final
ExhibitionBoardCat
exhibitionBoardCat
=
this
.
exhibitionBoardCatService
.
getById
(
exhibitionBoard
.
getExhibitionBoardCatId
());
if
(
exhibitionBoardCat
==
null
)
{
if
(
exhibitionBoardCat
==
null
)
{
...
@@ -462,7 +464,7 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -462,7 +464,7 @@ public class ExhibitionBoardController extends BaseController {
if
(
boardCopyrightOwnerId
!=
null
)
{
if
(
boardCopyrightOwnerId
!=
null
)
{
exhibitionBoard
.
setBoardCopyrightOwnerName
(
this
.
copyrightOwnerService
.
getById
(
boardCopyrightOwnerId
).
getName
());
exhibitionBoard
.
setBoardCopyrightOwnerName
(
this
.
copyrightOwnerService
.
getById
(
boardCopyrightOwnerId
).
getName
());
}
}
if
(
exhibitionBoard
.
getVideoContentCopyrightOwnerId
()
!=
null
)
{
if
(
StringUtils
.
isNotEmpty
(
exhibitionBoard
.
getVideoContentCopyrightOwnerId
())
)
{
String
name
=
this
.
copyrightOwnerService
.
getById
(
exhibitionBoard
.
getVideoContentCopyrightOwnerId
()).
getName
();
String
name
=
this
.
copyrightOwnerService
.
getById
(
exhibitionBoard
.
getVideoContentCopyrightOwnerId
()).
getName
();
exhibitionBoard
.
setVideoContentCopyrightOwnerName
(
name
);
exhibitionBoard
.
setVideoContentCopyrightOwnerName
(
name
);
}
}
...
@@ -485,7 +487,7 @@ public class ExhibitionBoardController extends BaseController {
...
@@ -485,7 +487,7 @@ public class ExhibitionBoardController extends BaseController {
exhibitionBoard
.
setAuditHistoryList
(
auditList
);
exhibitionBoard
.
setAuditHistoryList
(
auditList
);
final
String
videoContentId
=
exhibitionBoard
.
getVideoContentId
();
final
String
videoContentId
=
exhibitionBoard
.
getVideoContentId
();
if
(
videoContentId
!=
null
)
{
if
(
StringUtils
.
isNotEmpty
(
videoContentId
)
)
{
final
VideoContent
videoContent
=
this
.
videoContentService
.
getById
(
videoContentId
);
final
VideoContent
videoContent
=
this
.
videoContentService
.
getById
(
videoContentId
);
exhibitionBoard
.
setVideoContentName
(
videoContent
.
getName
());
exhibitionBoard
.
setVideoContentName
(
videoContent
.
getName
());
...
...
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