update sb_personcertificate sp,sys_approval sa set sp.groupid=sa.groupid
where sa.businesstype='004' and sa.active=true and sp.active=TRUE
and sa.businessid=sp.id;