This commit is contained in:
zhangchenbiao
2024-05-08 11:50:17 +08:00
parent 2d6d9d03a5
commit b31c93fb96
4 changed files with 58 additions and 0 deletions

View File

@@ -124,6 +124,14 @@ public interface PointService {
*/
PageInfo<LinePointBaseInfoVO> getLinePage(PointLinePageRequest request);
/**
* 获取单个加盟商信息
* @param lineId
* @return
*/
LinePointBaseInfoVO getLineInfo(Long lineId);
/**
* 获取我的数据
* @param userId

View File

@@ -492,6 +492,22 @@ public class PointServiceImpl implements PointService {
return resultPage;
}
/**
* 获取单个加盟商信息
* @param lineId
* @return
*/
@Override
public LinePointBaseInfoVO getLineInfo(Long lineId){
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
Map<Long, Integer> recommendShopNumMap = pointRecommendDAO.getPushShopNumMap(Arrays.asList(lineId));
HyOpenAreaInfoDO cityArea = hyOpenAreaInfoDAO.selectById(lineInfo.getWantShopAreaId());
Map<Long, Integer> selectedShopNumMap = shopInfoDAO.getSelectedShopNumMap(Arrays.asList(lineId));
String userName = enterpriseUserDAO.getUserName(lineInfo.getInvestmentManager());
Map<Long, String> userPortraitMap = labelService.getUserPortraitMap(Arrays.asList(lineInfo.getUserPortrait()));
return LinePointBaseInfoVO.convert(lineInfo, userName, userPortraitMap, cityArea, recommendShopNumMap, selectedShopNumMap);
}
@Override
public PointHomePageDataVO getMyPointData(String userId) {
return pointInfoDAO.getMyPointData(userId);