Commit ece384c1 authored by zhangzhenbang's avatar zhangzhenbang

suo

parent 095f4702
......@@ -42,12 +42,11 @@ public class ReservationServiceImpl implements ReservationService {
@Override
@Transactional(rollbackFor = Exception.class)
public Response insertIdentityInfoAndReservation(ReservationInfoDTO info) throws Exception{
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 (identityInformationMapper.updateIdentityInfo(info.getIdentityInformation()) == 1) {
if (reservationMapper.insertReservation(reservation) == 1) {
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