| | |
| | | */ |
| | | private FieldSetEntity recursionRole(String directory_uuid){ |
| | | FieldSetEntity org = baseDao.getFieldSetByFilter(CmnConst.PRODUCT_OA_DIRECTORY_RIGHTS, "directory_uuid=?", new String[]{directory_uuid}, false); |
| | | if (FieldSetEntity.isEmpty(org)){ |
| | | if (FieldSetEntity.isEmpty(org)&&!StringUtils.isEmpty(directory_uuid)){ |
| | | FieldSetEntity directoryFs = baseDao.getFieldSet(CmnConst.PRODUCT_OA_DIRECTORY, directory_uuid,false); |
| | | FieldSetEntity parentFs = baseDao.getFieldSetByFilter(CmnConst.PRODUCT_OA_DIRECTORY, "tricode=?",new String[]{directoryFs.getString("tricode_parent")},false); |
| | | org=recursionRole(parentFs.getUUID()); |
| | |
| | | sb.append(" JOIN product_sys_staffs s "); |
| | | sb.append(" on t.created_by=s.user_id"); |
| | | sb.append(" group by t.file_name,t.uuid,s.show_name,t.created_utc_datetime,t.attachment_size"); |
| | | sb.append(" )b order by b.applyCount asc"); |
| | | sb.append(" )b order by b.applyCount DESC"); |
| | | DataTableEntity dataTableEntity = baseDao.listTable(sb.toString(), param.toArray()); |
| | | return dataTableEntity; |
| | | } |
| | |
| | | sb.append(" GROUP BY w.borrower,s.show_name"); |
| | | sb.append(" )a )b"); |
| | | sb.append(" on a.borrower=b.borrower "); |
| | | sb.append(" order by a.applayCount,b.applayFileCount asc"); |
| | | sb.append(" order by a.applayCount,b.applayFileCount DESC"); |
| | | DataTableEntity dataTableEntity = baseDao.listTable(sb.toString(), param.toArray()); |
| | | return dataTableEntity; |
| | | } |