Commit fbf2cff756d93db51fa301016433dc223d03cd5f
1 parent
f545c2ff
还原代码
Showing
2 changed files
with
2 additions
and
2 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/homepage/HomepageSummaryServiceImpl.java
| ... | ... | @@ -297,7 +297,7 @@ public class HomepageSummaryServiceImpl implements HomepageSummaryService{ |
| 297 | 297 | if ("1".equals(req.getQueryType())) { |
| 298 | 298 | // 全域督察员查询自己发起的工单 |
| 299 | 299 | List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY); |
| 300 | - if (CollectionUtils.isNotEmpty(userIds) && !userIds.contains(getLoginUserId())) { | |
| 300 | + if (!userIds.contains(getLoginUserId())) { | |
| 301 | 301 | userId = getLoginUserId(); |
| 302 | 302 | } |
| 303 | 303 | } | ... | ... |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/maininfo/MainInfoServiceImpl.java
| ... | ... | @@ -118,7 +118,7 @@ public class MainInfoServiceImpl implements MainInfoService { |
| 118 | 118 | if ("1".equals(pageReqVO.getQueryType())) { |
| 119 | 119 | //全域督察员查询自己发起的工单 |
| 120 | 120 | List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY); |
| 121 | - if (CollectionUtils.isNotEmpty(userIds) && !userIds.contains(getLoginUserId())) { | |
| 121 | + if (userIds.contains(getLoginUserId())) { | |
| 122 | 122 | pageReqVO.setUserId(getLoginUserId()); |
| 123 | 123 | pageReqVO.setWorkerCompanyId(null); |
| 124 | 124 | } | ... | ... |