Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
61e40f69
Commit
61e40f69
authored
Sep 20, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
94edcba0
be931aa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
OrderTourVerificationBiz.java
...com/xxfc/platform/order/biz/OrderTourVerificationBiz.java
+5
-3
ResCode.java
...a/com/xxfc/platform/vehicle/constant/ResCode/ResCode.java
+2
-1
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderTourVerificationBiz.java
View file @
61e40f69
...
@@ -71,6 +71,9 @@ public class OrderTourVerificationBiz{
...
@@ -71,6 +71,9 @@ public class OrderTourVerificationBiz{
if
(
baseOrder
.
getHasPay
()==
0
){
if
(
baseOrder
.
getHasPay
()==
0
){
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
ORDER_IS_NOT_PAY
.
getCode
(),
ResCode
.
ORDER_IS_NOT_PAY
.
getDesc
());
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
ORDER_IS_NOT_PAY
.
getCode
(),
ResCode
.
ORDER_IS_NOT_PAY
.
getDesc
());
}
}
if
(
baseOrder
.
getStatus
()==
6
){
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
ORDER_HAS_FINISH
.
getCode
(),
"二维码不能重复使用"
);
}
Integer
orderId
=
baseOrder
.
getId
();
Integer
orderId
=
baseOrder
.
getId
();
Integer
version
=
baseOrder
.
getVersion
();
Integer
version
=
baseOrder
.
getVersion
();
OrderTourDetail
tourDetail
=
new
OrderTourDetail
();
OrderTourDetail
tourDetail
=
new
OrderTourDetail
();
...
@@ -94,9 +97,7 @@ public class OrderTourVerificationBiz{
...
@@ -94,9 +97,7 @@ public class OrderTourVerificationBiz{
// 出发时间 是否已经发车
// 出发时间 是否已经发车
Date
departureDate
=
tourFeign
.
selectDepartureDataBySpeId
(
tourDetail
.
getSpePriceId
());
Date
departureDate
=
tourFeign
.
selectDepartureDataBySpeId
(
tourDetail
.
getSpePriceId
());
//Long departureTime = tourFeign.selectDepartureTimeByStartCompanyIdAndRouteId(tourDetail.getStartCompanyId(), tourDetail.getGoodId());
Integer
departureStatus
=
tourFeign
.
selectDepartureStatusByVerificationId
(
verificationId
);
Integer
departureStatus
=
tourFeign
.
selectDepartureStatusByVerificationId
(
verificationId
);
//LocalTime localDepartureTime = LocalTime.ofSecondOfDay(departureTime);
departureDate
.
setHours
(
0
);
departureDate
.
setHours
(
0
);
departureDate
.
setMinutes
(
0
);
departureDate
.
setMinutes
(
0
);
departureDate
.
setSeconds
(
0
);
departureDate
.
setSeconds
(
0
);
...
@@ -117,6 +118,7 @@ public class OrderTourVerificationBiz{
...
@@ -117,6 +118,7 @@ public class OrderTourVerificationBiz{
}
}
baseOrder
=
new
BaseOrder
();
baseOrder
=
new
BaseOrder
();
baseOrder
.
setId
(
orderId
);
baseOrder
.
setId
(
orderId
);
baseOrder
.
setStatus
(
OrderStatusEnum
.
ORDER_FINISH
.
getCode
());
baseOrder
.
setStatus
(
OrderStatusEnum
.
ORDER_FINISH
.
getCode
());
...
@@ -128,7 +130,7 @@ public class OrderTourVerificationBiz{
...
@@ -128,7 +130,7 @@ public class OrderTourVerificationBiz{
tourDetail
=
tourDetailBiz
.
updateSelectiveByIdReT
(
tourDetail
);
tourDetail
=
tourDetailBiz
.
updateSelectiveByIdReT
(
tourDetail
);
tourFeign
.
updateTourGoodPersonNum
(
verificationId
,
"verification_person"
,
total_number
);
tourFeign
.
updateTourGoodPersonNum
(
verificationId
,
"verification_person"
,
total_number
);
baseOrderBiz
.
sendOrderMq
(
null
,
tourDetail
,
null
,
baseOrder
,
OrderMQDTO
.
ORDER_FINISH
);
baseOrderBiz
.
sendOrderMq
(
null
,
tourDetail
,
null
,
baseOrder
,
OrderMQDTO
.
ORDER_FINISH
);
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
(
tourDetail
.
getGoodId
()
);
}
}
//确定上车
//确定上车
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/constant/ResCode/ResCode.java
View file @
61e40f69
...
@@ -59,7 +59,8 @@ public enum ResCode {
...
@@ -59,7 +59,8 @@ public enum ResCode {
ORDER_DETAIL_IS_NOT_EXIST
(
10001
,
"订单详情不可查询"
),
ORDER_DETAIL_IS_NOT_EXIST
(
10001
,
"订单详情不可查询"
),
YOU_AUTH_FAIL
(-
2
,
"无权限查看此信息"
),
YOU_AUTH_FAIL
(-
2
,
"无权限查看此信息"
),
ORDER_IS_NOT_PAY
(
10002
,
"订单未支付"
),
ORDER_IS_NOT_PAY
(
10002
,
"订单未支付"
),
USER_IS_EXIST
(
10003
,
"用户名已存在"
);
USER_IS_EXIST
(
10003
,
"用户名已存在"
),
ORDER_HAS_FINISH
(
10004
,
"订单已完成"
);
;
;
/**
/**
* 返回码
* 返回码
...
...
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