Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
4a0151f6
Commit
4a0151f6
authored
Oct 27, 2022
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据分析修改bug(湖南)
parent
b83c8e44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
service/publicapi/src/main/java/com/founder/publicapi/controller/hnksh/HnTbStRygxController.java
+8
-4
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/HnTbStRygxMapper.xml
+1
-1
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/hnksh/HnTbStRygxController.java
View file @
4a0151f6
...
@@ -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
).
get
Name
();
String
description
=
nameList
.
get
(
i
).
getDescription
();
String
description
=
nameList
.
get
(
i
).
get
(
i
).
get
Description
();
mergeDTOgjd
.
setId
(
name
);
mergeDTOgjd
.
setId
(
name
);
mergeDTOgjd
.
setLabel
(
description
+
"\n"
+
name
);
mergeDTOgjd
.
setLabel
(
description
+
"\n"
+
name
);
Kshpropertice
kshpropertice
=
new
Kshpropertice
();
Kshpropertice
kshpropertice
=
new
Kshpropertice
();
...
...
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/HnTbStRygxMapper.xml
View file @
4a0151f6
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment