Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
d187f4d4
Commit
d187f4d4
authored
Oct 14, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
a047eb78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
FirefightersThoughtController.java
.../common/biz/controller/FirefightersThoughtController.java
+5
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FirefightersThoughtController.java
View file @
d187f4d4
...
...
@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletRequest;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -132,9 +133,11 @@ public class FirefightersThoughtController extends BaseController {
if
(
redisUtils
.
hasKey
(
RedisKey
.
THOUGHT_ID
+
id
)){
Object
obj
=
redisUtils
.
get
(
RedisKey
.
THOUGHT_ID
+
id
);
Map
<
String
,
Object
>
mainMap
=
Bean
.
BeantoMap
(
obj
);
((
Map
<
String
,
Object
>)
obj
).
put
(
"attachments"
,
sourceFileService
.
getAttachments
(
id
));
/*Map<String, Object> mainMap = Bean.BeantoMap(obj);
mainMap.put("attachments", sourceFileService.getAttachments(id));
return
ResponseHelper
.
buildResponse
(
mainMap
);
return ResponseHelper.buildResponse(mainMap);*/
return
ResponseHelper
.
buildResponse
((
Map
<
String
,
Object
>)
obj
);
}
else
{
FirefightersThought
firefightersThought
=
iFirefightersThoughtService
.
getById
(
id
);
redisUtils
.
set
(
RedisKey
.
THOUGHT_ID
+
id
,
JSON
.
toJSON
(
firefightersThought
),
time
);
Map
<
String
,
Object
>
mainMap
=
Bean
.
BeantoMap
(
firefightersThought
);
...
...
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