select leave_application_id, stu_id, reason, leave_type, start_date, end_date, leave_days, destination, destination_details,
safety_promise, applicant_signature, attachment, counselor_comments, cancellation, leave_status, leaving_gx, status,
create_by, create_time, update_by, update_time, remark ,process_instance_id,cancellation_address,stu_no,deploy_id,father_name,father_relation from rt_stu_leave_application
insert into rt_stu_leave_application
stu_id,
stu_no,
reason,
leave_type,
start_date,
end_date,
leave_days,
destination,
destination_details,
safety_promise,
applicant_signature,
attachment,
counselor_comments,
cancellation,
leave_status,
leaving_gx,
status,
create_by,
create_time,
update_by,
update_time,
remark,
process_instance_id,
deploy_id,
cancellation_address,
father_name,
father_relation,
#{stuId},
#{stuNo},
#{reason},
#{leaveType},
#{startDate},
#{endDate},
#{leaveDays},
#{destination},
#{destinationDetails},
#{safetyPromise},
#{applicantSignature},
#{attachment},
#{counselorComments},
#{cancellation},
#{leaveStatus},
#{leavingGx},
#{status},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{processInstanceId},
#{deployId},
#{cancellationAddress},
#{fatherName},
#{fatherRelation},
update rt_stu_leave_application
stu_id = #{stuId},
stu_no = #{stuNo},
reason = #{reason},
leave_type = #{leaveType},
start_date = #{startDate},
end_date = #{endDate},
leave_days = #{leaveDays},
destination = #{destination},
destination_details = #{destinationDetails},
safety_promise = #{safetyPromise},
applicant_signature = #{applicantSignature},
attachment = #{attachment},
counselor_comments = #{counselorComments},
cancellation = #{cancellation},
leave_status = #{leaveStatus},
leaving_gx = #{leavingGx},
status = #{status},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
process_instance_id = #{processInstanceId},
deploy_id = #{deployId},
cancellation_address = #{cancellationAddress},
father_name = #{fatherName},
father_relation = #{fatherRelation},
where leave_application_id = #{leaveApplicationId}
delete from rt_stu_leave_application where leave_application_id = #{leaveApplicationId}
delete from rt_stu_leave_application where leave_application_id in
#{leaveApplicationId}