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
40f28a76
Commit
40f28a76
authored
Nov 17, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aa39d0e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
22 deletions
+6
-22
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+3
-15
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculateCenter.java
+1
-6
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
+2
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
40f28a76
...
...
@@ -1855,7 +1855,6 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
public
boolean
grayPush
(
String
partnerId
,
String
storeId
,
String
version
)
{
if
(
StringUtils
.
isBlank
(
sharing
))
return
false
;
CalculateCenter
center
=
JSON
.
parseObject
(
sharing
,
CalculateCenter
.
class
);
Boolean
enable
=
false
;
if
(!
center
.
getEnable
())
return
false
;
...
...
@@ -1864,21 +1863,10 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
enable
=
true
;
break
;
case
1
:
{
if
(
StringUtils
.
isBlank
(
center
.
getPartnerId
()))
{
enable
=
false
;
}
else
{
if
(
Arrays
.
asList
(
center
.
getPartnerId
().
split
(
","
)).
contains
(
partnerId
))
{
enable
=
true
;
}
else
{
enable
=
false
;
}
if
(
Arrays
.
asList
(
center
.
getStoreId
().
split
(
","
)).
contains
(
storeId
))
{
enable
=
true
;
}
else
{
enable
=
false
;
}
String
real
=
partnerId
.
concat
(
storeId
);
if
(
Arrays
.
asList
(
center
.
getGrayList
().
split
(
","
)).
contains
(
real
))
{
enable
=
true
;
}
break
;
}
}
if
(
center
.
getEnable
()
&&
enable
)
{
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculateCenter.java
View file @
40f28a76
...
...
@@ -22,12 +22,7 @@ public class CalculateCenter {
/**
* 商户
*/
private
String
partnerId
;
/**
* 门店
*/
private
String
storeId
;
private
String
grayList
;
/**
* 是否启用新的算价中心
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
View file @
40f28a76
...
...
@@ -202,6 +202,7 @@ public class CalculationSharingDiscountService {
}
}
/**
* 实物商品
* @param calculationDiscountGoodsList
...
...
@@ -213,7 +214,7 @@ public class CalculationSharingDiscountService {
calculationDiscountGoods
.
setGoodsId
(
cartGoods
.
getGoodsId
());
calculationDiscountGoods
.
setCartGoodsUid
(
cartGoods
.
getCartGoodsUid
());
calculationDiscountGoods
.
setGoodsQuantity
(
cartGoods
.
getQty
());
calculationDiscountGoods
.
setOriginalPrice
(
cartGoods
.
getOriginalPrice
());
calculationDiscountGoods
.
setOriginalPrice
(
cartGoods
.
get
FinalPrice
()!=
null
?
cartGoods
.
getFinalPrice
()
:
cartGoods
.
get
OriginalPrice
());
calculationDiscountGoods
.
setMemberDiscount
(
cartGoods
.
getMemberDiscount
());
calculationDiscountGoods
.
setSpuId
(
cartGoods
.
getSpuId
());
//商品加料
...
...
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