remove avatar
This commit is contained in:
@@ -88,17 +88,6 @@ public class ShopAuditInfoDO {
|
||||
@ApiModelProperty("数据类型 0-提交 1-审批")
|
||||
private Integer dataType;
|
||||
|
||||
@ApiModelProperty("头像")
|
||||
private String avatar;
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public void setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return id
|
||||
*/
|
||||
|
||||
@@ -100,15 +100,15 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
List<ShopAuditInfoDO> listByShopIdAndType = shopAuditInfoMapper.getListByShopIdAndType(shopId, AuditTypeEnum.LICENSE_APPROVAL.getCode());
|
||||
List<String> userIds = listByShopIdAndType.stream().map(ShopAuditInfoDO::getSubmittedUserId).collect(Collectors.toList());
|
||||
List<EnterpriseUserDO> userInfoByUserIds = new ArrayList<>();
|
||||
if (CollectionUtils.isNotEmpty(userIds)){
|
||||
userInfoByUserIds = userMapper.getUserInfoByUserIds(userIds);
|
||||
Map<String, String> userAvatarMap = userInfoByUserIds.stream()
|
||||
.filter(item -> StringUtil.isNotBlank(item.getUserId()) && StringUtil.isNotBlank(item.getAvatar()))
|
||||
.collect(Collectors.toMap(k -> k.getUserId(), v -> v.getAvatar()));
|
||||
listByShopIdAndType.stream().forEach( item -> {
|
||||
item.setAvatar(userAvatarMap.get(item.getSubmittedUserId()));
|
||||
});
|
||||
}
|
||||
// if (CollectionUtils.isNotEmpty(userIds)){
|
||||
// userInfoByUserIds = userMapper.getUserInfoByUserIds(userIds);
|
||||
// Map<String, String> userAvatarMap = userInfoByUserIds.stream()
|
||||
// .filter(item -> StringUtil.isNotBlank(item.getUserId()) && StringUtil.isNotBlank(item.getAvatar()))
|
||||
// .collect(Collectors.toMap(k -> k.getUserId(), v -> v.getAvatar()));
|
||||
// listByShopIdAndType.stream().forEach( item -> {
|
||||
// item.setAvatar(userAvatarMap.get(item.getSubmittedUserId()));
|
||||
// });
|
||||
// }
|
||||
submitLicenseResponse.setProcessRecords(listByShopIdAndType);
|
||||
return submitLicenseResponse;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user