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
68c50192
Commit
68c50192
authored
Oct 13, 2022
by
srx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目筛选
parent
1fe5c304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+6
-3
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+11
-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 @
68c50192
...
@@ -102,12 +102,15 @@ public class ProjectController extends BaseController {
...
@@ -102,12 +102,15 @@ 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 @
68c50192
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.CompanyMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IProjectInitiationService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IProjectService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IProjectService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -17,11 +21,12 @@ import java.util.List;
...
@@ -17,11 +21,12 @@ import java.util.List;
*/
*/
@Service
@Service
public
class
ProjectServiceImpl
extends
BaseService
<
ProjectDto
,
Project
,
ProjectMapper
>
implements
IProjectService
{
public
class
ProjectServiceImpl
extends
BaseService
<
ProjectDto
,
Project
,
ProjectMapper
>
implements
IProjectService
{
/**
/**
* 分页查询
* 分页查询
*/
*/
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
);
}
}
/**
/**
...
@@ -30,4 +35,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto,Project,ProjectMa
...
@@ -30,4 +35,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto,Project,ProjectMa
public
List
<
ProjectDto
>
queryForProjectList
()
{
public
List
<
ProjectDto
>
queryForProjectList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
}
}
\ No newline at end of file
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