|
|
@ -44,10 +44,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* 政府端角色表 |
|
|
@ -198,9 +195,19 @@ public class GovStaffRoleServiceImpl extends BaseServiceImpl<GovStaffRoleDao, Go |
|
|
|
re.setRoleKey(cu.getRoleKey()); |
|
|
|
re.setRoleName(cu.getRoleName()); |
|
|
|
re.setDescription(cu.getDescription()); |
|
|
|
re.setSort(cu.getSort()); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
//4.按客户权限顺序排序
|
|
|
|
if(cuList.size()>NumConstant.ZERO){ |
|
|
|
Collections.sort(resultList, new Comparator<GovStaffRoleResultDTO>() { |
|
|
|
@Override |
|
|
|
public int compare(GovStaffRoleResultDTO o1, GovStaffRoleResultDTO o2) { |
|
|
|
return o1.getSort().compareTo(o2.getSort()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
return resultList; |
|
|
|
} |
|
|
|
|
|
|
|