fix 待办督导取错,订货处理人错误
This commit is contained in:
@@ -667,12 +667,15 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
Map<Long, PlanLineDTO> lineMap = lines.stream().collect(Collectors.toMap(PlanLineDTO::getLineId, line -> line));
|
Map<Long, PlanLineDTO> lineMap = lines.stream().collect(Collectors.toMap(PlanLineDTO::getLineId, line -> line));
|
||||||
|
|
||||||
List<Long> pointId = shopInfoList.stream().filter(x -> Objects.nonNull(x.getPointId())).map(ShopInfoDO::getPointId).collect(Collectors.toList());
|
List<Long> pointId = shopInfoList.stream().filter(x -> Objects.nonNull(x.getPointId())).map(ShopInfoDO::getPointId).collect(Collectors.toList());
|
||||||
|
Set<String> investmentUserIds = shopInfoList.stream().map(ShopInfoDO::getInvestmentManager).collect(Collectors.toSet());
|
||||||
List<PointInfoDO> pointListByIds = pointInfoDAO.getPointListByIds(pointId);
|
List<PointInfoDO> pointListByIds = pointInfoDAO.getPointListByIds(pointId);
|
||||||
Map<Long, PointInfoDO> pointMap = pointListByIds.stream().collect(Collectors.toMap(PointInfoDO::getId, Function.identity()));
|
Map<Long, PointInfoDO> pointMap = pointListByIds.stream().collect(Collectors.toMap(PointInfoDO::getId, Function.identity()));
|
||||||
List<Long> regionIds = shopInfoList.stream().map(ShopInfoDO::getRegionId).distinct().collect(Collectors.toList());
|
List<Long> regionIds = shopInfoList.stream().map(ShopInfoDO::getRegionId).distinct().collect(Collectors.toList());
|
||||||
List<String> developmentManagers = shopInfoList.stream().filter(x -> StringUtil.isNotEmpty(x.getShopManagerUserId())).map(ShopInfoDO::getShopManagerUserId).distinct().collect(Collectors.toList());
|
List<String> developmentManagers = shopInfoList.stream().filter(x -> StringUtil.isNotEmpty(x.getShopManagerUserId())).map(ShopInfoDO::getShopManagerUserId).distinct().collect(Collectors.toList());
|
||||||
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(developmentManagers);
|
Set< String> userIds=new HashSet<>();
|
||||||
|
userIds.addAll(investmentUserIds);
|
||||||
|
userIds.addAll(developmentManagers);
|
||||||
|
Map<String, String> userNameMap = enterpriseUserDAO.getUserNameMap(new ArrayList<>(userIds));
|
||||||
Map<Long, String> regionNameMap = regionService.getBelongWarRegionNameMap(regionIds);
|
Map<Long, String> regionNameMap = regionService.getBelongWarRegionNameMap(regionIds);
|
||||||
List<ShopStageRemarkInfoDO> remarkInfoDOList = shopStageRemarkInfoDAO.getByShopIdsAndStage(shopIds, subStageStatusList);
|
List<ShopStageRemarkInfoDO> remarkInfoDOList = shopStageRemarkInfoDAO.getByShopIdsAndStage(shopIds, subStageStatusList);
|
||||||
Map<Long, List<ShopStageRemarkInfoDO>> remarkInfoMap = remarkInfoDOList.stream().collect(Collectors.groupingBy(ShopStageRemarkInfoDO::getShopId));
|
Map<Long, List<ShopStageRemarkInfoDO>> remarkInfoMap = remarkInfoDOList.stream().collect(Collectors.groupingBy(ShopStageRemarkInfoDO::getShopId));
|
||||||
@@ -702,7 +705,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
}
|
}
|
||||||
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
||||||
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
||||||
preparationCommonPendingVO.setInvestmentManager(lineMap.getOrDefault(x.getLineId(), new PlanLineDTO()).getInvestmentManagerName());
|
preparationCommonPendingVO.setInvestmentManager(userNameMap.getOrDefault(shopInfoDO.getInvestmentManager(),""));
|
||||||
preparationCommonPendingVO.setStage(x.getShopStage());
|
preparationCommonPendingVO.setStage(x.getShopStage());
|
||||||
preparationCommonPendingVO.setSubStage(x.getShopSubStage());
|
preparationCommonPendingVO.setSubStage(x.getShopSubStage());
|
||||||
preparationCommonPendingVO.setSubStageStatus(x.getShopSubStageStatus());
|
preparationCommonPendingVO.setSubStageStatus(x.getShopSubStageStatus());
|
||||||
|
|||||||
@@ -834,8 +834,9 @@ public class ShopServiceImpl implements ShopService {
|
|||||||
return getUsersByRoleAndRegion(UserRoleEnum.PRESIDENT, shopInfo.getRegionId());
|
return getUsersByRoleAndRegion(UserRoleEnum.PRESIDENT, shopInfo.getRegionId());
|
||||||
|
|
||||||
case SHOP_SUB_STAGE_STATUS_160:
|
case SHOP_SUB_STAGE_STATUS_160:
|
||||||
case SHOP_SUB_STAGE_STATUS_170:
|
|
||||||
return getUsersByRoleAndRegion(UserRoleEnum.HUO_MA_EMPLOYEE, shopInfo.getRegionId());
|
return getUsersByRoleAndRegion(UserRoleEnum.HUO_MA_EMPLOYEE, shopInfo.getRegionId());
|
||||||
|
case SHOP_SUB_STAGE_STATUS_170:
|
||||||
|
return getUsersByRoleAndRegion(UserRoleEnum.IT_EMPLOYEE, shopInfo.getRegionId());
|
||||||
|
|
||||||
case SHOP_SUB_STAGE_STATUS_230:
|
case SHOP_SUB_STAGE_STATUS_230:
|
||||||
return getUsersByRoleAndRegion(UserRoleEnum.XIN_FA_SYS_CUSTOMER, shopInfo.getRegionId());
|
return getUsersByRoleAndRegion(UserRoleEnum.XIN_FA_SYS_CUSTOMER, shopInfo.getRegionId());
|
||||||
|
|||||||
Reference in New Issue
Block a user