|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.iformall.service.invest.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.iformall.domain.dto.InvestDemandDto; |
|
|
|
@@ -123,7 +124,7 @@ public class InvestBizServiceImpl implements InvestBizService { |
|
|
|
List<MallUserInfo> ownerInfo = null ; |
|
|
|
Map contentMap = JSON.parseObject(item.getContent(),Map.class); |
|
|
|
if (MapUtils.isNotEmpty(contentMap)) { |
|
|
|
String followMember = (String) contentMap.get(InvestFollowRecordEntity.KEY_MEMBER); |
|
|
|
Object followMember = contentMap.get(InvestFollowRecordEntity.KEY_MEMBER); |
|
|
|
ownerInfo = getMallUserInfos(followMember, usersMap); |
|
|
|
} |
|
|
|
return ownerInfo; |
|
|
|
@@ -230,11 +231,16 @@ public class InvestBizServiceImpl implements InvestBizService { |
|
|
|
return resultItemVo; |
|
|
|
} |
|
|
|
|
|
|
|
private List<MallUserInfo> getMallUserInfos(String userJson, Map<Long, MallUserInfo> usersMap) { |
|
|
|
private List<MallUserInfo> getMallUserInfos(Object userJson, Map<Long, MallUserInfo> usersMap) { |
|
|
|
List<MallUserInfo> ownerInfo = Lists.newArrayList(); |
|
|
|
List<Long> ownerList = JSON.parseArray(userJson, Long.class); |
|
|
|
JSONArray ownerList; |
|
|
|
if(userJson instanceof String) { |
|
|
|
ownerList = JSONArray.parseArray((String)userJson); |
|
|
|
} else { |
|
|
|
ownerList = (JSONArray) userJson; |
|
|
|
} |
|
|
|
if (CollectionUtils.isNotEmpty(ownerList)) { |
|
|
|
for (Long userId : ownerList) { |
|
|
|
for (Object userId : ownerList) { |
|
|
|
ownerInfo.add(usersMap.get(userId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|