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
88442623
Commit
88442623
authored
Dec 27, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抖音小程序查询卖券订单处理,美业代码去除
parent
86605b2c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+5
-2
order-application-service/src/main/java/cn/freemud/enums/OrderChannelType.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+3
-2
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+4
-2
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
88442623
...
@@ -662,10 +662,13 @@ public class OrderAdapter {
...
@@ -662,10 +662,13 @@ public class OrderAdapter {
orderClients
=
Arrays
.
asList
(
OrderClientType
.
SAAS
.
getIndex
(),
OrderClientType
.
ALIPAY
.
getIndex
());
orderClients
=
Arrays
.
asList
(
OrderClientType
.
SAAS
.
getIndex
(),
OrderClientType
.
ALIPAY
.
getIndex
());
bizTypes
.
add
(
BizTypeEnum
.
ORDINARY
.
getBizType
());
bizTypes
.
add
(
BizTypeEnum
.
ORDINARY
.
getBizType
());
queryOrdersDto
.
setMarketingType
(
MarketTypeEnum
.
CASHIER
.
getIndex
());
queryOrdersDto
.
setMarketingType
(
MarketTypeEnum
.
CASHIER
.
getIndex
());
}
else
if
(
OrderChannelType
.
TIKTOK
.
getCode
().
equals
(
channelType
))
{
//抖音目前只有卖券,点餐业务已废弃
orderClients
=
Arrays
.
asList
(
OrderClientType
.
TIKTOKPAY
.
getIndex
());
bizTypes
.
add
(
BizTypeEnum
.
SALE_COUPON
.
getBizType
());
}
else
{
}
else
{
orderClients
=
Arrays
.
asList
(
OrderClientType
.
SAAS
.
getIndex
(),
OrderClientType
.
ALIPAY
.
getIndex
(),
OrderClientType
.
APP
.
getIndex
());
orderClients
=
Arrays
.
asList
(
OrderClientType
.
SAAS
.
getIndex
(),
OrderClientType
.
ALIPAY
.
getIndex
(),
OrderClientType
.
APP
.
getIndex
());
bizTypes
=
Arrays
.
asList
(
BizTypeEnum
.
ORDINARY
.
getBizType
(),
BizTypeEnum
.
SALE_COUPON
.
getBizType
(),
BizTypeEnum
.
ADVANCE_ORDER
.
getBizType
());
bizTypes
=
Arrays
.
asList
(
BizTypeEnum
.
ORDINARY
.
getBizType
(),
BizTypeEnum
.
SALE_COUPON
.
getBizType
(),
BizTypeEnum
.
ADVANCE_ORDER
.
getBizType
());
queryOrdersDto
.
setMarketingTypes
(
Arrays
.
asList
(
MarketTypeEnum
.
ORDER
.
getIndex
(),
MarketTypeEnum
.
COLLAGE
.
getIndex
(),
MarketTypeEnum
.
WE_CHAT_LIVE_SELL
.
getIndex
()));
queryOrdersDto
.
setMarketingTypes
(
Arrays
.
asList
(
MarketTypeEnum
.
ORDER
.
getIndex
(),
MarketTypeEnum
.
COLLAGE
.
getIndex
(),
MarketTypeEnum
.
WE_CHAT_LIVE_SELL
.
getIndex
()));
}
}
List
<
Integer
>
payStatus
=
Arrays
.
asList
(
PayStatus
.
HAVE_PAID
.
getCode
(),
PayStatus
.
HAVE_REFUND
.
getCode
(),
PayStatus
.
COMPLETE
.
getCode
());
List
<
Integer
>
payStatus
=
Arrays
.
asList
(
PayStatus
.
HAVE_PAID
.
getCode
(),
PayStatus
.
HAVE_REFUND
.
getCode
(),
PayStatus
.
COMPLETE
.
getCode
());
queryOrdersDto
.
setPayStatus
((
Integer
[])
payStatus
.
toArray
());
queryOrdersDto
.
setPayStatus
((
Integer
[])
payStatus
.
toArray
());
...
...
order-application-service/src/main/java/cn/freemud/enums/OrderChannelType.java
View file @
88442623
...
@@ -22,7 +22,7 @@ public enum OrderChannelType {
...
@@ -22,7 +22,7 @@ public enum OrderChannelType {
SAASMALL
(
"saasmall"
,
"微商城"
),
SAASMALL
(
"saasmall"
,
"微商城"
),
BEAUTIFUL
(
"beautiful"
,
"美业"
),
//
BEAUTIFUL("beautiful", "美业"),
APP
(
"app"
,
"APP"
),
APP
(
"app"
,
"APP"
),
...
...
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
88442623
...
@@ -2514,9 +2514,10 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2514,9 +2514,10 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
channelType
=
OrderChannelType
.
SAASMALL
.
getCode
();
channelType
=
OrderChannelType
.
SAASMALL
.
getCode
();
}
else
if
(
UserLoginChannelEnum
.
APP
.
getCode
().
equals
(
userLoginInfoDto
.
getChannel
()))
{
}
else
if
(
UserLoginChannelEnum
.
APP
.
getCode
().
equals
(
userLoginInfoDto
.
getChannel
()))
{
channelType
=
OrderChannelType
.
APP
.
getCode
();
channelType
=
OrderChannelType
.
APP
.
getCode
();
}
else
if
(
OrderChannelType
.
BEAUTIFUL
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
channelType
=
OrderChannelType
.
BEAUTIFUL
.
getCode
();
}
}
// else if (OrderChannelType.BEAUTIFUL.getCode().equals(queryOrderVo.getChannelType())) {
// channelType = OrderChannelType.BEAUTIFUL.getCode();
// }
return
channelType
;
return
channelType
;
}
}
...
...
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
88442623
...
@@ -2768,8 +2768,10 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -2768,8 +2768,10 @@ public class OrderServiceImpl implements Orderservice {
channelType
=
OrderChannelType
.
SAASMALL
.
getCode
();
channelType
=
OrderChannelType
.
SAASMALL
.
getCode
();
}
else
if
(
UserLoginChannelEnum
.
APP
.
getCode
().
equals
(
userLoginInfoDto
.
getChannel
()))
{
}
else
if
(
UserLoginChannelEnum
.
APP
.
getCode
().
equals
(
userLoginInfoDto
.
getChannel
()))
{
channelType
=
OrderChannelType
.
APP
.
getCode
();
channelType
=
OrderChannelType
.
APP
.
getCode
();
}
else
if
(
OrderChannelType
.
BEAUTIFUL
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
// } else if (OrderChannelType.BEAUTIFUL.getCode().equals(queryOrderVo.getChannelType())) {
channelType
=
OrderChannelType
.
BEAUTIFUL
.
getCode
();
// channelType = OrderChannelType.BEAUTIFUL.getCode();
}
else
if
(
OrderChannelType
.
TIKTOK
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
channelType
=
OrderChannelType
.
TIKTOK
.
getCode
();
}
else
if
(
OrderChannelType
.
CASHIER
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
}
else
if
(
OrderChannelType
.
CASHIER
.
getCode
().
equals
(
queryOrderVo
.
getChannelType
()))
{
channelType
=
OrderChannelType
.
CASHIER
.
getCode
();
channelType
=
OrderChannelType
.
CASHIER
.
getCode
();
}
}
...
...
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