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
3f248424
Commit
3f248424
authored
Dec 14, 2020
by
孙昱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa' of gitlab.freemud.com:order-group-application/order-group into qa
parents
1b5b65fe
3a04bfb5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+12
-0
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+5
-2
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 @
3f248424
...
@@ -1390,6 +1390,7 @@ public class OrderAdapter {
...
@@ -1390,6 +1390,7 @@ public class OrderAdapter {
if
(
enableRefundCodes
.
contains
(
ordersBean
.
getStatus
())
&&
PayStatus
.
HAVE_PAID
.
getCode
().
equals
(
ordersBean
.
getPayStatus
()))
{
if
(
enableRefundCodes
.
contains
(
ordersBean
.
getStatus
())
&&
PayStatus
.
HAVE_PAID
.
getCode
().
equals
(
ordersBean
.
getPayStatus
()))
{
responseVo
.
setEnableRefund
(
true
);
responseVo
.
setEnableRefund
(
true
);
}
}
responseVo
.
setMarketingType
(
ordersBean
.
getMarketingType
());
list
.
add
(
responseVo
);
list
.
add
(
responseVo
);
});
});
return
list
;
return
list
;
...
@@ -2027,6 +2028,7 @@ public class OrderAdapter {
...
@@ -2027,6 +2028,7 @@ public class OrderAdapter {
productVos
.
sort
(
Comparator
.
comparing
(
ProductVo:
:
getSequence
));
productVos
.
sort
(
Comparator
.
comparing
(
ProductVo:
:
getSequence
));
responseVo
.
setProducts
(
productVos
);
responseVo
.
setProducts
(
productVos
);
responseVo
.
setProductNum
(
productVos
.
stream
().
mapToInt
(
ProductVo:
:
getQty
).
sum
());
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 {
...
@@ -2061,6 +2063,11 @@ public class OrderAdapter {
productVo
.
setSequence
(
productBean
.
getSequence
());
productVo
.
setSequence
(
productBean
.
getSequence
());
productVo
.
setQty
(
productBean
.
getNumber
());
productVo
.
setQty
(
productBean
.
getNumber
());
productVo
.
setSpecification
(
""
);
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
<>();
List
<
InventedParentActivityVo
>
inventedParentActivityVos
=
new
ArrayList
<>();
String
attributeNames
=
""
;
String
attributeNames
=
""
;
if
(
StringUtils
.
isNotBlank
(
productBean
.
getAddInfo
())
&&
productBean
.
getAddInfo
().
contains
(
"attributeNames"
))
{
if
(
StringUtils
.
isNotBlank
(
productBean
.
getAddInfo
())
&&
productBean
.
getAddInfo
().
contains
(
"attributeNames"
))
{
...
@@ -2453,6 +2460,11 @@ public class OrderAdapter {
...
@@ -2453,6 +2460,11 @@ public class OrderAdapter {
createOrderProductDemoDto
.
setTaxId
(
cartGoodsDetailDto
.
getTaxId
());
createOrderProductDemoDto
.
setTaxId
(
cartGoodsDetailDto
.
getTaxId
());
createOrderProductDemoDto
.
setClassificationId
(
cartGoodsDetailDto
.
getClassificationId
());
createOrderProductDemoDto
.
setClassificationId
(
cartGoodsDetailDto
.
getClassificationId
());
createOrderProductDemoDto
.
setClassificationName
(
cartGoodsDetailDto
.
getClassificationName
());
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
;
return
createOrderProductDemoDto
;
}
}
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
3f248424
...
@@ -413,7 +413,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -413,7 +413,7 @@ public class OrderServiceImpl implements Orderservice {
dto
.
setPartnerId
(
partnerId
);
dto
.
setPartnerId
(
partnerId
);
dto
.
setStoreId
(
storeId
);
dto
.
setStoreId
(
storeId
);
dto
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
dto
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
paymentQueueService
.
paymentCallback
(
dto
);
//
paymentQueueService.paymentCallback(dto);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"paymentQueueService.paymentCallback"
+
dto
+
" error"
+
e
);
log
.
info
(
"paymentQueueService.paymentCallback"
+
dto
+
" error"
+
e
);
}
}
...
@@ -435,7 +435,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -435,7 +435,7 @@ public class OrderServiceImpl implements Orderservice {
dto
.
setStoreId
(
storeId
);
dto
.
setStoreId
(
storeId
);
dto
.
setPayChannelType
(
payChanelType
);
dto
.
setPayChannelType
(
payChanelType
);
dto
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
dto
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
paymentQueueService
.
paymentCallback
(
dto
);
//
paymentQueueService.paymentCallback(dto);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"paymentQueueService.paymentCallback"
+
dto
+
" error"
+
e
);
log
.
info
(
"paymentQueueService.paymentCallback"
+
dto
+
" error"
+
e
);
}
}
...
@@ -1846,6 +1846,9 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -1846,6 +1846,9 @@ public class OrderServiceImpl implements Orderservice {
if
(
baseResponse
!=
null
)
{
if
(
baseResponse
!=
null
)
{
return
baseResponse
;
return
baseResponse
;
}
}
// 删除订单 通知活动添加商品库存
backOrdersStatusChange
(
orderBean
.
getOid
(),
orderBean
.
getStatus
(),
orderBean
.
getPayStatus
());
return
ResponseUtil
.
success
();
}
}
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
View file @
3f248424
...
@@ -237,13 +237,12 @@ public class BuySendPromotionService implements IPromotionService {
...
@@ -237,13 +237,12 @@ public class BuySendPromotionService implements IPromotionService {
}
}
if
(
manyOrSingle
)
{
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
;
return
;
}
}
}
else
{
}
else
{
// 单品
// 单品
List
<
String
>
spuIds
=
newCartGoodsList
.
stream
().
map
(
CartGoods:
:
getSpuId
).
collect
(
Collectors
.
toList
());
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSpuId
()).
getOriginalGoodsUid
(),
cartGood
.
getCartGoodsUid
()))
{
if
(
spuIds
.
contains
(
cartGood
.
getSpuId
()))
{
return
;
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