Commit 4a0151f6 by 宋珺琪

数据分析修改bug(湖南)

parent b83c8e44
......@@ -39,6 +39,7 @@ import java.net.URL;
import java.net.URLEncoder;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/**
* <p>
......@@ -359,7 +360,10 @@ public class HnTbStRygxController {
//查询出所有联系人的name
List<HnTbStRygx> nameList = hnKshService.getGroupNameByRwid(taskId);
List<HnTbStRygx> nameLists = hnKshService.getGroupNameByRwid(taskId);
Map<String, List<HnTbStRygx>> map = nameLists.stream().collect(Collectors.groupingBy(HnTbStRygx::getName));
List<List<HnTbStRygx>> nameList = map.values().stream()
.collect(Collectors.toList());
kshdata hnTbStRygxDTOS = packingData(rythInfoByIdList, nameList);
ArrayList<Object> re = new ArrayList<>();
re.add(hnTbStRygxDTOS);
......@@ -373,7 +377,7 @@ public class HnTbStRygxController {
* @param nameList 联系人的身份证集合
* @return
*/
public kshdata packingData(List<Map<String, Object>> data, List<HnTbStRygx> nameList) {
public kshdata packingData(List<Map<String, Object>> data, List<List<HnTbStRygx>> nameList) {
// ThKshresult thKshresult = new ThKshresult();
// Hnkshresult hnkshresult = new Hnkshresult();
kshdata kshdata = new kshdata();
......@@ -389,8 +393,8 @@ public class HnTbStRygxController {
for (int i = 0; i < nameList.size(); i++) {
HnTbStRygxDTO mergeDTOgjd = new HnTbStRygxDTO();
String name = nameList.get(i).getName();
String description = nameList.get(i).getDescription();
String name = nameList.get(i).get(i).getName();
String description = nameList.get(i).get(i).getDescription();
mergeDTOgjd.setId(name);
mergeDTOgjd.setLabel(description+"\n"+name);
Kshpropertice kshpropertice = new Kshpropertice();
......
......@@ -60,7 +60,7 @@
group by name
</select>
<select id="getGroupNameByRwid" resultType="com.founder.commonutils.model.newPublicEntity.hnkshEntity.HnTbStRygx">
select name,description from ksh_st_rygx where rwid = #{taskId} group by name
select name,description from ksh_st_rygx where rwid = #{taskId}
</select>
<select id="getBimgIsNullByTaskId" resultType="java.lang.String">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment