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