Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
d07969fe
Commit
d07969fe
authored
Oct 28, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix(member): 用户礼品查询修改
parent
0662e990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
RewardServiceImpl.java
...yudao/module/reward/service/reward/RewardServiceImpl.java
+12
-4
No files found.
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/reward/RewardServiceImpl.java
View file @
d07969fe
...
@@ -358,14 +358,22 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
...
@@ -358,14 +358,22 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
rewardDOLambdaQuery
.
eq
(
RewardDO:
:
getNodeId
,
reqVO
.
getNodeId
());
rewardDOLambdaQuery
.
eq
(
RewardDO:
:
getNodeId
,
reqVO
.
getNodeId
());
}
else
{
}
else
{
UserRespDTO
user
=
memberUserApi
.
getUser
(
reqVO
.
getMemberId
());
UserRespDTO
user
=
memberUserApi
.
getUser
(
reqVO
.
getMemberId
());
Integer
userCity
=
user
.
getCity
();
if
(
userCity
==
null
)
{
userCity
=
0
;
}
Integer
userCountry
=
user
.
getCountry
();
if
(
userCountry
==
null
)
{
userCountry
=
130
;
}
List
<
WarehouseDO
>
warehouseList
;
List
<
WarehouseDO
>
warehouseList
;
// 根据用户城市获取
// 根据用户城市获取
warehouseList
=
warehouseMapper
.
selectList
(
new
LambdaQueryWrapperX
<
WarehouseDO
>().
eq
(
WarehouseDO:
:
getShi
,
user
.
getCity
()
.
longValue
()));
warehouseList
=
warehouseMapper
.
selectList
(
new
LambdaQueryWrapperX
<
WarehouseDO
>().
eq
(
WarehouseDO:
:
getShi
,
user
City
.
longValue
()));
appRewardListBackVO
.
setCity
(
user
.
getCity
()
.
longValue
());
appRewardListBackVO
.
setCity
(
user
City
.
longValue
());
appRewardListBackVO
.
setCountry
(
user
.
getCountry
()
.
longValue
());
appRewardListBackVO
.
setCountry
(
user
Country
.
longValue
());
if
(
CollectionUtil
.
isEmpty
(
warehouseList
))
{
if
(
CollectionUtil
.
isEmpty
(
warehouseList
))
{
// 根据用户国家获取
// 根据用户国家获取
warehouseList
=
warehouseMapper
.
selectList
(
new
LambdaQueryWrapperX
<
WarehouseDO
>().
eq
(
WarehouseDO:
:
getGuojia
,
user
.
getCountry
()
.
longValue
()));
warehouseList
=
warehouseMapper
.
selectList
(
new
LambdaQueryWrapperX
<
WarehouseDO
>().
eq
(
WarehouseDO:
:
getGuojia
,
user
Country
.
longValue
()));
appRewardListBackVO
.
setCity
(
null
);
appRewardListBackVO
.
setCity
(
null
);
}
}
// 国家和城市都获取不到
// 国家和城市都获取不到
...
...
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