fix 待办督导取错,订货处理人错误
This commit is contained in:
@@ -756,7 +756,7 @@ public class DeskServiceImpl implements DeskService {
|
||||
List<PlanLineDTO> lines = lineInfoDAO.getLines(lineIds);
|
||||
|
||||
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);
|
||||
Map<Long, PointInfoDO> pointMap = pointListByIds.stream().collect(Collectors.toMap(PointInfoDO::getId, Function.identity()));
|
||||
//将shopInfoList 转为map
|
||||
@@ -769,7 +769,10 @@ public class DeskServiceImpl implements DeskService {
|
||||
|
||||
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());
|
||||
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);
|
||||
List<ShopStageRemarkInfoDO> remarkInfoDOList = shopStageRemarkInfoDAO.getByShopIdsAndStage(shopIds, subStageStatusList);
|
||||
Map<Long, ShopStageRemarkInfoDO> remarkInfoMap = remarkInfoDOList.stream().collect(Collectors.toMap(ShopStageRemarkInfoDO::getShopId, Function.identity()));
|
||||
@@ -782,6 +785,7 @@ public class DeskServiceImpl implements DeskService {
|
||||
preparationCommonPendingVO.setStoreType(shopInfoDO.getStoreType());
|
||||
preparationCommonPendingVO.setJoinMode(shopInfoDO.getJoinMode());
|
||||
preparationCommonPendingVO.setShopAddress(shopInfoDO.getDetailAddress());
|
||||
preparationCommonPendingVO.setInvestmentManager(userNameMap.get(shopInfoDO.getInvestmentManager()));
|
||||
preparationCommonPendingVO.setSignType(signTypeMap.getOrDefault(x.getShopId(), new SignFranchiseDO()).getSignType());
|
||||
preparationCommonPendingVO.setShopCode(shopInfoDO.getShopCode());
|
||||
preparationCommonPendingVO.setLineId(shopInfoDO.getLineId());
|
||||
|
||||
Reference in New Issue
Block a user