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
8cdaa0cd
Commit
8cdaa0cd
authored
Oct 12, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单购买月卡
parent
f335b1ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+2
-2
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
+8
-0
order-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
+8
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckMCCafeOrder.java
+2
-0
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
8cdaa0cd
...
@@ -249,7 +249,7 @@ public class OrderAdapter {
...
@@ -249,7 +249,7 @@ public class OrderAdapter {
if
(
null
!=
shoppingCartGoodsDto
.
getPayCardFee
()
&&
0
l
!=
shoppingCartGoodsDto
.
getPayCardFee
())
{
if
(
null
!=
shoppingCartGoodsDto
.
getPayCardFee
()
&&
0
l
!=
shoppingCartGoodsDto
.
getPayCardFee
())
{
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
CreateOrderAccountRequest
createOrderAccountDto
=
CreateOrderAccountRequest
.
builder
()
.
accountId
(
""
)
.
accountId
(
""
)
.
name
(
"
麦咖啡月
卡"
)
.
name
(
"
啡常月享
卡"
)
.
price
(
shoppingCartGoodsDto
.
getPayCardFee
())
.
price
(
shoppingCartGoodsDto
.
getPayCardFee
())
.
accountType
(
QueryOrderAccountType
.
MCCAFE_MONTH_CARD
)
.
accountType
(
QueryOrderAccountType
.
MCCAFE_MONTH_CARD
)
.
sequence
(
orderAccountIndex
++)
.
sequence
(
orderAccountIndex
++)
...
@@ -1173,7 +1173,7 @@ public class OrderAdapter {
...
@@ -1173,7 +1173,7 @@ public class OrderAdapter {
responseVo
.
setOrderAccounts
(
convent2OrderAccountVo
(
ordersBean
.
getApportionDetails
()));
responseVo
.
setOrderAccounts
(
convent2OrderAccountVo
(
ordersBean
.
getApportionDetails
()));
if
(
CollectionUtils
.
isNotEmpty
(
ordersBean
.
getOrderCostDetailList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
ordersBean
.
getOrderCostDetailList
()))
{
ordersBean
.
getOrderCostDetailList
().
forEach
(
o
->
{
ordersBean
.
getOrderCostDetailList
().
forEach
(
o
->
{
if
(
o
.
getCostType
()
==
10
)
{
if
(
o
.
getCostType
()
==
10
&&
o
.
getBillType
()
==
1
)
{
ProductVo
productVo
=
new
ProductVo
();
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setName
(
o
.
getCostName
());
productVo
.
setName
(
o
.
getCostName
());
productVo
.
setSpuName
(
o
.
getCostName
());
productVo
.
setSpuName
(
o
.
getCostName
());
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/CreateOrderVo.java
View file @
8cdaa0cd
...
@@ -223,6 +223,14 @@ public class CreateOrderVo {
...
@@ -223,6 +223,14 @@ public class CreateOrderVo {
private
String
invoiceTitle
;
private
String
invoiceTitle
;
/**
/**
* 随单购是否购买月享卡
* 1:不购买,2:月卡续费,3:新购月卡
*/
private
String
buyMonthlyCard
;
private
String
monthlyCardCode
;
/**
* 是否使用电子风味卡,如果不为空则为使用
* 是否使用电子风味卡,如果不为空则为使用
*/
*/
@Valid
@Valid
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/ShoppingCartInfoRequestVo.java
View file @
8cdaa0cd
...
@@ -95,6 +95,14 @@ public class ShoppingCartInfoRequestVo {
...
@@ -95,6 +95,14 @@ public class ShoppingCartInfoRequestVo {
private
String
receiveId
;
private
String
receiveId
;
/**
* 随单购是否购买月享卡
* 1:不购买,2:月卡续费,3:新购月卡
*/
private
String
buyMonthlyCard
;
private
String
monthlyCardCode
;
@Data
@Data
public
final
static
class
SendGoods
{
public
final
static
class
SendGoods
{
/**
/**
...
...
order-application-service/src/main/java/cn/freemud/service/impl/CheckMCCafeOrder.java
View file @
8cdaa0cd
...
@@ -478,6 +478,8 @@ public class CheckMCCafeOrder {
...
@@ -478,6 +478,8 @@ public class CheckMCCafeOrder {
.
useCustomerScore
(
createOrderVo
.
getUseCustomerScore
())
.
useCustomerScore
(
createOrderVo
.
getUseCustomerScore
())
.
buyMemberCard
(
null
)
.
buyMemberCard
(
null
)
.
menuType
(
createOrderVo
.
getMenuType
())
.
menuType
(
createOrderVo
.
getMenuType
())
.
buyMonthlyCard
(
createOrderVo
.
getBuyMonthlyCard
())
.
monthlyCardCode
(
createOrderVo
.
getMonthlyCardCode
())
.
build
();
.
build
();
// 如果使用优惠券或者商品券,校验 couponCode
// 如果使用优惠券或者商品券,校验 couponCode
// if (StringUtils.isNotBlank(createOrderVo.getCouponCode())) {
// if (StringUtils.isNotBlank(createOrderVo.getCouponCode())) {
...
...
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