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
2d693130
Commit
2d693130
authored
Aug 14, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户端礼品详情优化
parent
45ce2726
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
26 deletions
+19
-26
AppRewardController.java
...ule/reward/controller/app/reward/AppRewardController.java
+0
-4
AppRewardBackVO.java
...dule/reward/controller/app/reward/vo/AppRewardBackVO.java
+14
-12
RewardServiceImpl.java
...yudao/module/reward/service/reward/RewardServiceImpl.java
+5
-10
No files found.
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/controller/app/reward/AppRewardController.java
View file @
2d693130
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
controller
.
app
.
reward
;
import
cn.iocoder.yudao.framework.common.pojo.CommonResult
;
import
cn.iocoder.yudao.framework.dict.core.util.DictFrameworkUtils
;
import
cn.iocoder.yudao.module.ecw.api.node.NodeApi
;
import
cn.iocoder.yudao.module.ecw.api.node.dto.NodeRespDTO
;
import
cn.iocoder.yudao.module.reward.controller.app.reward.vo.AppRewardBackVO
;
import
cn.iocoder.yudao.module.reward.controller.app.reward.vo.AppRewardListReqVO
;
import
cn.iocoder.yudao.module.reward.dal.dataobject.reward.RewardDO
;
import
cn.iocoder.yudao.module.reward.service.reward.RewardService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/controller/app/reward/vo/AppRewardBackVO.java
View file @
2d693130
package
cn
.
iocoder
.
yudao
.
module
.
reward
.
controller
.
app
.
reward
.
vo
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
/**
* 礼品 Response VO
* @author 系统管理员
*/
* 礼品 Response VO
*
* @author 系统管理员
*/
@Data
@ApiModel
(
"客户端 - 礼品 Response VO"
)
public
class
AppRewardBackVO
{
...
...
@@ -66,14 +68,14 @@ public class AppRewardBackVO {
@ApiModelProperty
(
value
=
"领取方式(1上门领取,2包邮到家,3邮寄到付)"
)
private
String
pickMethod
;
@ApiModelProperty
(
value
=
"领取方式:上门领取"
)
private
String
selfPickupZh
;
private
String
selfPickupEn
;
@ApiModelProperty
(
value
=
"领取方式:包邮到家"
)
private
String
sendHomeFreeZh
;
private
String
sendHomeFreeEn
;
@ApiModelProperty
(
value
=
"领取方式:邮寄到付"
)
private
String
sendHomePayZh
;
private
String
sendHomePayEn
;
private
List
<
PickMethod
>
pickMethodList
=
new
ArrayList
<>();
@ApiModelProperty
(
value
=
"允许兑换次数"
)
private
Integer
allowCount
;
@Data
public
static
class
PickMethod
{
private
String
value
;
private
String
labelZh
;
private
String
labelEn
;
}
}
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/reward/RewardServiceImpl.java
View file @
2d693130
...
...
@@ -363,16 +363,11 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
private
void
setPickMethod
(
AppRewardBackVO
appRewardBackVO
){
for
(
String
pickMethod
:
appRewardBackVO
.
getPickMethod
().
split
(
","
))
{
if
(
"1"
.
equals
(
pickMethod
))
{
appRewardBackVO
.
setSelfPickupZh
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabel
());
appRewardBackVO
.
setSelfPickupEn
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabelEn
());
}
else
if
(
"2"
.
equals
(
pickMethod
))
{
appRewardBackVO
.
setSendHomeFreeZh
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabel
());
appRewardBackVO
.
setSendHomeFreeEn
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabelEn
());
}
else
if
(
"3"
.
equals
(
pickMethod
))
{
appRewardBackVO
.
setSendHomePayZh
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabel
());
appRewardBackVO
.
setSendHomePayEn
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabelEn
());
}
AppRewardBackVO
.
PickMethod
pickMethodDict
=
new
AppRewardBackVO
.
PickMethod
();
pickMethodDict
.
setValue
(
pickMethod
);
pickMethodDict
.
setLabelZh
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabel
());
pickMethodDict
.
setLabelEn
(
DictFrameworkUtils
.
getDictDataFromCache
(
"way_of_receiving"
,
pickMethod
).
getLabelEn
());
appRewardBackVO
.
getPickMethodList
().
add
(
pickMethodDict
);
}
}
...
...
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