| | |
| | | import org.sxkj.system.cache.SysCache; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | queryWrapper.like(GdOperationalRevenue::getNickName, nickName); |
| | | } |
| | | // 创建部门 |
| | | List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | queryWrapper.in(GdOperationalRevenue::getCreateDept, deptList); |
| | | if (!AuthUtil.isAdministrator()) { |
| | | List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | // 将Long类型的部门ID转换为String类型 |
| | | List<String> deptIdStrList = new ArrayList<>(); |
| | | for (Long deptId : deptList) { |
| | | deptIdStrList.add(String.valueOf(deptId)); |
| | | } |
| | | queryWrapper.in(GdOperationalRevenue::getCreateDept, deptIdStrList); |
| | | } |
| | | // 按创建时间倒序 |
| | | queryWrapper.orderByDesc(GdOperationalRevenue::getCreateTime); |
| | | |