select ID,
               InfoID,
               DonorNo,
               DonorName,
               create_by,
               create_time,
               update_by,
               update_time,
               UserNo,
               UserName,
               UnitName,
               UnitNo,
               UnitUserNo,
               Phone,
               AnnexBankCard,
               AnnexRegistForm,
               PretaxCost,
               TaxedCost,
               TotalCost,
               ProcurementCost,
               ExpertCost,
               EthicsCost,
               MedicalCost,
               FamilyCost,
               AftercareCost,
               AmountRequested,
               ApplyType,
               PrepaidAmount,
               InvoiceCount,
               AttachCount,
               ManagerNo,
               ManagerName,
               DeptmentNo,
               DeptmentName,
               OPOchecker,
               FinVicePresident,
               president,
               BusVicePresident,
               OfficeDirector,
               FinanceDirector,
               FinanceChecher,
               Remark,
               Isdistribute,
               RecordStatus,
               uploadflag,
               uploadtime,
               FlowLevel,
               oaid,
               oabdzt,
               filename,
               fileid,
               serfunid,
               zffs,
               riqi,
               bh,
               checkstatus,
               apply_time,
               performancetype
        from service_fund_shared
    
    
    
    
        UPDATE service_fund_shared
        SET del_flag = 1
        WHERE
        del_flag != 1
        and ID = #{fundId}
        and serfunid = #{serfunid}
    
    
        UPDATE service_fund_shared
        SET
        bh = #{bh},
        riqi = #{riqi},
        zffs = #{zffs},
        update_time = sysdate()
        WHERE
        del_flag != 1
        and ID = #{fundId}
        and serfunid = #{serfunid}