Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
cf8ab579
Commit
cf8ab579
authored
Dec 26, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加动态列表查询接口
parent
81fe3dd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
...m/mortals/xhx/module/app/service/impl/AppServiceImpl.java
+17
-0
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
...in/java/com/mortals/xhx/module/app/web/AppController.java
+3
-0
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
...c/test/java/com/mortals/httpclient/app/AppController.http
+2
-3
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppServiceImpl.java
View file @
cf8ab579
...
...
@@ -64,6 +64,23 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
@Override
protected
void
findAfter
(
AppEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
AppEntity
>
list
)
throws
AppException
{
//排序
if
(!
ObjectUtils
.
isEmpty
(
params
.
getIdList
())){
//根据idList进行排序
List
<
AppEntity
>
appEntities
=
new
ArrayList
<>();
for
(
Long
appId
:
params
.
getIdList
())
{
for
(
AppEntity
app
:
list
)
{
if
(
appId
.
equals
(
app
.
getId
())){
appEntities
.
add
(
app
);
continue
;
}
}
}
if
(!
ObjectUtils
.
isEmpty
(
appEntities
)){
list
=
appEntities
;
}
}
//统计站点
list
.
forEach
(
item
->
{
List
<
AppEntity
>
appEntityList
=
this
.
find
(
new
AppQuery
().
appCode
(
item
.
getAppCode
()),
context
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
View file @
cf8ab579
...
...
@@ -56,6 +56,9 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
super
.
init
(
model
,
context
);
}
@Override
protected
int
infoAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
AppEntity
entity
,
Context
context
)
throws
AppException
{
List
<
AppEntity
>
appEntityList
=
this
.
service
.
find
(
new
AppQuery
().
appCode
(
entity
.
getAppCode
()),
context
);
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
View file @
cf8ab579
...
...
@@ -19,10 +19,9 @@ Authorization: {{authToken}}
Content-Type: application/json
{
"siteId":3,
"type":1,
"idList":[22,19,20],
"page":1,
"size":
10
"size":
-1
}
...
...
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