Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-region-outline
Project
Project
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
cfld-backend
cfld-region-outline
Commits
0a31652a
Commit
0a31652a
authored
Nov 30, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
园区载体信息 类型返回
parent
a32f0891
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ParkInfoAllVO.java
src/main/java/com/lyy/admin/VO/ParkInfoAllVO.java
+1
-0
ParkInfoServiceImpl.java
.../lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
+5
-3
No files found.
src/main/java/com/lyy/admin/VO/ParkInfoAllVO.java
View file @
0a31652a
package
com
.
lyy
.
admin
.
VO
;
import
cn.hutool.json.JSONArray
;
import
com.lyy.admin.domain.carrierinfo.CarrierInfo
;
import
com.lyy.admin.domain.parkinfo.ParkCarrierInfo
;
import
com.lyy.admin.domain.parkinfo.ParkInvestmentDirectionInfo
;
import
com.lyy.admin.domain.parkinfo.ParkSewageInfo
;
...
...
src/main/java/com/lyy/admin/service/parkinfo/impl/ParkInfoServiceImpl.java
View file @
0a31652a
...
...
@@ -326,9 +326,11 @@ public class ParkInfoServiceImpl extends ServiceImpl<ParkInfoMapper, ParkInfo> i
LambdaQueryWrapper
<
CarrierInfo
>
CIQuery
=
new
LambdaQueryWrapper
<>();
CIQuery
.
eq
(
CarrierInfo:
:
getParkId
,
id
);
List
<
CarrierInfo
>
list
=
carrierInfoService
.
list
(
CIQuery
);
List
<
CarrierInfoTypeListVO
>
carrierInfoVOS
=
Convert
.
toList
(
CarrierInfoTypeListVO
.
class
,
list
);
List
<
CarrierInfoTypeListVO
>
collect
=
carrierInfoVOS
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
parkInfoAllVO
.
setCarrierInfoVO
(
collect
);
List
<
CarrierInfo
>
collect
=
list
.
stream
().
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparing
(
CarrierInfo:
:
getType
))),
ArrayList:
:
new
));
List
<
CarrierInfoTypeListVO
>
carrierInfoVOS
=
Convert
.
toList
(
CarrierInfoTypeListVO
.
class
,
collect
);
parkInfoAllVO
.
setCarrierInfoVO
(
carrierInfoVOS
);
//获取污水处理能力信息
QueryWrapper
<
ParkSewageInfo
>
PSIWrapper
=
new
QueryWrapper
<>();
PSIWrapper
.
eq
(
"park_id"
,
id
);
...
...
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