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
47895842
Commit
47895842
authored
Aug 15, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/feature_member_score_zhangfeng' into feature_member_score
parents
81b95ff0
7acafb18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
OrderApiImpl.java
.../java/cn/iocoder/yudao/module/order/api/OrderApiImpl.java
+2
-2
RedeemRewardReqVO.java
...yudao/module/reward/api/reward/dto/RedeemRewardReqVO.java
+1
-0
RedeemRewardApiImpl.java
...r/yudao/module/reward/api/reward/RedeemRewardApiImpl.java
+3
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/api/OrderApiImpl.java
View file @
47895842
...
...
@@ -50,7 +50,7 @@ public class OrderApiImpl implements OrderApi {
BeanUtils
.
copyProperties
(
orderDO
,
orderRespDTO
);
// 设置目的地信息
OrderObjectiveDO
orderObjectiveDO
=
objectiveService
.
getByOrderId
(
id
);
OrderObjectiveDO
orderObjectiveDO
=
objectiveService
.
getByOrderId
(
orderDO
.
getOrderId
()
);
if
(
orderObjectiveDO
!=
null
)
{
OrderObjectiveApiDO
orderObjectiveApiDO
=
new
OrderObjectiveApiDO
();
BeanUtils
.
copyProperties
(
orderObjectiveDO
,
orderObjectiveApiDO
);
...
...
@@ -58,7 +58,7 @@ public class OrderApiImpl implements OrderApi {
}
// 设置收货人信息
OrderConsigneeDO
orderConsigneeByOrderId
=
orderConsigneeService
.
getOrderConsigneeByOrderId
(
id
);
OrderConsigneeDO
orderConsigneeByOrderId
=
orderConsigneeService
.
getOrderConsigneeByOrderId
(
orderDO
.
getOrderId
()
);
if
(
orderConsigneeByOrderId
!=
null
)
{
OrderConsigneeApiDO
orderConsigneeApiDO
=
new
OrderConsigneeApiDO
();
BeanUtils
.
copyProperties
(
orderConsigneeByOrderId
,
orderConsigneeApiDO
);
...
...
yudao-module-reward/yudao-module-reward-api/src/main/java/cn/iocoder/yudao/module/reward/api/reward/dto/RedeemRewardReqVO.java
View file @
47895842
...
...
@@ -18,6 +18,7 @@ public class RedeemRewardReqVO {
private
Long
memberId
;
@ApiModelProperty
(
value
=
"礼品id"
,
required
=
true
)
@NotNull
(
message
=
"礼品id不能为空"
)
private
Long
rewardId
;
@ApiModelProperty
(
value
=
"兑换数量"
,
required
=
true
)
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/api/reward/RedeemRewardApiImpl.java
View file @
47895842
...
...
@@ -193,6 +193,9 @@ public class RedeemRewardApiImpl implements RedeemRewardApi {
Long
rewardId
=
redeemRewardReqVOList
.
get
(
0
).
getRewardId
();
// 查询礼品
RewardDO
rewardDO
=
rewardMapper
.
selectById
(
rewardId
);
if
(
rewardDO
==
null
)
{
throw
exception
(
REWARD_NOT_EXISTS
);
}
// 礼品未开启
if
(
rewardDO
.
getStatus
()
!=
RewardStatusEnum
.
ENABLED
.
getValue
()
||
rewardService
.
validateExpire
(
rewardDO
))
{
throw
exception
(
REWARD_NOT_ENABLE
);
...
...
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