Merge branch 'cc_20250627_fix' into 'master'
Cc 20250627 fix See merge request hangzhou/java/custom_zxjp!120
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());
|
||||||
@@ -753,7 +756,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
List<PlanLineDTO> lines = lineInfoDAO.getLines(lineIds);
|
List<PlanLineDTO> lines = lineInfoDAO.getLines(lineIds);
|
||||||
|
|
||||||
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());
|
||||||
|
List<String> investmentUserIds = shopInfoList.stream().map(ShopInfoDO::getInvestmentManager).collect(Collectors.toList());
|
||||||
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()));
|
||||||
//将shopInfoList 转为map
|
//将shopInfoList 转为map
|
||||||
@@ -766,7 +769,10 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
|
|
||||||
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, ShopStageRemarkInfoDO> remarkInfoMap = remarkInfoDOList.stream().collect(Collectors.toMap(ShopStageRemarkInfoDO::getShopId, Function.identity()));
|
Map<Long, ShopStageRemarkInfoDO> remarkInfoMap = remarkInfoDOList.stream().collect(Collectors.toMap(ShopStageRemarkInfoDO::getShopId, Function.identity()));
|
||||||
@@ -779,6 +785,7 @@ public class DeskServiceImpl implements DeskService {
|
|||||||
preparationCommonPendingVO.setStoreType(shopInfoDO.getStoreType());
|
preparationCommonPendingVO.setStoreType(shopInfoDO.getStoreType());
|
||||||
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
||||||
preparationCommonPendingVO.setShopAddress(shopInfoDO.getDetailAddress());
|
preparationCommonPendingVO.setShopAddress(shopInfoDO.getDetailAddress());
|
||||||
|
preparationCommonPendingVO.setInvestmentManager(userNameMap.get(shopInfoDO.getInvestmentManager()));
|
||||||
preparationCommonPendingVO.setSignType(signTypeMap.getOrDefault(x.getShopId(), new SignFranchiseDO()).getSignType());
|
preparationCommonPendingVO.setSignType(signTypeMap.getOrDefault(x.getShopId(), new SignFranchiseDO()).getSignType());
|
||||||
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
||||||
preparationCommonPendingVO.setLineId(shopInfoDO.getLineId());
|
preparationCommonPendingVO.setLineId(shopInfoDO.getLineId());
|
||||||
|
|||||||
@@ -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