Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-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
赵啸非
enterprise-platform
Commits
bfbeb9b1
Commit
bfbeb9b1
authored
Oct 12, 2023
by
王晓旭
Browse files
Options
Browse Files
Download
Plain Diff
新闻管理上传和反馈管理更改
parents
b91b948e
ee7a6e70
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
enterprise-manager/src/main/java/com/mortals/xhx/base/framework/config/RefreshConfig.java
.../com/mortals/xhx/base/framework/config/RefreshConfig.java
+23
-0
enterprise-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
...m/mortals/xhx/module/feedback/web/FeedbackController.java
+8
-0
No files found.
enterprise-manager/src/main/java/com/mortals/xhx/base/framework/config/RefreshConfig.java
0 → 100644
View file @
bfbeb9b1
package
com.mortals.xhx.base.framework.config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.cloud.context.config.annotation.RefreshScope
;
import
org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.event.EventListener
;
@Configuration
@RefreshScope
public
class
RefreshConfig
{
// @Value("${your.config.property}")
private
String
configValue
;
@EventListener
({
RefreshScopeRefreshedEvent
.
class
})
public
void
onRefresh
()
{
// 在配置刷新后执行特定的方法
// 可以在这里调用你想要执行的方法
}
// ...
}
enterprise-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
View file @
bfbeb9b1
package
com.mortals.xhx.module.feedback.web
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.module.dept.model.DeptQuery
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -35,6 +37,8 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
@Autowired
private
ParamService
paramService
;
@Autowired
private
DeptService
deptService
;
public
FeedbackController
(){
super
.
setModuleDesc
(
"反馈信息"
);
...
...
@@ -46,6 +50,10 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
this
.
addDict
(
model
,
"reply"
,
paramService
.
getParamBySecondOrganize
(
"Feedback"
,
"reply"
));
this
.
addDict
(
model
,
"feedbackType"
,
paramService
.
getParamBySecondOrganize
(
"Feedback"
,
"feedbackType"
));
this
.
addDict
(
model
,
"processStatus"
,
paramService
.
getParamBySecondOrganize
(
"Feedback"
,
"processStatus"
));
this
.
addDict
(
model
,
"deptId"
,
deptService
.
find
(
new
DeptQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getDeptName
(),
(
o
,
n
)
->
n
)));
super
.
init
(
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