avatar
This commit is contained in:
@@ -22,6 +22,7 @@ import com.cool.store.response.LicenseListResponse;
|
||||
import com.cool.store.response.SubmitLicenseResponse;
|
||||
import com.cool.store.service.ApplyLicenseService;
|
||||
import com.cool.store.service.RegionService;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import com.cool.store.utils.poi.constant.Constants;
|
||||
import com.cool.store.vo.OpenAcceptanceInfoListVO;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
@@ -98,11 +99,16 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
SubmitLicenseResponse submitLicenseResponse = SubmitLicenseResponse.from(result);
|
||||
List<ShopAuditInfoDO> listByShopIdAndType = shopAuditInfoMapper.getListByShopIdAndType(shopId, AuditTypeEnum.LICENSE_APPROVAL.getCode());
|
||||
List<String> userIds = listByShopIdAndType.stream().map(ShopAuditInfoDO::getSubmittedUserId).collect(Collectors.toList());
|
||||
List<EnterpriseUserDO> userInfoByUserIds = userMapper.getUserInfoByUserIds(userIds);
|
||||
Map<String, String> userAvatarMap = userInfoByUserIds.stream().collect(Collectors.toMap(k -> k.getUserId(), v -> v.getAvatar()));
|
||||
listByShopIdAndType.stream().forEach( item -> {
|
||||
item.setAvatar(userAvatarMap.get(item.getSubmittedUserId()));
|
||||
});
|
||||
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()));
|
||||
});
|
||||
}
|
||||
submitLicenseResponse.setProcessRecords(listByShopIdAndType);
|
||||
return submitLicenseResponse;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,7 @@ public class SignValidateFilter implements Filter {
|
||||
"/**/webjars/**",
|
||||
"/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery",
|
||||
"/xfsg/*/api/audit/result",
|
||||
"/xfsg/mini/line/getRegionPayPic",
|
||||
"/xfsg/mini/**"
|
||||
"/xfsg/mini/line/getRegionPayPic"
|
||||
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user