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
bbf58d98
Commit
bbf58d98
authored
Jun 21, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
序列化
parent
37f34095
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
AlertFormController.java
...s/boot/module/jcs/biz/controller/AlertFormController.java
+5
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertFormController.java
View file @
bbf58d98
...
...
@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertFormService
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.AlertFormVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.FormList
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -23,6 +24,8 @@ import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -108,7 +111,7 @@ public class AlertFormController extends BaseController {
@RequestMapping
(
value
=
"/form/{code}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据表态类型code查询表单数据项"
,
notes
=
"根据表态类型code查询表单数据项"
)
public
ResponseModel
selectFormdItem
(
HttpServletRequest
request
,
@PathVariable
String
code
){
List
<
AlertFormVo
>
list
=
n
ull
;
List
<
AlertFormVo
>
list
=
n
ew
ArrayList
<
AlertFormVo
>()
;
if
(
redisUtils
.
hasKey
(
"form_"
+
code
)){
Object
obj
=
redisUtils
.
get
(
"form_"
+
code
);
return
CommonResponseUtil
.
success
(
obj
);
...
...
@@ -118,7 +121,7 @@ public class AlertFormController extends BaseController {
//警情动态表单数据
List
<
AlertForm
>
alertFormValue
=
iAlertFormService
.
list
(
queryWrapper
);
list
=
FormList
.
getFormlist
(
alertFormValue
);
redisUtils
.
set
(
"form_"
+
code
,
list
,
86400
);
redisUtils
.
set
(
"form_"
+
code
,
JSON
.
toJSON
(
list
)
,
86400
);
return
CommonResponseUtil
.
success
(
list
);
}
}
...
...
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