Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
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
base_platform_enterprise
gic-platform-enterprise
Commits
3cae87b6
Commit
3cae87b6
authored
Dec 20, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航保存增加icon路径
parent
491d733d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
CustomGuideController.java
.../gic/enterprise/web/controller/CustomGuideController.java
+5
-1
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomGuideController.java
View file @
3cae87b6
...
...
@@ -13,6 +13,8 @@ import com.gic.enterprise.service.CustomGuideApiService;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -24,6 +26,7 @@ import java.util.Map;
@RestController
public
class
CustomGuideController
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
CustomGuideController
.
class
);
@Autowired
private
CustomGuideApiService
customGuideApiService
;
...
...
@@ -46,7 +49,7 @@ public class CustomGuideController {
guideDTO
.
setSort
(
json
.
getInteger
(
"sort"
));
guideDTO
.
setStatus
(
json
.
getInteger
(
"status"
));
guideDTO
.
setAppid
(
appId
);
guideDTO
.
setIcon
(
json
.
getString
(
"iconPath"
));
guideDTO
.
setIcon
Path
(
json
.
getString
(
"iconPath"
));
guideDTO
.
setSelectedIconPath
(
json
.
getString
(
"selectedIconPath"
));
this
.
getPath
(
guideDTO
,
list
,
response
.
getResult
());
list
.
add
(
guideDTO
);
...
...
@@ -54,6 +57,7 @@ public class CustomGuideController {
if
(!
isNeedNewVersion
&&
this
.
isNeedNewVersion
(
list
,
enterpriseId
,
appId
)){
return
RestResponse
.
failure
(
ErrorCode
.
ISNEEDNEWVERSION
.
getCode
(),
ErrorCode
.
ISNEEDNEWVERSION
.
getErrorMsg
());
}
log
.
info
(
"保存的导航内容:{}"
,
JSON
.
toJSONString
(
list
));
ServiceResponse
<
Void
>
serviceResponse
=
this
.
customGuideApiService
.
saveGuide
(
list
,
isNeedNewVersion
,
enterpriseId
,
appId
);
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
success
();
...
...
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