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
2830e40f
Commit
2830e40f
authored
Sep 09, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加手动清楚缓存的方式
parent
0445ed80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+29
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
2830e40f
...
...
@@ -302,6 +302,35 @@ public class DataDictionaryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
menuList
);
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/cleanRedis"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"清楚redis缓存"
,
notes
=
"清楚redis缓存"
)
public
ResponseModel
<
Object
>
cleanRedis
(
@RequestParam
String
type
)
throws
Exception
{
type
=
type
.
toLowerCase
();
if
(
RedisKey
.
FORM_CODE
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
FORM_CODE
);
}
else
if
(
RedisKey
.
DATA_DICTIONARY_CODE
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
DATA_DICTIONARY_CODE
);
}
else
if
(
RedisKey
.
DATA_DICTIONARY_CODE_XIN
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
DATA_DICTIONARY_CODE_XIN
);
}
else
if
(
RedisKey
.
FIREFIGHTERS_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
FIREFIGHTERS_ID
);
}
else
if
(
RedisKey
.
FIREFIGHTERS_LIST_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
FIREFIGHTERS_LIST_ID
);
}
else
if
(
RedisKey
.
EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID
);
}
else
if
(
RedisKey
.
CONTRACT_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
CONTRACT_ID
);
}
else
if
(
RedisKey
.
THOUGHT_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
THOUGHT_ID
);
}
else
if
(
RedisKey
.
ALERTCALLED_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
ALERTCALLED_ID
);
}
else
if
(
RedisKey
.
TZS_ALERTCALLED_ID
.
startsWith
(
type
))
{
redisUtils
.
del
(
RedisKey
.
TZS_ALERTCALLED_ID
);
}
return
ResponseHelper
.
buildResponse
(
type
);
}
}
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