Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
c4a4d53d
Commit
c4a4d53d
authored
Apr 02, 2024
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务23724 :消防巡检列表API优化2
parent
af162784
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
IdxFeign.java
...java/com/yeejoin/amos/patrol/business/feign/IdxFeign.java
+3
-0
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/feign/IdxFeign.java
View file @
c4a4d53d
...
...
@@ -30,4 +30,7 @@ public interface IdxFeign {
@PostMapping
(
value
=
"/defect/check/list"
)
FeignClientResult
queryDefectByCodes
(
@RequestBody
List
<
String
>
codes
,
@RequestParam
(
value
=
"checkId"
)
String
checkId
);
@PostMapping
(
value
=
"/defect/check/listNew"
)
FeignClientResult
queryDefectByIdList
(
@RequestBody
List
<
String
>
checkIdList
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
c4a4d53d
...
...
@@ -190,11 +190,11 @@ public class CheckServiceImpl implements ICheckService {
return
new
PageImpl
<>(
content
,
param
,
total
);
}
content
=
checkMapper
.
getPeopleCheckPage
(
param
);
String
checkIds
=
String
.
join
(
","
,
content
.
stream
().
map
(
CheckInfoVo:
:
getId
).
collect
(
Collectors
.
toList
()
));
List
<
String
>
collect
=
content
.
stream
().
map
(
CheckInfoVo:
:
getId
).
collect
(
Collectors
.
toList
(
));
FeignClientResult
responseModel
=
new
FeignClientResult
();
List
<
Map
<
String
,
String
>>
result
=
new
ArrayList
();
try
{
responseModel
=
idxFeign
.
queryDefectBy
Codes
(
new
ArrayList
<>(),
checkIds
);
responseModel
=
idxFeign
.
queryDefectBy
IdList
(
collect
);
result
=
(
List
)
responseModel
.
getResult
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
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