如题,存储过程数据集如何实现动态权限控制,如数据集的参数的下面参数如何在存储过程实现${if(fine_role="superusers","",if(sql("dcresult","select count(fr_roles_id) from dim_user_roles ro where ro.fr_roles_id=1 and ro.user_fr_name='"+fine_username+"'",1,1)<>0," and (t.dept_id in( select d1.dept_id from dim_dept d1 where d1.dept_id in( select du.pk_dept from DIM_PERMISSION_USER_DEPT du where du.user_code='"+fine_username+"')) or t.employees_id=(select ps.pk_psndoc from dim_psn ps where ps.user_code='"+fine_username+"'))"," and t.employees_id in (select ro.employ_id from dim_user_roles ro where ro.user_fr_name='"+fine_username+"')"))}${if(len(startDate)=0,"", " and t.cal_bill_date>='"+startDate+"'")}${if(len(endDate)=0,"", " and t.cal_bill_date <='"+endDate+"'")}