首页数据权限过滤

This commit is contained in:
2023-03-09 15:13:21 +08:00
parent 143172469e
commit e9ac526b69
4 changed files with 20 additions and 7 deletions

View File

@@ -545,8 +545,13 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
*/
@Override
public IndexGeneralSituationVO getGeneralSituation(IndexQueryDTO dto) {
//
return pileBasicInfoMapper.getGeneralSituation(dto);
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
if (authorizedMap == null) {
return new IndexGeneralSituationVO();
}
dto.setStationDeptIds(authorizedMap.getStationDeptIds());
dto.setMerchantDeptIds(authorizedMap.getMerchantDeptIds());
return pileBasicInfoMapper.getGeneralSituation(dto);
}
/**