|
@@ -9,6 +9,7 @@ import com.huiju.estateagents.base.ResponseBean;
|
9
|
9
|
import io.swagger.annotations.ApiOperation;
|
10
|
10
|
import com.huiju.estateagents.common.JWTUtils;
|
11
|
11
|
import com.huiju.estateagents.common.StringUtils;
|
|
12
|
+import com.huiju.estateagents.entity.TaBuildingReport;
|
12
|
13
|
import com.huiju.estateagents.entity.TaChannel;
|
13
|
14
|
import com.huiju.estateagents.entity.TaPerson;
|
14
|
15
|
import com.huiju.estateagents.mapper.TaChannelMapper;
|
|
@@ -30,8 +31,11 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
30
|
31
|
import org.springframework.web.bind.annotation.RestController;
|
31
|
32
|
|
32
|
33
|
import javax.servlet.http.HttpServletRequest;
|
|
34
|
+
|
|
35
|
+import java.time.LocalDateTime;
|
33
|
36
|
import java.util.HashMap;
|
34
|
37
|
import java.util.List;
|
|
38
|
+import java.util.stream.Collectors;
|
35
|
39
|
|
36
|
40
|
|
37
|
41
|
|
|
@@ -82,6 +86,16 @@ public class TaChannelController extends BaseController {
|
82
|
86
|
|
83
|
87
|
IPage<TaChannel> pg = new Page<>(pageNum, pageSize);
|
84
|
88
|
IPage<TaChannel> result = taChannelMapper.pageTaChannel(pg,orgId,channelId);
|
|
89
|
+ List<TaChannel> recommendCount = taChannelMapper.recommendCount(orgId, channelId);
|
|
90
|
+
|
|
91
|
+ result.getRecords().stream().forEach(e -> {
|
|
92
|
+ for(TaChannel channel : recommendCount){
|
|
93
|
+ if (channel.getChannelId().equals(e.getChannelId())){
|
|
94
|
+ e.setRecommendCount(channel.getRecommendCount());
|
|
95
|
+ }
|
|
96
|
+ }
|
|
97
|
+ });
|
|
98
|
+
|
85
|
99
|
HashMap hashMap = new HashMap<>();
|
86
|
100
|
hashMap.put("result",result);
|
87
|
101
|
|