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
e99d6133
Commit
e99d6133
authored
Nov 02, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单核销接口修改
parent
c7223395
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
OrderViolationBiz.java
...n/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
+21
-15
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderViolationBiz.java
View file @
e99d6133
...
@@ -71,24 +71,30 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
...
@@ -71,24 +71,30 @@ public class OrderViolationBiz extends BaseBiz<OrderViolationMapper, OrderViolat
if
(
userDTO
==
null
)
{
if
(
userDTO
==
null
)
{
throw
new
BaseException
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
);
throw
new
BaseException
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
);
}
}
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
OrderViolation
old
=
mapper
.
selectOne
(
new
OrderViolation
(){{
setDetailId
(
orderViolation
.
getDetailId
());}});
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
if
(
old
!=
null
)
{
orderRentVehicleDetail
.
setHandelViolation
(
0
);
throw
new
BaseException
(
"违章记录已存在!"
);
Map
<
String
,
Object
>
status
=
mapper
.
getOrderAndVehicleStatus
(
orderViolation
.
getDetailId
());
Integer
orderStatus
=
(
Integer
)
status
.
get
(
"status"
);
Integer
refundStatus
=
(
Integer
)
status
.
get
(
"refundStatus"
);
if
(
orderStatus
>=
6
||
(
refundStatus
<=
2
&&
refundStatus
!=
1
))
{
orderViolation
.
setIsDel
(
0
);
orderViolation
.
setCrtHost
(
getRequest
().
getRemoteHost
());
orderViolation
.
setCrtName
(
userDTO
.
getName
());
orderViolation
.
setCrtUserId
(
userDTO
.
getId
());
orderViolation
.
setCrtTime
(
new
BigInteger
(
String
.
valueOf
(
System
.
currentTimeMillis
())));
insertSelective
(
orderViolation
);
detailMapper
.
updateByPrimaryKeySelective
(
orderRentVehicleDetail
);
}
else
{
}
else
{
throw
new
BaseException
(
"The operation cannot be changed at this time"
);
OrderRentVehicleDetail
orderRentVehicleDetail
=
new
OrderRentVehicleDetail
();
orderRentVehicleDetail
.
setId
(
orderViolation
.
getDetailId
());
orderRentVehicleDetail
.
setHandelViolation
(
0
);
Map
<
String
,
Object
>
status
=
mapper
.
getOrderAndVehicleStatus
(
orderViolation
.
getDetailId
());
Integer
orderStatus
=
(
Integer
)
status
.
get
(
"status"
);
Integer
refundStatus
=
(
Integer
)
status
.
get
(
"refundStatus"
);
if
(
orderStatus
>=
6
||
(
refundStatus
<=
2
&&
refundStatus
!=
1
))
{
orderViolation
.
setIsDel
(
0
);
orderViolation
.
setCrtHost
(
getRequest
().
getRemoteHost
());
orderViolation
.
setCrtName
(
userDTO
.
getName
());
orderViolation
.
setCrtUserId
(
userDTO
.
getId
());
orderViolation
.
setCrtTime
(
new
BigInteger
(
String
.
valueOf
(
System
.
currentTimeMillis
())));
insertSelective
(
orderViolation
);
detailMapper
.
updateByPrimaryKeySelective
(
orderRentVehicleDetail
);
}
else
{
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