Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beijing-vehicleflow
Project
Project
Details
Activity
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
zhangzhenbang
beijing-vehicleflow
Commits
ece384c1
Commit
ece384c1
authored
Feb 24, 2020
by
zhangzhenbang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suo
parent
095f4702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ReservationServiceImpl.java
...ijingvehicleflow/service/impl/ReservationServiceImpl.java
+4
-5
No files found.
src/main/java/com/yingxin/beijingvehicleflow/service/impl/ReservationServiceImpl.java
View file @
ece384c1
...
...
@@ -42,12 +42,11 @@ public class ReservationServiceImpl implements ReservationService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Response
insertIdentityInfoAndReservation
(
ReservationInfoDTO
info
)
throws
Exception
{
Reservation
reservation
=
info
.
getReservation
();
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
reservation
.
setSubmitTime
(
sdf
.
format
(
date
));
if
(
identityInformationMapper
.
updateIdentityInfo
(
info
.
getIdentityInformation
())
==
1
)
{
Reservation
reservation
=
info
.
getReservation
();
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
reservation
.
setSubmitTime
(
sdf
.
format
(
date
));
if
(
reservationMapper
.
insertReservation
(
reservation
)
==
1
)
{
return
Response
.
succ
();
}
...
...
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