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
afb1098a
Commit
afb1098a
authored
Nov 06, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员分成记录信息
parent
b3abeaf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
OrderViolationBiz.java
...n/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
+10
-1
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
View file @
afb1098a
...
@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.biz.BaseBiz;
...
@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.biz.BaseBiz;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.xxfc.platform.order.entity.BaseOrder
;
import
com.xxfc.platform.order.entity.OrderRentVehicleDetail
;
import
com.xxfc.platform.order.entity.OrderRentVehicleDetail
;
import
com.xxfc.platform.order.entity.OrderViolation
;
import
com.xxfc.platform.order.entity.OrderViolation
;
import
com.xxfc.platform.order.mapper.OrderRentVehicleDetailMapper
;
import
com.xxfc.platform.order.mapper.OrderRentVehicleDetailMapper
;
...
@@ -45,6 +46,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -45,6 +46,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
@Autowired
@Autowired
private
OrderRentVehicleDetailMapper
detailMapper
;
private
OrderRentVehicleDetailMapper
detailMapper
;
@Autowired
BaseOrderBiz
baseOrderBiz
;
@Value
(
"order.violation.upload"
)
@Value
(
"order.violation.upload"
)
private
String
ovUpload
;
private
String
ovUpload
;
...
@@ -77,7 +81,7 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -77,7 +81,7 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
}
else
{
}
else
{
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
orderRentVehicleDetail
.
setHandelViolation
(
0
);
orderRentVehicleDetail
.
setHandelViolation
(
1
);
Map
<
String
,
Object
>
status
=
mapper
.
getOrderAndVehicleStatus
(
orderViolation
.
getDetailId
());
Map
<
String
,
Object
>
status
=
mapper
.
getOrderAndVehicleStatus
(
orderViolation
.
getDetailId
());
Integer
orderStatus
=
(
Integer
)
status
.
get
(
"status"
);
Integer
orderStatus
=
(
Integer
)
status
.
get
(
"status"
);
Integer
refundStatus
=
(
Integer
)
status
.
get
(
"refundStatus"
);
Integer
refundStatus
=
(
Integer
)
status
.
get
(
"refundStatus"
);
...
@@ -89,6 +93,11 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -89,6 +93,11 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
orderViolation
.
setCrtTime
(
new
BigInteger
(
String
.
valueOf
(
System
.
currentTimeMillis
())));
orderViolation
.
setCrtTime
(
new
BigInteger
(
String
.
valueOf
(
System
.
currentTimeMillis
())));
insertSelective
(
orderViolation
);
insertSelective
(
orderViolation
);
detailMapper
.
updateByPrimaryKeySelective
(
orderRentVehicleDetail
);
detailMapper
.
updateByPrimaryKeySelective
(
orderRentVehicleDetail
);
BaseOrder
baseOrder
=
baseOrderBiz
.
selectById
(
orderRentVehicleDetail
.
getOrderId
());
if
(
baseOrder
!=
null
)
{
baseOrder
.
setRefundStatus
(
3
);
baseOrderBiz
.
updateSelectiveByIdRe
(
baseOrder
);
}
}
else
{
}
else
{
throw
new
BaseException
(
"The operation cannot be changed at this time"
);
throw
new
BaseException
(
"The operation cannot be changed at this time"
);
}
}
...
...
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