select order_id,doctor_remark,source,triage_user_id, user_coupon_id,dept_id,company_deduct_money,company_id,company_user_id,company_user_remark,is_send_sms,package_order_id,discount_money, order_sn, title, imgs, user_id, patient_id, order_type, money, pay_money, pay_type, is_pay, doctor_id, create_time, pay_time, status, start_time, finish_time, remark, is_ping, department_id, inquiry_type, inquiry_sub_type, patient_json, is_receive, trade_no, is_audit, audit_user_id, audit_time from fs_inquiry_order insert into fs_inquiry_order order_sn, title, imgs, user_id, patient_id, order_type, money, pay_money, pay_type, is_pay, doctor_id, create_time, pay_time, status, start_time, finish_time, remark, is_ping, department_id, inquiry_type, inquiry_sub_type, patient_json, is_receive, trade_no, is_audit, audit_user_id, audit_time, user_coupon_id, discount_money, package_order_id, company_id, company_user_id, company_deduct_money, dept_id, company_user_remark, is_send_sms, doctor_remark, source, triage_user_id, #{orderSn}, #{title}, #{imgs}, #{userId}, #{patientId}, #{orderType}, #{money}, #{payMoney}, #{payType}, #{isPay}, #{doctorId}, #{createTime}, #{payTime}, #{status}, #{startTime}, #{finishTime}, #{remark}, #{isPing}, #{departmentId}, #{inquiryType}, #{inquirySubType}, #{patientJson}, #{isReceive}, #{tradeNo}, #{isAudit}, #{auditUserId}, #{auditTime}, #{userCouponId}, #{discountMoney}, #{packageOrderId}, #{companyId}, #{companyUserId}, #{companyDeductMoney}, #{deptId}, #{companyUserRemark}, #{isSendSms}, #{doctorRemark}, #{source}, #{triageUserId}, update fs_inquiry_order order_sn = #{orderSn}, title = #{title}, imgs = #{imgs}, user_id = #{userId}, patient_id = #{patientId}, order_type = #{orderType}, money = #{money}, pay_money = #{payMoney}, pay_type = #{payType}, is_pay = #{isPay}, doctor_id = #{doctorId}, create_time = #{createTime}, pay_time = #{payTime}, status = #{status}, start_time = #{startTime}, finish_time = #{finishTime}, remark = #{remark}, is_ping = #{isPing}, department_id = #{departmentId}, inquiry_type = #{inquiryType}, inquiry_sub_type = #{inquirySubType}, patient_json = #{patientJson}, is_receive = #{isReceive}, trade_no = #{tradeNo}, is_audit = #{isAudit}, audit_user_id = #{auditUserId}, audit_time = #{auditTime}, user_coupon_id = #{userCouponId}, discount_money = #{discountMoney}, package_order_id = #{packageOrderId}, company_id = #{companyId}, company_user_id = #{companyUserId}, company_deduct_money = #{companyDeductMoney}, dept_id = #{deptId}, company_user_remark = #{companyUserRemark}, is_send_sms = #{isSendSms}, doctor_remark = #{doctorRemark}, source = #{source}, triage_user_id = #{triageUserId}, where order_id = #{orderId} update fs_inquiry_order set status = -1 where order_id = #{orderId} delete from fs_inquiry_order where order_id = #{orderId} delete from fs_inquiry_order where order_id in #{orderId}