Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
50156c01
Commit
50156c01
authored
Jun 19, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改应用集市数据字典appThemeName获取来源
parent
d0c68fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
...in/java/com/mortals/xhx/module/app/web/AppController.java
+7
-6
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
View file @
50156c01
...
@@ -2,7 +2,6 @@ package com.mortals.xhx.module.app.web;
...
@@ -2,7 +2,6 @@ package com.mortals.xhx.module.app.web;
import
cn.hutool.core.net.url.UrlBuilder
;
import
cn.hutool.core.net.url.UrlBuilder
;
import
cn.hutool.core.util.ZipUtil
;
import
cn.hutool.core.util.ZipUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.ap.GlobalSysInfo
;
import
com.mortals.framework.ap.GlobalSysInfo
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
...
@@ -31,10 +30,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -31,10 +30,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
Constant
.
CUSTAPP_ROOT_PATH
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
Constant
.
CUSTAPP_ROOT_PATH
;
...
@@ -66,7 +62,7 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
...
@@ -66,7 +62,7 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
AppTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"type"
,
AppTypeEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"shelves"
,
paramService
.
getParamBySecondOrganize
(
"App"
,
"shelves"
));
this
.
addDict
(
model
,
"shelves"
,
paramService
.
getParamBySecondOrganize
(
"App"
,
"shelves"
));
this
.
addDict
(
model
,
"appThemeName"
,
paramService
.
getParamBySecondOrganize
(
"App"
,
"appThemeName"
));
//
this.addDict(model, "appThemeName", paramService.getParamBySecondOrganize("App", "appThemeName"));
this
.
addDict
(
model
,
"distribute"
,
YesNoEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"distribute"
,
YesNoEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"dateUpdate"
,
YesNoEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"dateUpdate"
,
YesNoEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
...
@@ -106,6 +102,11 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
...
@@ -106,6 +102,11 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
List
<
AppCategoryEntity
>
appCategoryEntities
=
appCategoryService
.
find
(
appCategoryQuery
);
List
<
AppCategoryEntity
>
appCategoryEntities
=
appCategoryService
.
find
(
appCategoryQuery
);
if
(!
ObjectUtils
.
isEmpty
(
appCategoryEntities
))
{
if
(!
ObjectUtils
.
isEmpty
(
appCategoryEntities
))
{
model
.
put
(
"appCategory"
,
appCategoryEntities
);
model
.
put
(
"appCategory"
,
appCategoryEntities
);
Map
<
String
,
Object
>
appThemeName
=
new
HashMap
<>();
for
(
AppCategoryEntity
appCategory:
appCategoryEntities
){
appThemeName
.
put
(
appCategory
.
getId
().
toString
(),
appCategory
.
getCategoryName
());
}
this
.
addDict
(
model
,
"appThemeName"
,
appThemeName
);
}
}
}
}
return
super
.
doListAfter
(
query
,
model
,
context
);
return
super
.
doListAfter
(
query
,
model
,
context
);
...
...
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