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
88dd7332
Commit
88dd7332
authored
Nov 13, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
bacd349a
30d598f3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
3 deletions
+21
-3
ShuntApply.java
.../main/java/com/xxfc/platform/order/entity/ShuntApply.java
+4
-0
SpecialRent.java
...main/java/com/xxfc/platform/order/entity/SpecialRent.java
+7
-0
OrderAccountBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
+4
-1
SpecialRentBiz.java
...main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
+1
-0
OrderCancelBiz.java
...ava/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
+2
-2
ShuntApplyController.java
...va/com/xxfc/platform/order/rest/ShuntApplyController.java
+2
-0
SpecialRentController.java
...a/com/xxfc/platform/order/rest/SpecialRentController.java
+1
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/ShuntApply.java
View file @
88dd7332
package
com
.
xxfc
.
platform
.
order
.
entity
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
javax.persistence.*
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -237,4 +238,7 @@ public class ShuntApply implements Serializable {
@Column
(
name
=
"is_bizdel"
)
private
Integer
isBizdel
;
@Column
(
name
=
"real_amount"
)
private
BigDecimal
realAmount
;
}
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/SpecialRent.java
View file @
88dd7332
...
...
@@ -266,4 +266,11 @@ public class SpecialRent implements Serializable {
@Column
(
name
=
"over_time"
)
@ApiModelProperty
(
value
=
"超时时间戳"
,
hidden
=
true
)
private
Long
overTime
;
/**
* 超时时间戳
*/
@Column
(
name
=
"price_type"
)
@ApiModelProperty
(
value
=
"超时时间戳"
,
hidden
=
true
)
private
Integer
priceType
;
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
View file @
88dd7332
...
...
@@ -650,17 +650,20 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
).
map
(
OrderAccountDeduction:
:
getAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
BigDecimal
toExtendDeduction
=
oad
.
getOriginOrderAmount
().
subtract
(
toOdDeduction
);
BigDecimal
residueOrderAmount
=
oad
.
getOriginOrderAmount
().
subtract
(
toOdDeduction
);
//如果订单原款 - 扣费 小于零,则押金有额外扣费
if
(
toExtendDeduction
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
//置反
//置反
去用押金抵扣
toExtendDeduction
=
BigDecimal
.
ZERO
.
subtract
(
toExtendDeduction
);
residueOrderAmount
=
BigDecimal
.
ZERO
;
}
else
{
//否则 则置为零
toExtendDeduction
=
BigDecimal
.
ZERO
;
}
oad
.
setDepositAmount
(
oad
.
getOriginDepositAmount
().
subtract
(
toDeduction
).
subtract
(
toExtendDeduction
));
oad
.
setOrderAmount
(
residueOrderAmount
);
}
private
void
handleViolateDetail
(
DeductionTypeEnum
dte
,
OrderAccountDetail
oad
,
DedDetailDTO
vio
,
CancelStartedVO
csv
)
{
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
View file @
88dd7332
...
...
@@ -113,6 +113,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
specialRent
.
setBrandId
(
vehicle
.
getBrandId
());
specialRent
.
setCategoryId
(
vehicle
.
getCategoryId
());
specialRent
.
setGoodsType
(
vehicle
.
getGoodsType
());
specialRent
.
setPriceType
(
vehicle
.
getPriceType
());
//缓存商品信息
specialRent
.
setGoodsJson
(
JSONUtil
.
parse
(
vehicle
).
toString
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
View file @
88dd7332
...
...
@@ -402,7 +402,7 @@ public class OrderCancelBiz {
orderRentVehicleBiz
.
updateSelectiveById
(
orvd
);
}
if
(
BaseOrder
.
ORDER_SIGN_APPLY
==
baseOrder
.
getOrder
Origi
n
())
{
if
(
BaseOrder
.
ORDER_SIGN_APPLY
==
baseOrder
.
getOrder
Sig
n
())
{
//更新 申请状态
ShuntApply
shuntApply
=
shuntApplyBiz
.
selectOne
(
new
ShuntApply
(){{
setOrderNo
(
baseOrder
.
getNo
());
...
...
@@ -422,7 +422,7 @@ public class OrderCancelBiz {
}
}
if
(
BaseOrder
.
ORDER_SIGN_SPECIAL
==
baseOrder
.
getOrder
Origi
n
())
{
if
(
BaseOrder
.
ORDER_SIGN_SPECIAL
==
baseOrder
.
getOrder
Sig
n
())
{
//更新 申请状态
SpecialRent
specialRent
=
specialRentBiz
.
selectOne
(
new
SpecialRent
(){{
setOrderNo
(
baseOrder
.
getNo
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/ShuntApplyController.java
View file @
88dd7332
...
...
@@ -223,12 +223,14 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
dto
.
setEndCompanyId
(
shuntApply
.
getEndCompanyId
());
RentVehicleBO
bo
=
orderRentVehicleBiz
.
initRentVehicleBO
(
dto
);
bo
.
setOrderSign
(
BaseOrder
.
ORDER_SIGN_APPLY
);
bo
.
setBookRecordId
(
shuntApply
.
getBookRecordId
());
bo
.
setAppUserDTO
(
userFeign
.
userDetailByToken
(
BaseContextHandler
.
getToken
()).
getData
());
orderRentVehicleService
.
applyCreateOrder
(
bo
,
shuntApply
.
getOrderNo
());
baseBiz
.
updateSelectiveById
(
new
ShuntApply
(){{
setId
(
shuntApply
.
getId
());
setStatus
(
ShuntApply
.
STATUS_ORDER
);
setOrderStatus
(
ShuntApply
.
ORDER_STATUS_TOPAY
);
setRealAmount
(
bo
.
getOrder
().
getRealAmount
());
}});
return
ObjectRestResponse
.
succ
(
bo
.
getOrder
());
}
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/SpecialRentController.java
View file @
88dd7332
...
...
@@ -191,6 +191,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
RentVehicleBO
bo
=
orderRentVehicleBiz
.
initRentVehicleBO
(
dto
);
bo
.
setOrderSign
(
BaseOrder
.
ORDER_SIGN_SPECIAL
);
bo
.
setAppUserDTO
(
getAppUser
());
bo
.
setBookRecordId
(
specialRent
.
getBookRecordId
());
orderRentVehicleService
.
specialCreateOrder
(
bo
,
specialRent
.
getOrderNo
());
baseBiz
.
updateSelectiveById
(
new
SpecialRent
(){{
setId
(
specialRent
.
getId
());
...
...
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