Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-shiro
Overview
Overview
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
常超
xzxt-shiro
Commits
fe6d53a8
Commit
fe6d53a8
authored
Aug 15, 2018
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登陆问题
parent
bc6d0920
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/main/java/com/xzxtshiro/util/RedisUtil.java
+21
-0
No files found.
src/main/java/com/xzxtshiro/util/RedisUtil.java
View file @
fe6d53a8
package
com
.
xzxtshiro
.
util
;
import
com.xzxtshiro.pojo.SysDictitem
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -28,6 +29,26 @@ public class RedisUtil {
}
return
xzxtRestResult
;
}
/**
*模糊查詢
* hkey:省份 山西:14
* key: :14_CODE_UNIT_141181991700
* @return
*/
public
static
XzxtRestResult
ReadRedisRestList
(
String
hkey
,
String
key
,
String
name
)
{
//查询参数
Map
<
String
,
String
>
param
=
new
HashMap
<>();
XzxtRestResult
xzxtRestResult
=
new
XzxtRestResult
();
param
.
put
(
"hkey"
,
hkey
);
param
.
put
(
"key"
,
key
);
param
.
put
(
"name"
,
name
);
//调用redisrest的服务
String
json
=
HttpClientUtil
.
doPost
(
"http://127.0.0.1:9043/xzxt-rest/ReadRedisRestList"
,
param
);
if
(!
StringUtils
.
isBlank
(
json
))
{
xzxtRestResult
=
XzxtRestResult
.
formatToList
(
json
,
SysDictitem
.
class
);
}
return
xzxtRestResult
;
}
//更新edis服务
/**
*
...
...
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