Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sequoia_score
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
mark
sequoia_score
Commits
c3eb7653
Commit
c3eb7653
authored
Jul 29, 2021
by
Lem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除缓存
parent
2c2dc7a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
MatchServiceImpl.java
...n/java/com/live/common/service/impl/MatchServiceImpl.java
+6
-7
No files found.
score-common/src/main/java/com/live/common/service/impl/MatchServiceImpl.java
View file @
c3eb7653
...
@@ -363,13 +363,12 @@ public class MatchServiceImpl implements MatchService {
...
@@ -363,13 +363,12 @@ public class MatchServiceImpl implements MatchService {
@Override
@Override
public
ResponseData
<?>
getTeamInfoList
(
CommonPage
commonPage
,
HttpServletRequest
request
)
{
public
ResponseData
<?>
getTeamInfoList
(
CommonPage
commonPage
,
HttpServletRequest
request
)
{
int
jumpNum
=
(
commonPage
.
getPageNum
()
-
1
)
*
commonPage
.
getPageSize
();
int
jumpNum
=
(
commonPage
.
getPageNum
()
-
1
)
*
commonPage
.
getPageSize
();
String
key
=
RedisKeySplicing
.
requestLock
(
"getTeamInfoList"
,
JSON
.
toJSONString
(
commonPage
));
if
(
redisUtilsService
.
existsKey
(
key
))
{
//
if (redisUtilsService.existsKey(key)) {
String
cacheInfo
=
redisUtilsService
.
getCacheStringInfo
(
key
);
//
String cacheInfo = redisUtilsService.getCacheStringInfo(key);
GetTeamInfoListResponse
response
=
JSONObject
.
toJavaObject
(
JSONObject
.
parseObject
(
cacheInfo
),
GetTeamInfoListResponse
.
class
);
//
GetTeamInfoListResponse response = JSONObject.toJavaObject(JSONObject.parseObject(cacheInfo), GetTeamInfoListResponse.class);
return
ResponseData
.
successResponse
(
response
);
//
return ResponseData.successResponse(response);
}
//
}
List
<
Team
>
teams
=
teamMapper
.
selectList
(
Wrappers
.<
Team
>
lambdaQuery
()
List
<
Team
>
teams
=
teamMapper
.
selectList
(
Wrappers
.<
Team
>
lambdaQuery
()
.
eq
(
Team:
:
getDeleted
,
0
)
.
eq
(
Team:
:
getDeleted
,
0
)
...
@@ -418,7 +417,7 @@ public class MatchServiceImpl implements MatchService {
...
@@ -418,7 +417,7 @@ public class MatchServiceImpl implements MatchService {
response
.
getOtherTeam
().
getDataList
().
add
(
teamInfo
);
response
.
getOtherTeam
().
getDataList
().
add
(
teamInfo
);
}
}
redisUtilsService
.
cacheStringInfoByDay
(
key
,
JSON
.
toJSONString
(
response
),
7
);
//
redisUtilsService.cacheStringInfoByDay(key, JSON.toJSONString(response), 7);
return
ResponseData
.
successResponse
(
response
);
return
ResponseData
.
successResponse
(
response
);
}
}
...
...
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