feat:新增加盟商名称
This commit is contained in:
@@ -25,6 +25,8 @@ public class ShopPointBaseInfoVO {
|
||||
@ApiModelProperty("门店ID")
|
||||
private Long shopId;
|
||||
|
||||
private String partnerName;
|
||||
|
||||
@ApiModelProperty("门店名称")
|
||||
private String shopName;
|
||||
|
||||
@@ -55,12 +57,13 @@ public class ShopPointBaseInfoVO {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public static List<ShopPointBaseInfoVO> convertList(List<ShopPointDTO> lineList, Map<String, String> userNameMap, Map<Long, String> userPortraitMap, Map<Long, HyOpenAreaInfoDO> cityMap, Map<Long, Integer> recommendShopNumMap){
|
||||
public static List<ShopPointBaseInfoVO> convertList(Map<Long, String> partnerNameMap,List<ShopPointDTO> lineList, Map<String, String> userNameMap, Map<Long, String> userPortraitMap, Map<Long, HyOpenAreaInfoDO> cityMap, Map<Long, Integer> recommendShopNumMap){
|
||||
List<ShopPointBaseInfoVO> resultList = new ArrayList<>();
|
||||
for (ShopPointDTO shopPointDTO : lineList) {
|
||||
ShopPointBaseInfoVO shopPointBaseInfoVO = new ShopPointBaseInfoVO(shopPointDTO.getShopId(), shopPointDTO.getShopName(), shopPointDTO.getMobile());
|
||||
String username = userNameMap.get(shopPointDTO.getInvestmentManager());
|
||||
shopPointBaseInfoVO.setInvestmentManagerUsername(username);
|
||||
shopPointBaseInfoVO.setPartnerName(partnerNameMap.get(shopPointDTO.getLineId()));
|
||||
HyOpenAreaInfoDO areaInfo = cityMap.get(shopPointDTO.getWantShopAreaId());
|
||||
if(Objects.nonNull(areaInfo)){
|
||||
shopPointBaseInfoVO.setAreaName(areaInfo.getAreaName());
|
||||
|
||||
Reference in New Issue
Block a user