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
bd7bf1f3
Commit
bd7bf1f3
authored
Jun 22, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
14fc1a75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
AlertFormController.java
...s/boot/module/jcs/biz/controller/AlertFormController.java
+3
-3
DataDictionaryController.java
...t/module/jcs/biz/controller/DataDictionaryController.java
+3
-3
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 @
bd7bf1f3
...
@@ -113,8 +113,8 @@ public class AlertFormController extends BaseController {
...
@@ -113,8 +113,8 @@ public class AlertFormController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据表态类型code查询表单数据项"
,
notes
=
"根据表态类型code查询表单数据项"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据表态类型code查询表单数据项"
,
notes
=
"根据表态类型code查询表单数据项"
)
public
ResponseModel
selectFormdItem
(
HttpServletRequest
request
,
@PathVariable
String
code
){
public
ResponseModel
selectFormdItem
(
HttpServletRequest
request
,
@PathVariable
String
code
){
List
<
AlertFormVo
>
list
=
new
ArrayList
<
AlertFormVo
>();
List
<
AlertFormVo
>
list
=
new
ArrayList
<
AlertFormVo
>();
if
(
redisUtils
.
hasKey
(
RedisKey
.
FORM
+
code
)){
if
(
redisUtils
.
hasKey
(
RedisKey
.
FORM_CODE
+
code
)){
Object
obj
=
redisUtils
.
get
(
RedisKey
.
FORM
+
code
);
Object
obj
=
redisUtils
.
get
(
RedisKey
.
FORM
_CODE
+
code
);
return
CommonResponseUtil
.
success
(
obj
);
return
CommonResponseUtil
.
success
(
obj
);
}
else
{
}
else
{
QueryWrapper
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
queryWrapper
=
new
QueryWrapper
<>();
...
@@ -122,7 +122,7 @@ public class AlertFormController extends BaseController {
...
@@ -122,7 +122,7 @@ public class AlertFormController extends BaseController {
//警情动态表单数据
//警情动态表单数据
List
<
AlertForm
>
alertFormValue
=
iAlertFormService
.
list
(
queryWrapper
);
List
<
AlertForm
>
alertFormValue
=
iAlertFormService
.
list
(
queryWrapper
);
list
=
FormList
.
getFormlist
(
alertFormValue
);
list
=
FormList
.
getFormlist
(
alertFormValue
);
redisUtils
.
set
(
RedisKey
.
FORM
+
code
,
JSON
.
toJSON
(
list
),
86400
);
redisUtils
.
set
(
RedisKey
.
FORM
_CODE
+
code
,
JSON
.
toJSON
(
list
),
86400
);
return
CommonResponseUtil
.
success
(
list
);
return
CommonResponseUtil
.
success
(
list
);
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/DataDictionaryController.java
View file @
bd7bf1f3
...
@@ -154,13 +154,13 @@ public class DataDictionaryController extends BaseController {
...
@@ -154,13 +154,13 @@ public class DataDictionaryController extends BaseController {
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
if
(
redisUtils
.
hasKey
(
RedisKey
.
DATA
DICTIONARY
+
type
)){
if
(
redisUtils
.
hasKey
(
RedisKey
.
DATA
_DICTIONARY_CODE
+
type
)){
Object
obj
=
redisUtils
.
get
(
RedisKey
.
DATA
DICTIONARY
+
type
);
Object
obj
=
redisUtils
.
get
(
RedisKey
.
DATA
_DICTIONARY_CODE
+
type
);
return
CommonResponseUtil
.
success
(
obj
);
return
CommonResponseUtil
.
success
(
obj
);
}
else
{
}
else
{
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
);
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
);
redisUtils
.
set
(
RedisKey
.
DATA
DICTIONARY
+
type
,
JSON
.
toJSON
(
menus
),
86400
);
redisUtils
.
set
(
RedisKey
.
DATA
_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
86400
);
return
CommonResponseUtil
.
success
(
menus
);
return
CommonResponseUtil
.
success
(
menus
);
}
}
}
}
...
...
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