Commit ece384c1 authored by zhangzhenbang's avatar zhangzhenbang

suo

parent 095f4702
...@@ -42,12 +42,11 @@ public class ReservationServiceImpl implements ReservationService { ...@@ -42,12 +42,11 @@ public class ReservationServiceImpl implements ReservationService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Response insertIdentityInfoAndReservation(ReservationInfoDTO info) throws Exception{ 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) { 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) { if (reservationMapper.insertReservation(reservation) == 1) {
return Response.succ(); return Response.succ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment