Commit 4a0151f6 by 宋珺琪

数据分析修改bug(湖南)

parent b83c8e44
...@@ -39,6 +39,7 @@ import java.net.URL; ...@@ -39,6 +39,7 @@ import java.net.URL;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
/** /**
* <p> * <p>
...@@ -359,7 +360,10 @@ public class HnTbStRygxController { ...@@ -359,7 +360,10 @@ public class HnTbStRygxController {
//查询出所有联系人的name //查询出所有联系人的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); kshdata hnTbStRygxDTOS = packingData(rythInfoByIdList, nameList);
ArrayList<Object> re = new ArrayList<>(); ArrayList<Object> re = new ArrayList<>();
re.add(hnTbStRygxDTOS); re.add(hnTbStRygxDTOS);
...@@ -373,7 +377,7 @@ public class HnTbStRygxController { ...@@ -373,7 +377,7 @@ public class HnTbStRygxController {
* @param nameList 联系人的身份证集合 * @param nameList 联系人的身份证集合
* @return * @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(); // ThKshresult thKshresult = new ThKshresult();
// Hnkshresult hnkshresult = new Hnkshresult(); // Hnkshresult hnkshresult = new Hnkshresult();
kshdata kshdata = new kshdata(); kshdata kshdata = new kshdata();
...@@ -389,8 +393,8 @@ public class HnTbStRygxController { ...@@ -389,8 +393,8 @@ public class HnTbStRygxController {
for (int i = 0; i < nameList.size(); i++) { for (int i = 0; i < nameList.size(); i++) {
HnTbStRygxDTO mergeDTOgjd = new HnTbStRygxDTO(); HnTbStRygxDTO mergeDTOgjd = new HnTbStRygxDTO();
String name = nameList.get(i).getName(); String name = nameList.get(i).get(i).getName();
String description = nameList.get(i).getDescription(); String description = nameList.get(i).get(i).getDescription();
mergeDTOgjd.setId(name); mergeDTOgjd.setId(name);
mergeDTOgjd.setLabel(description+"\n"+name); mergeDTOgjd.setLabel(description+"\n"+name);
Kshpropertice kshpropertice = new Kshpropertice(); Kshpropertice kshpropertice = new Kshpropertice();
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
group by name group by name
</select> </select>
<select id="getGroupNameByRwid" resultType="com.founder.commonutils.model.newPublicEntity.hnkshEntity.HnTbStRygx"> <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>
<select id="getBimgIsNullByTaskId" resultType="java.lang.String"> <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