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
84558fd7
Commit
84558fd7
authored
Aug 20, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户端礼品详情修改
parent
954206ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
NodeRespDTO.java
...cn/iocoder/yudao/module/ecw/api/node/dto/NodeRespDTO.java
+16
-0
NodeApiImpl.java
.../cn/iocoder/yudao/module/ecw/service/api/NodeApiImpl.java
+10
-0
RewardServiceImpl.java
...yudao/module/reward/service/reward/RewardServiceImpl.java
+2
-2
No files found.
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/api/node/dto/NodeRespDTO.java
View file @
84558fd7
...
...
@@ -13,10 +13,26 @@ public class NodeRespDTO {
* 国家
*/
private
Long
guojia
;
/**
* 国家中文
*/
private
String
guojiaZh
;
/**
* 国家英文
*/
private
String
guojiaEn
;
/**
* 市
*/
private
Long
shi
;
/**
* 市中文
*/
private
String
shiZh
;
/**
* 市英文
*/
private
String
shiEn
;
/**
* 中文标题
*/
...
...
yudao-module-ecw/yudao-module-ecw-impl/src/main/java/cn/iocoder/yudao/module/ecw/service/api/NodeApiImpl.java
View file @
84558fd7
...
...
@@ -4,7 +4,9 @@ import cn.iocoder.yudao.module.ecw.api.node.NodeApi;
import
cn.iocoder.yudao.module.ecw.api.node.dto.NodeRespDTO
;
import
cn.iocoder.yudao.module.ecw.api.node.dto.NodeTreeRegionDTO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.node.NodeDO
;
import
cn.iocoder.yudao.module.ecw.dal.dataobject.region.RegionDO
;
import
cn.iocoder.yudao.module.ecw.dal.mysql.node.NodeMapper
;
import
cn.iocoder.yudao.module.ecw.service.region.RegionService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
...
...
@@ -16,6 +18,8 @@ import java.util.List;
public
class
NodeApiImpl
implements
NodeApi
{
@Resource
private
NodeMapper
nodeMapper
;
@Resource
private
RegionService
regionService
;
@Override
public
List
<
NodeRespDTO
>
getNodesByCity
(
Long
cityId
,
Long
countryId
)
{
...
...
@@ -48,6 +52,12 @@ public class NodeApiImpl implements NodeApi {
if
(
nodeDO
!=
null
)
{
NodeRespDTO
nodeRespDTO
=
new
NodeRespDTO
();
BeanUtils
.
copyProperties
(
nodeDO
,
nodeRespDTO
);
RegionDO
regionCountry
=
regionService
.
getRegion
(
nodeRespDTO
.
getGuojia
());
nodeRespDTO
.
setGuojiaZh
(
regionCountry
.
getTitleZh
());
nodeRespDTO
.
setGuojiaEn
(
regionCountry
.
getTitleEn
());
RegionDO
regionCity
=
regionService
.
getRegion
(
nodeRespDTO
.
getShi
());
nodeRespDTO
.
setShiZh
(
regionCity
.
getTitleZh
());
nodeRespDTO
.
setShiEn
(
regionCity
.
getTitleEn
());
return
nodeRespDTO
;
}
return
null
;
...
...
yudao-module-reward/yudao-module-reward-impl/src/main/java/cn/iocoder/yudao/module/reward/service/reward/RewardServiceImpl.java
View file @
84558fd7
...
...
@@ -365,8 +365,8 @@ public class RewardServiceImpl extends AbstractService<RewardMapper, RewardDO> i
setPickMethod
(
appRewardBackVO
);
NodeRespDTO
nodesById
=
nodeApi
.
getNodesById
(
Long
.
valueOf
(
rewardDO
.
getNodeId
()));
if
(
nodesById
!=
null
)
{
appRewardBackVO
.
setNodeZh
(
nodesById
.
getTitleZh
());
appRewardBackVO
.
setNodeEn
(
nodesById
.
getTitleEn
());
appRewardBackVO
.
setNodeZh
(
nodesById
.
get
GuojiaZh
()
+
"、"
+
nodesById
.
getShiZh
()
+
"、"
+
nodesById
.
get
TitleZh
());
appRewardBackVO
.
setNodeEn
(
nodesById
.
get
GuojiaEn
()
+
"、"
+
nodesById
.
getShiEn
()
+
"、"
+
nodesById
.
get
TitleEn
());
}
return
appRewardBackVO
;
}
...
...
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