select order_id, order_code, title, images, user_id, doc_id, order_type, status, money, pay_money, create_time, finish_time, company_id, company_user_id from doc_order
and order_code = #{orderCode}
and title = #{title}
and images = #{images}
and user_id = #{userId}
and doc_id = #{docId}
and order_type = #{orderType}
and status = #{status}
and money = #{money}
and pay_money = #{payMoney}
and finish_time = #{finishTime}
and company_id = #{companyId}
and company_user_id = #{companyUserId}
where order_id = #{orderId}
insert into doc_order order_code, title, images, user_id, doc_id, order_type, status, money, pay_money, create_time, finish_time, company_id, company_user_id, #{orderCode}, #{title}, #{images}, #{userId}, #{docId}, #{orderType}, #{status}, #{money}, #{payMoney}, #{createTime}, #{finishTime}, #{companyId}, #{companyUserId},
update doc_order order_code = #{orderCode}, title = #{title}, images = #{images}, user_id = #{userId}, doc_id = #{docId}, order_type = #{orderType}, status = #{status}, money = #{money}, pay_money = #{payMoney}, create_time = #{createTime}, finish_time = #{finishTime}, company_id = #{companyId}, company_user_id = #{companyUserId}, where order_id = #{orderId}
delete from doc_order where order_id = #{orderId}
delete from doc_order where order_id in #{orderId}