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
36041a22
Commit
36041a22
authored
Jun 22, 2021
by
徐康
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/qa' into qa
parents
27096d6f
1d0cfd92
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
27 deletions
+40
-27
order-application-service/src/main/java/cn/freemud/service/thirdparty/StoreBaseApiClient.java
+2
-1
order-management/src/main/java/cn/freemud/management/service/impl/SaasOrderMangerServiceImpl.java
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ActivityAdapter.java
+0
-1
shopping-cart-application-service/src/main/java/cn/freemud/factory/AbstractShoppingCartImpl.java
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/DefaultPromotionService.java
+14
-9
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
+5
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMallServiceImpl.java
+3
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
+4
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+5
-4
No files found.
order-application-service/src/main/java/cn/freemud/service/thirdparty/StoreBaseApiClient.java
View file @
36041a22
package
cn
.
freemud
.
service
.
thirdparty
;
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.entities.dto.store.StoreCBaseResponse
;
import
cn.freemud.entities.dto.store.StoreCBaseResponse
;
import
cn.freemud.entities.dto.store.StoreCBaseResponseDto
;
import
cn.freemud.entities.dto.store.StoreInfoRequestDto
;
import
cn.freemud.entities.dto.store.StoreInfoRequestDto
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
...
@@ -19,5 +20,5 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -19,5 +20,5 @@ import org.springframework.web.bind.annotation.RequestMapping;
public
interface
StoreBaseApiClient
{
public
interface
StoreBaseApiClient
{
@PostMapping
(
value
=
"/delivery/calcDeliveryData"
)
@PostMapping
(
value
=
"/delivery/calcDeliveryData"
)
StoreCBaseResponse
queryDeliverDetail
(
@RequestBody
StoreInfoRequestDto
request
);
StoreCBaseResponse
<
StoreCBaseResponseDto
>
queryDeliverDetail
(
@RequestBody
StoreInfoRequestDto
request
);
}
}
order-management/src/main/java/cn/freemud/management/service/impl/SaasOrderMangerServiceImpl.java
View file @
36041a22
...
@@ -247,12 +247,12 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService {
...
@@ -247,12 +247,12 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService {
List
<
Integer
>
oldOrderStatusList
=
Arrays
.
asList
(
OldOrderStatus
.
RECEIPT
.
getCode
(),
OldOrderStatus
.
COMPLETE
.
getCode
(),
OldOrderStatus
.
COMPLETE_MAKE
.
getCode
());
List
<
Integer
>
oldOrderStatusList
=
Arrays
.
asList
(
OldOrderStatus
.
RECEIPT
.
getCode
(),
OldOrderStatus
.
COMPLETE
.
getCode
(),
OldOrderStatus
.
COMPLETE_MAKE
.
getCode
());
List
<
String
>
sourceList
=
Arrays
.
asList
(
OrderSourceType
.
SAAS
.
getCode
(),
OrderSourceType
.
ALIPAY
.
getCode
(),
OrderSourceType
.
APP
.
getCode
());
List
<
String
>
sourceList
=
Arrays
.
asList
(
OrderSourceType
.
SAAS
.
getCode
(),
OrderSourceType
.
ALIPAY
.
getCode
(),
OrderSourceType
.
APP
.
getCode
());
if
(
sourceList
.
contains
(
orderBean
.
getSource
())
&&
oldOrderStatusList
.
contains
(
orderBean
.
getStatus
()))
{
if
(
sourceList
.
contains
(
orderBean
.
getSource
())
&&
oldOrderStatusList
.
contains
(
orderBean
.
getStatus
()))
{
executeRefund
(
request
,
orderBean
,
OperateType
.
ORDER_REJECT
.
getOpType
());
return
executeRefund
(
request
,
orderBean
,
OperateType
.
ORDER_REJECT
.
getOpType
());
}
else
if
(
OrderSourceType
.
MEAL
.
getCode
().
equals
(
orderBean
.
getSource
()))
{
}
else
if
(
OrderSourceType
.
MEAL
.
getCode
().
equals
(
orderBean
.
getSource
()))
{
if
(
OldOrderStatus
.
WAIT_PAY
.
getCode
().
equals
(
orderBean
.
getStatus
())
||
PayType
.
CASH_ON_DELIVERY
.
getCode
()
==
orderBean
.
getPayType
())
{
if
(
OldOrderStatus
.
WAIT_PAY
.
getCode
().
equals
(
orderBean
.
getStatus
())
||
PayType
.
CASH_ON_DELIVERY
.
getCode
()
==
orderBean
.
getPayType
())
{
executeCancel
(
request
,
orderBean
,
PayRefundStatus
.
SUCCESS
.
getCode
(),
AfterSalesType
.
USER_SALE_RETURN
.
getIndex
(),
Integer
.
valueOf
(
orderBean
.
getOrderClient
()));
return
executeCancel
(
request
,
orderBean
,
PayRefundStatus
.
SUCCESS
.
getCode
(),
AfterSalesType
.
SYSTEM_CANCEL
.
getIndex
(),
Integer
.
valueOf
(
orderBean
.
getOrderClient
()));
}
else
{
}
else
{
executeRefund
(
request
,
orderBean
,
OperateType
.
ORDER_REJECT
.
getOpType
());
return
executeRefund
(
request
,
orderBean
,
OperateType
.
ORDER_REJECT
.
getOpType
());
}
}
}
else
if
(
OrderSourceType
.
POS
.
getCode
().
equals
(
orderBean
.
getSource
()))
{
}
else
if
(
OrderSourceType
.
POS
.
getCode
().
equals
(
orderBean
.
getSource
()))
{
return
posCancel
(
orderBean
);
return
posCancel
(
orderBean
);
...
...
shopping-cart-application-service/src/main/java/cn/freemud/adapter/ActivityAdapter.java
View file @
36041a22
...
@@ -415,7 +415,6 @@ public class ActivityAdapter {
...
@@ -415,7 +415,6 @@ public class ActivityAdapter {
couponAvailableCartInfo
.
setProviderId
(
partnerId
);
couponAvailableCartInfo
.
setProviderId
(
partnerId
);
couponAvailableCartInfo
.
setMerchantId
(
partnerId
);
couponAvailableCartInfo
.
setMerchantId
(
partnerId
);
couponAvailableCartInfo
.
setStoreId
(
storeId
);
couponAvailableCartInfo
.
setStoreId
(
storeId
);
couponAvailableCartInfo
.
setChannelIdList
(
orgCodes
);
couponAvailableCartInfo
.
setExclusion
(
true
);
couponAvailableCartInfo
.
setExclusion
(
true
);
Long
totalMealDiscountAmount
=
0L
;
//套餐优惠不算在内
Long
totalMealDiscountAmount
=
0L
;
//套餐优惠不算在内
...
...
shopping-cart-application-service/src/main/java/cn/freemud/factory/AbstractShoppingCartImpl.java
View file @
36041a22
...
@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
...
@@ -23,6 +23,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import
cn.freemud.service.thirdparty.StockClient
;
import
cn.freemud.service.thirdparty.StockClient
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.PromotionFactory
;
import
cn.freemud.utils.PromotionFactory
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig
;
import
com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformPartnerStoreDeliveryConfig
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager
;
import
com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformPartnerStoreDeliveryConfigManager
;
...
@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService
...
@@ -123,8 +124,9 @@ public abstract class AbstractShoppingCartImpl implements ShoppingCartNewService
// }
// }
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/DefaultPromotionService.java
View file @
36041a22
...
@@ -7,17 +7,10 @@ import cn.freemud.entities.dto.activity.ActivityDiscountsDto;
...
@@ -7,17 +7,10 @@ import cn.freemud.entities.dto.activity.ActivityDiscountsDto;
import
cn.freemud.entities.dto.activity.ActivityQueryDto
;
import
cn.freemud.entities.dto.activity.ActivityQueryDto
;
import
cn.freemud.entities.dto.activity.ShareDiscountActivityDto
;
import
cn.freemud.entities.dto.activity.ShareDiscountActivityDto
;
import
cn.freemud.entities.dto.shoppingCart.ShoppingCartGoodsDto
;
import
cn.freemud.entities.dto.shoppingCart.ShoppingCartGoodsDto
;
import
cn.freemud.entities.vo.CartGoods
;
import
cn.freemud.entities.vo.CouponPromotionVO
;
import
cn.freemud.entities.vo.CreateOrderVo
;
import
cn.freemud.entities.vo.ShoppingCartGoodsResponseVo
;
import
cn.freemud.entities.vo.ShoppingCartInfoRequestVo
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.enums.ActivityTypeEnum
;
import
cn.freemud.enums.ActivityTypeEnum
;
import
cn.freemud.enums.GoodsTypeEnum
;
import
cn.freemud.service.IPromotionService
;
import
cn.freemud.service.IPromotionService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -27,7 +20,6 @@ import java.util.List;
...
@@ -27,7 +20,6 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.function.Function
;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
/**
* All rights Reserved, Designed By www.freemud.com
* All rights Reserved, Designed By www.freemud.com
...
@@ -66,7 +58,20 @@ public class DefaultPromotionService implements IPromotionService {
...
@@ -66,7 +58,20 @@ public class DefaultPromotionService implements IPromotionService {
shoppingCartGoodsResponseVo
.
setOriginalTotalAmount
(
calculationDiscountResult
==
null
?
totalOriginalAmount
:
calculationDiscountResult
.
getOriginalTotalAmount
());
shoppingCartGoodsResponseVo
.
setOriginalTotalAmount
(
calculationDiscountResult
==
null
?
totalOriginalAmount
:
calculationDiscountResult
.
getOriginalTotalAmount
());
shoppingCartGoodsResponseVo
.
setTotalAmount
(
calculationDiscountResult
==
null
?
totalAmount
:
calculationDiscountResult
.
getTotalAmount
());
shoppingCartGoodsResponseVo
.
setTotalAmount
(
calculationDiscountResult
==
null
?
totalAmount
:
calculationDiscountResult
.
getTotalAmount
());
shoppingCartGoodsResponseVo
.
setNewPackAmount
(
totalPackgeAmount
);
shoppingCartGoodsResponseVo
.
setNewPackAmount
(
totalPackgeAmount
);
shoppingCartGoodsResponseVo
.
setTotalDiscountAmount
(
calculationDiscountResult
==
null
?
0L
:
calculationDiscountResult
.
getTotalDiscountAmount
());
if
(
calculationDiscountResult
==
null
)
{
shoppingCartGoodsResponseVo
.
setTotalDiscountAmount
(
0L
);
}
else
{
// 需要算上配送券的优惠金额
Integer
discountAmount
=
0
;
if
(
CollectionUtils
.
isNotEmpty
(
calculationDiscountResult
.
getCouponDiscounts
()))
{
// 过滤出配送券金额
ActivityCalculationDiscountResponseDto
.
CalculationDiscountResult
.
CouponResults
couponResults
=
calculationDiscountResult
.
getCouponDiscounts
().
stream
().
filter
(
c
->
c
.
getActivityType
()
!=
null
&&
c
.
getActivityType
().
compareTo
(
ActivityTypeEnum
.
TYPE_34
.
getCode
())
==
0
).
findFirst
().
orElse
(
null
);
if
(
couponResults
!=
null
)
{
discountAmount
=
couponResults
.
getDiscountAmount
();
}
}
shoppingCartGoodsResponseVo
.
setTotalDiscountAmount
(
calculationDiscountResult
.
getTotalDiscountAmount
()
+
discountAmount
);
}
}
}
@Override
@Override
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
View file @
36041a22
...
@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
...
@@ -14,6 +14,7 @@ import cn.freemud.service.thirdparty.CustomerApplicationClient;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.LogUtil
;
import
cn.freemud.utils.LogUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager
;
import
com.freemud.api.assortment.datamanager.manager.customer.AssortmentCustomerInfoManager
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ApiLog
;
...
@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
...
@@ -69,9 +70,10 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
// }
// }
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
}
}
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMallServiceImpl.java
View file @
36041a22
...
@@ -921,8 +921,9 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
...
@@ -921,8 +921,9 @@ public class ShoppingCartMallServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartMealServiceImpl.java
View file @
36041a22
...
@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService;
...
@@ -22,6 +22,7 @@ import cn.freemud.service.ShoppingCartNewService;
import
cn.freemud.service.thirdparty.ActivityClient
;
import
cn.freemud.service.thirdparty.ActivityClient
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.utils.*
;
import
cn.freemud.utils.*
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
import
com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo
;
...
@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
...
@@ -709,8 +710,9 @@ public class ShoppingCartMealServiceImpl implements ShoppingCartNewService {
// return sessionUserInfo.getResult();
// return sessionUserInfo.getResult();
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
return
null
;
if
(
customerInfoVo
==
null
)
return
null
;
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
36041a22
...
@@ -174,7 +174,7 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -174,7 +174,7 @@ public class ShoppingCartMCoffeeServiceImpl {
// 查询购物车缓存
// 查询购物车缓存
List
<
CartGoods
>
oldCartGoodsList
=
assortmentSdkService
.
getShoppingCart
(
partnerId
,
storeId
,
userId
,
null
,
null
,
shoppingCartBaseService
);
List
<
CartGoods
>
oldCartGoodsList
=
assortmentSdkService
.
getShoppingCart
(
partnerId
,
storeId
,
userId
,
null
,
null
,
shoppingCartBaseService
);
log
.
info
(
"oldCartGoodsList : "
,
JSON
.
toJSONString
(
oldCartGoodsList
));
log
.
info
(
"oldCartGoodsList : "
+
JSON
.
toJSONString
(
oldCartGoodsList
));
if
(
CollectionUtils
.
isEmpty
(
oldCartGoodsList
))
{
if
(
CollectionUtils
.
isEmpty
(
oldCartGoodsList
))
{
oldCartGoodsList
=
new
ArrayList
<>();
oldCartGoodsList
=
new
ArrayList
<>();
}
}
...
@@ -235,6 +235,7 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -235,6 +235,7 @@ public class ShoppingCartMCoffeeServiceImpl {
}
}
List
<
CartGoods
>
newCartGoods
=
null
;
List
<
CartGoods
>
newCartGoods
=
null
;
ApiLog
.
debug
(
"【oldGoodsList】:{} ,【addCartGoods】:{}"
,
JSONObject
.
toJSONString
(
oldCartGoodsList
),
JSONObject
.
toJSONString
(
addCartGoods
));
if
(
StringUtils
.
equals
(
"9999"
,
skuId
))
{
if
(
StringUtils
.
equals
(
"9999"
,
skuId
))
{
// 将月享卡2.0的虚拟商品保存到购物车中
// 将月享卡2.0的虚拟商品保存到购物车中
oldCartGoodsList
.
add
(
addCartGoods
);
oldCartGoodsList
.
add
(
addCartGoods
);
...
@@ -264,7 +265,6 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -264,7 +265,6 @@ public class ShoppingCartMCoffeeServiceImpl {
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
oldCartGoodsList
,
null
,
tableNumber
,
this
.
shoppingCartBaseService
);
assortmentSdkService
.
setShoppingCart
(
partnerId
,
storeId
,
userId
,
oldCartGoodsList
,
null
,
tableNumber
,
this
.
shoppingCartBaseService
);
newCartGoods
=
oldCartGoodsList
;
newCartGoods
=
oldCartGoodsList
;
}
else
{
}
else
{
ApiLog
.
debug
(
"【addGoodsList】:{} ,【addGoodsRequestVo】:{}"
,
JSONObject
.
toJSONString
(
oldCartGoodsList
),
JSONObject
.
toJSONString
(
addCartGoods
));
// 购物车数据更新(保存商品原价)
// 购物车数据更新(保存商品原价)
newCartGoods
=
updateCartGoodsLegal
(
partnerId
,
storeId
,
orderType
,
tableNumber
,
menuType
,
userId
,
addCartGoods
,
shoppingCartGoodsResponseVo
,
oldCartGoodsList
);
newCartGoods
=
updateCartGoodsLegal
(
partnerId
,
storeId
,
orderType
,
tableNumber
,
menuType
,
userId
,
addCartGoods
,
shoppingCartGoodsResponseVo
,
oldCartGoodsList
);
...
@@ -1877,8 +1877,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -1877,8 +1877,9 @@ public class ShoppingCartMCoffeeServiceImpl {
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
AssortmentCustomerInfoVo
customerInfoVo
=
customerInfoManager
.
getCustomerInfoByObject
(
sessionId
);
if
(
customerInfoVo
==
null
)
if
(
customerInfoVo
==
null
)
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
throw
new
ServiceException
(
ResponseResult
.
NOT_LOGIN
);
CustomerInfoVo
customerInfoVo1
=
new
CustomerInfoVo
();
String
jsonObject
=
JSON
.
toJSONString
(
customerInfoVo
);
BeanUtil
.
convertBean
(
customerInfoVo
,
customerInfoVo1
);
CustomerInfoVo
customerInfoVo1
=
JSON
.
parseObject
(
jsonObject
,
CustomerInfoVo
.
class
);
// BeanUtil.convertBean(customerInfoVo,customerInfoVo1);
return
customerInfoVo1
;
return
customerInfoVo1
;
}
}
...
...
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