// === EIP4 P4 脚本迁移产出 === // template_id : 517aa7b0-36db-42c8-8fb4-21531a24400e // template_name: 数据过滤-角色视图 // seq : 1 // label : NO_S3 // 处置 : 无 S3 模式,原样进 P4 def operatorRole = getFieldValue("OPERATORROLE"); def userId = getFieldValue("USERID"); def list1 = []; def sql = "select usergroupid as USERGROUPID,null as USERGROUPID_DISPLAY__ from VIEW_ROLE_USERGROUP where userid = '" + userId + "' and roleid = '" + operatorRole + "'"; def list = GetServicesFunction.listSelectResultBySql([:],"VIEW_ROLE_USERGROUP",sql,["USERGROUPID"]); if(list != null && list.size() > 0){ list.each{ def groupId = it?.get_Value("USERGROUPID"); list1.add(groupId); } } bindField("USERGROUPID",list1);