意向区域
This commit is contained in:
@@ -94,7 +94,7 @@ public class HyOpenAreaInfoDAO {
|
|||||||
return Maps.newHashMap();
|
return Maps.newHashMap();
|
||||||
}
|
}
|
||||||
List<HyOpenAreaInfoDO> hyOpenAreaInfoDOS = hyOpenAreaInfoMapper.selectByIds(ids);
|
List<HyOpenAreaInfoDO> hyOpenAreaInfoDOS = hyOpenAreaInfoMapper.selectByIds(ids);
|
||||||
return ListUtils.emptyIfNull(hyOpenAreaInfoDOS).stream().collect(Collectors.toMap(k->String.valueOf(k.getId()), v->v.getAreaName()));
|
return ListUtils.emptyIfNull(hyOpenAreaInfoDOS).stream().collect(Collectors.toMap(k->String.valueOf(k.getId()), v->v.getAreaPath().replace("/"," ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -60,9 +60,13 @@ public class PublicSeaLineListVo {
|
|||||||
|
|
||||||
@ApiModelProperty("跟进次数")
|
@ApiModelProperty("跟进次数")
|
||||||
private Integer followCount;
|
private Integer followCount;
|
||||||
|
|
||||||
@ApiModelProperty("意向开店区域ID")
|
@ApiModelProperty("意向开店区域ID")
|
||||||
private String wantShopArea;
|
private String wantShopArea;
|
||||||
|
|
||||||
|
@ApiModelProperty("意向开店区域ID")
|
||||||
|
private String wantShopAreaName;
|
||||||
|
|
||||||
private String acceptAdjustType;
|
private String acceptAdjustType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -299,6 +299,8 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
List<LineCountDTO> followCountList = hyPartnerLineInfoDAO.getFollowCountList(partnerIdList);
|
List<LineCountDTO> followCountList = hyPartnerLineInfoDAO.getFollowCountList(partnerIdList);
|
||||||
Map<String, Integer> countMap = followCountList.stream().collect(Collectors.toMap(LineCountDTO::getPartnerId, LineCountDTO::getFollowCount));
|
Map<String, Integer> countMap = followCountList.stream().collect(Collectors.toMap(LineCountDTO::getPartnerId, LineCountDTO::getFollowCount));
|
||||||
|
|
||||||
|
List<Long> wantShopAreaList = list.stream().map(PublicSeaLineDTO::getWantShopArea).map(Long::parseLong).distinct().collect(Collectors.toList());
|
||||||
|
Map<String, String> wantShopAreaNameMap = hyOpenAreaInfoDAO.selectNameMapByIds(wantShopAreaList);
|
||||||
List<PublicSeaLineListVo> result = new ArrayList<>();
|
List<PublicSeaLineListVo> result = new ArrayList<>();
|
||||||
list.forEach(x->{
|
list.forEach(x->{
|
||||||
PublicSeaLineListVo publicSeaLineListVo = new PublicSeaLineListVo();
|
PublicSeaLineListVo publicSeaLineListVo = new PublicSeaLineListVo();
|
||||||
@@ -315,6 +317,7 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
|||||||
HyPartnerLineInfoDO hy = hyPartnerLineInfoDOMap.getOrDefault(x.getPartnerId(), new HyPartnerLineInfoDO());
|
HyPartnerLineInfoDO hy = hyPartnerLineInfoDOMap.getOrDefault(x.getPartnerId(), new HyPartnerLineInfoDO());
|
||||||
publicSeaLineListVo.setRejectPublicReason(hy.getRejectPublicReason());
|
publicSeaLineListVo.setRejectPublicReason(hy.getRejectPublicReason());
|
||||||
publicSeaLineListVo.setRejectRealReason(hy.getRejectRealReason());
|
publicSeaLineListVo.setRejectRealReason(hy.getRejectRealReason());
|
||||||
|
publicSeaLineListVo.setWantShopAreaName(wantShopAreaNameMap.get(x.getWantShopArea()));
|
||||||
String closeTime = DateUtil.format(hy.getCloseTime(), CoolDateUtils.DATE_FORMAT_SEC);
|
String closeTime = DateUtil.format(hy.getCloseTime(), CoolDateUtils.DATE_FORMAT_SEC);
|
||||||
publicSeaLineListVo.setLastCloseDate(closeTime);
|
publicSeaLineListVo.setLastCloseDate(closeTime);
|
||||||
publicSeaLineListVo.setLastInvestmentManager(nameMobileMap.get(hy.getInvestmentManager()));
|
publicSeaLineListVo.setLastInvestmentManager(nameMobileMap.get(hy.getInvestmentManager()));
|
||||||
|
|||||||
Reference in New Issue
Block a user