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
9e30491a
Commit
9e30491a
authored
Oct 15, 2022
by
srx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目根据名称,建设单位筛选
parent
4678325d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+8
-4
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+2
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
9e30491a
...
@@ -115,13 +115,17 @@ public class ProjectController extends BaseController {
...
@@ -115,13 +115,17 @@ public class ProjectController extends BaseController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"项目信息表分页查询"
,
notes
=
"项目信息表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"项目信息表分页查询"
,
notes
=
"项目信息表分页查询"
)
public
ResponseModel
<
Page
<
ProjectDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
ProjectDto
>>
queryForPage
(
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
,
@RequestParam
(
value
=
"constructionUnit"
,
required
=
false
)
String
constructionUnit
)
{
Page
<
ProjectDto
>
page
=
new
Page
<
ProjectDto
>();
Page
<
ProjectDto
>
page
=
new
Page
<
ProjectDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryForProjectPage
(
page
));
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryForProjectPage
(
page
,
name
,
constructionUnit
));
}
}
/**
/**
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
9e30491a
...
@@ -28,8 +28,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -28,8 +28,8 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
ProjectDto
>
queryForProjectPage
(
Page
<
ProjectDto
>
page
)
{
public
Page
<
ProjectDto
>
queryForProjectPage
(
Page
<
ProjectDto
>
page
,
String
name
,
String
constructionUnit
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
null
,
false
,
name
,
constructionUnit
);
}
}
...
...
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