记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
971cbabb
Commit
971cbabb
authored
Jun 05, 2025
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
douduo-添加动态查询
parent
69e9b1d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
SweetDouDouScopeVo.java
...va/com/liquidnet/service/sweet/vo/SweetDouDouScopeVo.java
+12
-1
RedisDataUtils.java
...ava/com/liquidnet/service/sweet/utils/RedisDataUtils.java
+11
-1
No files found.
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/vo/SweetDouDouScopeVo.java
View file @
971cbabb
package
com
.
liquidnet
.
service
.
sweet
.
vo
;
import
com.liquidnet.service.sweet.entity.SweetDoudou
;
import
com.liquidnet.service.sweet.entity.SweetDoudouScope
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -42,4 +41,16 @@ public class SweetDouDouScopeVo implements Serializable, Cloneable{
return
new
SweetDouDouScopeVo
();
}
}
public
SweetDouDouScopeVo
copy
(
SweetDoudouScope
source
)
{
if
(
null
==
source
)
return
this
;
this
.
mobile
=
source
.
getMobile
();
this
.
nickName
=
source
.
getNickName
();
this
.
realName
=
source
.
getRealName
();
this
.
idCard
=
source
.
getIdCard
();
this
.
status
=
source
.
getStatus
();
this
.
createdAt
=
source
.
getCreatedAt
();
this
.
updatedAt
=
source
.
getUpdatedAt
();
return
this
;
}
}
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/utils/RedisDataUtils.java
View file @
971cbabb
...
...
@@ -60,6 +60,8 @@ public class RedisDataUtils {
@Autowired
private
SweetIntegralActivityDrawMapper
sweetIntegralActivityDrawMapper
;
@Autowired
private
SweetDoudouScopeMapper
sweetDoudouScopeMapper
;
@Autowired
@Lazy
private
FeignSlimeApiClient
feignSlimeApiClient
;
...
...
@@ -473,7 +475,15 @@ public class RedisDataUtils {
String
redisKey
=
SweetConstant
.
REDIS_KEY_SWEET_DOUDOU_SCOPE_MOBILE
.
concat
(
mobile
);
SweetDouDouScopeVo
scopeVo
=
(
SweetDouDouScopeVo
)
redisUtil
.
get
(
redisKey
);
if
(
scopeVo
==
null
)
{
//TODO 从MySQL查询
// 从MySQL查询
LambdaQueryWrapper
<
SweetDoudouScope
>
lambda
=
new
QueryWrapper
<
SweetDoudouScope
>()
.
lambda
().
eq
(
SweetDoudouScope:
:
getMobile
,
mobile
)
.
eq
(
SweetDoudouScope:
:
getStatus
,
1
);
SweetDoudouScope
scope
=
sweetDoudouScopeMapper
.
selectOne
(
lambda
);
if
(
scope
!=
null
)
{
scopeVo
=
new
SweetDouDouScopeVo
().
copy
(
scope
);
setSweetDouDouScopeVo
(
scopeVo
);
}
}
return
scopeVo
;
}
...
...
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