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
5d7191b2
Commit
5d7191b2
authored
Nov 02, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单核销接口修改
parent
d2061861
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
OrderViolationBiz.java
...n/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
+7
-0
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
View file @
5d7191b2
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface;
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
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.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
;
...
@@ -67,6 +68,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -67,6 +68,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
insertOrderViolation
(
OrderViolation
orderViolation
)
{
public
void
insertOrderViolation
(
OrderViolation
orderViolation
)
{
UserDTO
userDTO
=
getBusinessUserByAppUser
();
UserDTO
userDTO
=
getBusinessUserByAppUser
();
if
(
userDTO
==
null
)
{
throw
new
BaseException
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
);
}
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
orderRentVehicleDetail
.
setHandelViolation
(
0
);
orderRentVehicleDetail
.
setHandelViolation
(
0
);
...
@@ -95,6 +99,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -95,6 +99,9 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateOrderViolation
(
OrderViolation
orderViolation
)
{
public
void
updateOrderViolation
(
OrderViolation
orderViolation
)
{
UserDTO
userDTO
=
getBusinessUserByAppUser
();
UserDTO
userDTO
=
getBusinessUserByAppUser
();
if
(
userDTO
==
null
)
{
throw
new
BaseException
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
);
}
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"
);
...
...
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