统计报表接口,数据梳理接口
This commit is contained in:
@@ -377,24 +377,23 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
|
||||
@Override
|
||||
public PageInfo<fitmentCheckVO> getFitmentAcceptanceList(AcceptanceListRequest request, LoginUserInfo user) {
|
||||
// List<Long> regions = new ArrayList<>();
|
||||
// if (!sysRoleService.checkIsAdmin(user.getUserId())) {
|
||||
// List<String> authRegionIds = userAuthMappingService.getAuthRegionIdAndSubRegionIdByUserId(user.getUserId());
|
||||
// for (String authRegionId : authRegionIds) {
|
||||
// regions.add(Long.parseLong(authRegionId));
|
||||
// }
|
||||
// if (regions.isEmpty()) {
|
||||
// log.info("该用户下权限没有管理区域");
|
||||
// return new PageInfo<>();
|
||||
// }
|
||||
// }
|
||||
//判断是否是管理员
|
||||
Boolean isAdmin = sysRoleService.checkIsAdmin(user.getUserId());
|
||||
List<Long> regions = new ArrayList<>();
|
||||
if (!sysRoleService.checkIsAdmin(user.getUserId())) {
|
||||
List<String> authRegionIds = userAuthMappingService.getAuthRegionIdAndSubRegionIdByUserId(user.getUserId());
|
||||
for (String authRegionId : authRegionIds) {
|
||||
regions.add(Long.parseLong(authRegionId));
|
||||
}
|
||||
if (regions.isEmpty()) {
|
||||
log.info("该用户下权限没有管理区域");
|
||||
return new PageInfo<>();
|
||||
}
|
||||
}
|
||||
// //判断是否是管理员
|
||||
// Boolean isAdmin = sysRoleService.checkIsAdmin(user.getUserId());
|
||||
PageHelper.startPage(request.getPageNum(), request.getPageSize());
|
||||
List<fitmentCheckVO> fitmentCheckVOList = new ArrayList<>();
|
||||
//shopId,lineid,regionid,shopname,storenum,
|
||||
//督导查询是自己的
|
||||
List<ShopInfoDO> shopInfoDOS = shopInfoMapper.selectShopListByUser(isAdmin?null:user.getUserId(), ShopSubStageEnum.SHOP_STAGE_12.getShopSubStage(), request.getSubStageStatus(), null);
|
||||
List<ShopInfoDO> shopInfoDOS = shopInfoMapper.selectShopListByRegionId(regions, ShopSubStageEnum.SHOP_STAGE_12.getShopSubStage(), request.getSubStageStatus(), null);
|
||||
PageInfo pageInfo = new PageInfo<>(shopInfoDOS);
|
||||
if (shopInfoDOS.isEmpty()) {
|
||||
log.info("该工程部监理下门店为空");
|
||||
|
||||
Reference in New Issue
Block a user