select id, coal_pay_id, name, id_card, phone, sex, pay_code, pay_status,pay_type,order_id,file_data,gov_pay_status, update_by, update_time, create_by, create_time, del_flag from coal_pay_student
insert into coal_pay_student
id,
coal_pay_id,
name,
id_card,
phone,
sex,
pay_code,
pay_status,
pay_type,
order_id,
file_data,
gov_pay_status,
create_by,
create_time,
update_by,
update_time,
del_flag,
#{id},
#{coalPayId},
#{name},
#{idCard},
#{phone},
#{sex},
#{payCode},
#{payStatus},
#{payType},
#{orderId},
#{fileData},
#{govPayStatus},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
update coal_pay_student set del_flag = 2 where id in
#{id}
update coal_pay_student
coal_pay_id = #{coalPayId},
name = #{name},
id_card = #{idCard},
phone = #{phone},
sex = #{sex},
pay_type = #{payType},
pay_code = #{payCode},
pay_status = #{payStatus},
order_id=#{orderId},
file_data=#{fileData},
gov_pay_status=#{govPayStatus},
update_by = #{updateBy},
update_time = #{updateTime},
create_by = #{createBy},
create_time = #{createTime},
del_flag = #{delFlag},
where id = #{id}