Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
784f48c3
Commit
784f48c3
authored
Nov 29, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费记录增加字段
parent
da96900c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
SConsumptionRecordsServiceImpl.java
...e/system/service/impl/SConsumptionRecordsServiceImpl.java
+9
-7
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+2
-0
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+1
-0
No files found.
share-system/src/main/java/share/system/service/impl/SConsumptionRecordsServiceImpl.java
View file @
784f48c3
...
...
@@ -65,19 +65,21 @@ public class SConsumptionRecordsServiceImpl implements ISConsumptionRecordsServi
List
<
Long
>
oredrIds
=
sConsumptionRecordsList
.
stream
().
map
(
SConsumptionRecords:
:
getOrderId
).
collect
(
Collectors
.
toList
());
List
<
SOrder
>
sOrders
=
sOrderMapper
.
selectBatchIds
(
oredrIds
);
List
<
SConsumptionRecordsVo
>
sConsumptionRecordsVoList
=
new
ArrayList
<>();
BeanUtils
.
copyProperties
(
sConsumptionRecordsList
,
sConsumptionRecordsVoList
);
sConsumptionRecordsVoList
.
stream
().
forEach
(
item
->
{
sConsumptionRecordsList
.
stream
().
forEach
(
item
->
{
SConsumptionRecordsVo
sConsumptionRecordsVo
=
new
SConsumptionRecordsVo
();
BeanUtils
.
copyProperties
(
item
,
sConsumptionRecordsVo
);
sConsumers
.
stream
().
forEach
(
vo
->
{
if
(
item
.
getConsumerId
().
equals
(
vo
.
getId
()))
{
item
.
setNickName
(
vo
.
getNickName
());
item
.
setPhone
(
vo
.
getPhone
());
if
(
sConsumptionRecordsVo
.
getConsumerId
().
equals
(
vo
.
getId
()))
{
sConsumptionRecordsVo
.
setNickName
(
vo
.
getNickName
());
sConsumptionRecordsVo
.
setPhone
(
vo
.
getPhone
());
}
});
sOrders
.
stream
().
forEach
(
vo
->
{
if
(
item
.
getOrderId
().
equals
(
vo
.
getId
()))
{
item
.
setOrderNo
(
vo
.
getOrderNo
());
if
(
sConsumptionRecordsVo
.
getOrderId
().
equals
(
vo
.
getId
()))
{
sConsumptionRecordsVo
.
setOrderNo
(
vo
.
getOrderNo
());
}
});
sConsumptionRecordsVoList
.
add
(
sConsumptionRecordsVo
);
});
return
sConsumptionRecordsVoList
;
}
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
784f48c3
...
...
@@ -763,6 +763,8 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
if
(
userCoupon
.
getId
().
equals
(
vo
.
getCouponId
()))
{
// 判断是否可以退款
vo
.
setIsRefund
(
isRefund
(
vo
,
userCoupon
));
vo
.
setCouponName
(
userCoupon
.
getName
());
}
});
}
else
{
...
...
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
784f48c3
...
...
@@ -158,6 +158,7 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
listVoCheck
(
request
);
SStore
store
=
new
SStore
();
store
.
setStatus
(
request
.
getStatus
());
store
.
setName
(
request
.
getName
());
List
<
SStore
>
storeList
=
baseMapper
.
selectSStoreList
(
store
);
List
<
SStoreVo
>
voList
=
new
ArrayList
<>();
if
(
StringUtils
.
isNotBlank
(
request
.
getNowLongitude
()))
{
...
...
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