insert into
sz_registrations (
name
,idcard
,times
,specialty
)
values (
#{name}
,#{idcard}
,#{times}
,#{specialty}
)
insert into
sz_enroll (
name
,idcard
,seat_num
)
values (
#{name}
,#{idcard}
,#{seatNum}
)
update sz_registrations SET `is_active` = '1'
where times = #{times}