SELECT id, order_master_id, order_master_code, total_money, discount_money, pay_money, pay_type, pay_status, pay_time, create_by, create_time, remark FROM financial_master DELETE FROM financial_master WHERE id IN #{financialMasterId} UPDATE financial_master order_master_id = #{orderMasterId}, order_master_code = #{orderMasterCode}, total_money = #{totalMoney}, discount_money = #{discountMoney}, pay_type = #{payType}, pay_status = #{payStatus}, pay_time = #{payTime}, pay_money = #{payMoney}, update_by = #{updateBy}, update_time = SYSDATE() WHERE id = #{id} INSERT INTO financial_master( order_master_id, order_master_code, total_money, discount_money, pay_type, pay_status, pay_time, pay_money, create_by, create_time )VALUES( #{orderMasterId}, #{orderMasterCode}, #{totalMoney}, #{discountMoney}, #{payType}, #{payStatus}, #{payTime}, #{payMoney}, #{createBy}, SYSDATE() )