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
71806011
Commit
71806011
authored
Jul 14, 2021
by
李学兴
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
6500aea4
252d52d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+4
-0
order-management/pom.xml
+1
-1
order-management/src/main/java/cn/freemud/management/service/handle/SaasOrderHandle.java
+8
-6
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
71806011
...
@@ -518,6 +518,10 @@ public class CheckOrder {
...
@@ -518,6 +518,10 @@ public class CheckOrder {
Date
startDateTime
;
Date
startDateTime
;
Date
endDateTime
;
Date
endDateTime
;
startDateTime
=
DateUtil
.
convert2Date
(
startDateTimeStr
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
startDateTime
=
DateUtil
.
convert2Date
(
startDateTimeStr
,
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
);
//判断营业开始时间是24:00点
if
(
startDateTime
==
null
)
{
throw
new
ServiceException
(
ResponseResult
.
STORE_BUSINESS_HOUR_ERROR
);
}
SimpleDateFormat
hhmmss
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
hhmmss
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
try
{
endDateTime
=
hhmmss
.
parse
(
endDateTimeStr
);
endDateTime
=
hhmmss
.
parse
(
endDateTimeStr
);
...
...
order-management/pom.xml
View file @
71806011
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<dependency>
<dependency>
<groupId>
cn.freemud
</groupId>
<groupId>
cn.freemud
</groupId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<artifactId>
assortment-ordercenter-sdk
</artifactId>
<version>
2.1.
76
-RELEASE
</version>
<version>
2.1.
84
-RELEASE
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
order-management/src/main/java/cn/freemud/management/service/handle/SaasOrderHandle.java
View file @
71806011
...
@@ -67,9 +67,10 @@ public class SaasOrderHandle {
...
@@ -67,9 +67,10 @@ public class SaasOrderHandle {
BaseQueryOrderRequest
orderConfirmRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
BaseQueryOrderRequest
orderConfirmRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
orderSdkAdapter
.
convert2wmDeliveryTimeOut
(
orderConfirmRequest
,
this
.
wmDeliveryTimeOut
);
orderSdkAdapter
.
convert2wmDeliveryTimeOut
(
orderConfirmRequest
,
this
.
wmDeliveryTimeOut
);
//合阔pos 商户订单状态不自动扭转
//合阔pos 商户订单状态不自动扭转
if
(
CollectionUtils
.
isNotEmpty
(
notAutomaticTwistPartnerId
)
&&
notAutomaticTwistPartnerId
.
contains
(
orderBean
.
getCompanyId
()))
{
// 2021-07-07 合阔自动
orderConfirmRequest
.
setNotAutomaticTwist
(
true
);
// if (CollectionUtils.isNotEmpty(notAutomaticTwistPartnerId) && notAutomaticTwistPartnerId.contains(orderBean.getCompanyId())) {
}
// orderConfirmRequest.setNotAutomaticTwist(true);
// }
BaseOrderResponse
confirmOrderResponse
=
orderCenterSdkService
.
orderConfirmTake
(
orderConfirmRequest
);
BaseOrderResponse
confirmOrderResponse
=
orderCenterSdkService
.
orderConfirmTake
(
orderConfirmRequest
);
//处理1秒重复接单问题 订单服务接单返回20067重复操作,20018状态机不支持认为接单成功
//处理1秒重复接单问题 订单服务接单返回20067重复操作,20018状态机不支持认为接单成功
if
(
"20067"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"20018"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"50002"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
()))
{
if
(
"20067"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"20018"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
())
||
"50002"
.
equals
(
confirmOrderResponse
.
getErrcode
().
toString
()))
{
...
@@ -111,9 +112,10 @@ public class SaasOrderHandle {
...
@@ -111,9 +112,10 @@ public class SaasOrderHandle {
public
BaseResponse
orderDone
(
OrderManagerRequest
request
,
QueryOrdersResponse
.
DataBean
.
OrderBean
orderBean
)
{
public
BaseResponse
orderDone
(
OrderManagerRequest
request
,
QueryOrdersResponse
.
DataBean
.
OrderBean
orderBean
)
{
BaseQueryOrderRequest
orderDoneRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
BaseQueryOrderRequest
orderDoneRequest
=
orderSdkAdapter
.
getOrderConfirmRequest
(
request
.
getOperator
(),
orderBean
);
//合阔pos 商户订单状态不自动扭转
//合阔pos 商户订单状态不自动扭转
if
(
CollectionUtils
.
isNotEmpty
(
notAutomaticTwistPartnerId
)
&&
notAutomaticTwistPartnerId
.
contains
(
orderBean
.
getCompanyId
()))
{
// 2021-07-07 合阔自动
orderDoneRequest
.
setNotAutomaticTwist
(
true
);
// if (CollectionUtils.isNotEmpty(notAutomaticTwistPartnerId) && notAutomaticTwistPartnerId.contains(orderBean.getCompanyId())) {
}
// orderDoneRequest.setNotAutomaticTwist(true);
// }
BaseOrderResponse
baseOrderResponse
=
orderCenterSdkService
.
orderDone
(
orderDoneRequest
);
BaseOrderResponse
baseOrderResponse
=
orderCenterSdkService
.
orderDone
(
orderDoneRequest
);
if
(
baseOrderResponse
==
null
||
ObjectUtils
.
notEqual
(
ResponseResult
.
SUCCESS
.
getCode
(),
baseOrderResponse
.
getErrcode
().
toString
()))
{
if
(
baseOrderResponse
==
null
||
ObjectUtils
.
notEqual
(
ResponseResult
.
SUCCESS
.
getCode
(),
baseOrderResponse
.
getErrcode
().
toString
()))
{
return
ResponseUtil
.
error
(
ResponseResult
.
DONE_ORDER_FAIL
);
return
ResponseUtil
.
error
(
ResponseResult
.
DONE_ORDER_FAIL
);
...
...
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