标签MAP
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.dto.partner;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/8/14 17:08
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class UserPortraitDTO {
|
||||
|
||||
private Long userPortraitId;
|
||||
|
||||
private String userPortraitName;
|
||||
|
||||
public UserPortraitDTO(Long userPortraitId, String userPortraitName) {
|
||||
this.userPortraitId = userPortraitId;
|
||||
this.userPortraitName = userPortraitName;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.vo;
|
||||
|
||||
import com.cool.store.dto.partner.UserPortraitDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -49,7 +50,7 @@ public class PartnerLineInfoAndBaseInfoVO {
|
||||
private String investmentManagerPhone;
|
||||
|
||||
@ApiModelProperty("用户画像")
|
||||
private List<String> userPortrait;
|
||||
private List<UserPortraitDTO> userPortrait;
|
||||
|
||||
@ApiModelProperty("线索状态")
|
||||
private Integer lineStatus;
|
||||
|
||||
@@ -113,9 +113,11 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
|
||||
String userPortrait = partnerLineInfoAndBaseInfoDTO.getUserPortrait();
|
||||
if (StringUtils.isNotEmpty(userPortrait)){
|
||||
Map<Long, String> userPortraitMap = labelService.getUserPortraitMap(Arrays.asList(userPortrait));
|
||||
List<String> userPortraitList = userPortraitMap.values().stream()
|
||||
|
||||
List<UserPortraitDTO> userPortraitDTOS = userPortraitMap.entrySet().stream()
|
||||
.map(entry -> new UserPortraitDTO(entry.getKey(), entry.getValue()))
|
||||
.collect(Collectors.toList());
|
||||
partnerLineInfoAndBaseInfoVO.setUserPortrait(userPortraitList);
|
||||
partnerLineInfoAndBaseInfoVO.setUserPortrait(userPortraitDTOS);
|
||||
}
|
||||
|
||||
List<String> userIds = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user