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 from rt_stu_leave_application
insert into cph_msg
sender,
receiver,
content,
create_by,
create_time,
update_by,
update_time,
#{sender},
#{receiver},
#{content},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update rt_stu_leave_application
stu_id = #{stuId},
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},
where leave_application_id = #{leaveApplicationId}
delete from cph_msg where id = #{id}