select f_id, f_pid, f_feeid, f_model, f_sbu, f_number, f_unitprice, f_money, f_taxrate, f_tax, f_amount, f_status,f_billstatus, create_by, create_time, update_by, update_time, remarks from t_fee_invoice
    
    
    
    
        
    
        insert into t_fee_invoice
        
            f_id,
            f_pid,
            f_feeid,
            f_model,
            f_sbu,
            f_number,
            f_unitprice,
            f_money,
            f_taxrate,
            f_tax,
            f_amount,
            f_status,
            f_billstatus,
            create_by,
            create_time,
            update_by,
            update_time,
            remarks,
         
        
            #{fId},
            #{fPid},
            #{fFeeid},
            #{fModel},
            #{fSbu},
            #{fNumber},
            #{fUnitprice},
            #{fMoney},
            #{fTaxrate},
            #{fTax},
            #{fAmount},
            #{fStatus},
            #{fBillstatus},
            #{createBy},
            #{createTime},
            #{updateBy},
            #{updateTime},
            #{remarks},
         
    
    
        update t_fee_invoice
        
            f_pid = #{fPid},
            f_feeid = #{fFeeid},
            f_model = #{fModel},
            f_sbu = #{fSbu},
            f_number = #{fNumber},
            f_unitprice = #{fUnitprice},
            f_money = #{fMoney},
            f_taxrate = #{fTaxrate},
            f_tax = #{fTax},
            f_amount = #{fAmount},
            f_status = #{fStatus},
            f_billstatus = #{fBillstatus},
            create_by = #{createBy},
            create_time = #{createTime},
            update_by = #{updateBy},
            update_time = #{updateTime},
            remarks = #{remarks},
        
        where f_id = #{fId}
    
    
        delete from t_fee_invoice where f_id = #{fId}
    
    
        delete from t_fee_invoice where f_id in 
        
            #{fId}
        
    
    
        delete from t_fee_invoice where f_pid = #{fId}
    
    
        update
            t_fee_invoice
        set f_billstatus = #{fettle}
        where
            f_pid = #{fPid}