Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
777e6d33
Commit
777e6d33
authored
Dec 14, 2020
by
缪晖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QA环境被冲代码补回
parent
802c708c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+12
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
+2
-3
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
777e6d33
...
...
@@ -1390,6 +1390,7 @@ public class OrderAdapter {
if
(
enableRefundCodes
.
contains
(
ordersBean
.
getStatus
())
&&
PayStatus
.
HAVE_PAID
.
getCode
().
equals
(
ordersBean
.
getPayStatus
()))
{
responseVo
.
setEnableRefund
(
true
);
}
responseVo
.
setMarketingType
(
ordersBean
.
getMarketingType
());
list
.
add
(
responseVo
);
});
return
list
;
...
...
@@ -2027,6 +2028,7 @@ public class OrderAdapter {
productVos
.
sort
(
Comparator
.
comparing
(
ProductVo:
:
getSequence
));
responseVo
.
setProducts
(
productVos
);
responseVo
.
setProductNum
(
productVos
.
stream
().
mapToInt
(
ProductVo:
:
getQty
).
sum
());
responseVo
.
setOrderUserNum
(
productVos
.
stream
().
filter
(
product
->
StringUtils
.
isNotEmpty
(
product
.
getUserId
())).
map
(
ProductVo:
:
getUserId
).
distinct
().
count
());
}
}
...
...
@@ -2061,6 +2063,11 @@ public class OrderAdapter {
productVo
.
setSequence
(
productBean
.
getSequence
());
productVo
.
setQty
(
productBean
.
getNumber
());
productVo
.
setSpecification
(
""
);
productVo
.
setUserId
(
productBean
.
getUserId
());
productVo
.
setOpenId
(
productBean
.
getOpenId
());
productVo
.
setNickName
(
productBean
.
getNickName
());
productVo
.
setPhotoUrl
(
productBean
.
getPhotoUrl
());
productVo
.
setPackPrice
(
productBean
.
getPackPrice
());
List
<
InventedParentActivityVo
>
inventedParentActivityVos
=
new
ArrayList
<>();
String
attributeNames
=
""
;
if
(
StringUtils
.
isNotBlank
(
productBean
.
getAddInfo
())
&&
productBean
.
getAddInfo
().
contains
(
"attributeNames"
))
{
...
...
@@ -2453,6 +2460,11 @@ public class OrderAdapter {
createOrderProductDemoDto
.
setTaxId
(
cartGoodsDetailDto
.
getTaxId
());
createOrderProductDemoDto
.
setClassificationId
(
cartGoodsDetailDto
.
getClassificationId
());
createOrderProductDemoDto
.
setClassificationName
(
cartGoodsDetailDto
.
getClassificationName
());
createOrderProductDemoDto
.
setUserId
(
cartGoodsDetailDto
.
getUserId
());
createOrderProductDemoDto
.
setOpenId
(
cartGoodsDetailDto
.
getOpenId
());
createOrderProductDemoDto
.
setNickName
(
cartGoodsDetailDto
.
getUserName
());
createOrderProductDemoDto
.
setPhotoUrl
(
cartGoodsDetailDto
.
getPhotoUrl
());
createOrderProductDemoDto
.
setPackPrice
(
cartGoodsDetailDto
.
getPackPrice
());
return
createOrderProductDemoDto
;
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
View file @
777e6d33
...
...
@@ -237,13 +237,12 @@ public class BuySendPromotionService implements IPromotionService {
}
if
(
manyOrSingle
)
{
// 多规格
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSkuId
()).
get
GoodsId
(),
cartGood
.
getSkuI
d
()))
{
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSkuId
()).
get
OriginalGoodsUid
(),
cartGood
.
getCartGoodsUi
d
()))
{
return
;
}
}
else
{
// 单品
List
<
String
>
spuIds
=
newCartGoodsList
.
stream
().
map
(
CartGoods:
:
getSpuId
).
collect
(
Collectors
.
toList
());
if
(
spuIds
.
contains
(
cartGood
.
getSpuId
()))
{
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSpuId
()).
getOriginalGoodsUid
(),
cartGood
.
getCartGoodsUid
()))
{
return
;
}
}
...
...
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