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
65088289
Commit
65088289
authored
Nov 01, 2022
by
srx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目列表分页查询
parent
7330cf40
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
18 deletions
+20
-18
ProjectMapper.java
...eejoin/amos/boot/module/ugp/api/mapper/ProjectMapper.java
+1
-1
IProjectService.java
...oin/amos/boot/module/ugp/api/service/IProjectService.java
+3
-1
ProjectMapper.xml
...odule-ugp-api/src/main/resources/mapper/ProjectMapper.xml
+4
-4
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+6
-3
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+6
-9
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/ProjectMapper.java
View file @
65088289
...
...
@@ -26,5 +26,5 @@ public interface ProjectMapper extends BaseMapper<Project> {
ProjectDto
getDetail
(
Long
sequenceNbr
);
//项目模糊筛选
List
<
ProjectDto
>
queryProjectPage
(
Project
projectParam
);
IPage
<
ProjectDto
>
queryProjectPage
(
IPage
<
ProjectDto
>
page
,
Project
project
);
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/service/IProjectService.java
View file @
65088289
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.EquipmentDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
...
...
@@ -14,5 +15,6 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Project;
* @date 2022-09-22
*/
public
interface
IProjectService
{
Page
<
ProjectDto
>
queryProjectPage
(
int
current
,
int
size
,
Project
project
);
IPage
<
ProjectDto
>
queryProjectPage
(
IPage
<
ProjectDto
>
page
,
Project
project
);
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/ProjectMapper.xml
View file @
65088289
...
...
@@ -21,11 +21,11 @@
<select
id=
"queryProjectPage"
resultType=
"com.yeejoin.amos.boot.module.ugp.api.entity.Project"
>
select * from tz_ugp_project
<where>
<if
test=
"
name != '' and
name != null"
>
and `name` like concat('%',#{name},'%')
<if
test=
"
project.name != '' and project.
name != null"
>
and `name` like concat('%',#{
project.
name},'%')
</if>
<if
test=
"
constructionUnit != '' and
constructionUnit != null"
>
and `construction_Unit` like concat('%',#{constructionUnit},'%')
<if
test=
"
project.constructionUnit != '' and project.
constructionUnit != null"
>
and `construction_Unit` like concat('%',#{
project.
constructionUnit},'%')
</if>
</where>
</select>
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
65088289
...
...
@@ -131,13 +131,16 @@ public class ProjectController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"项目信息表分页查询"
,
notes
=
"项目信息表分页查询"
)
public
ResponseModel
<
Page
<
ProjectDto
>>
queryForPage
(
public
ResponseModel
<
I
Page
<
ProjectDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
Project
project
)
{
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryProjectPage
(
current
,
size
,
project
));
IPage
<
ProjectDto
>
page
=
new
Page
<>();
page
.
setSize
(
size
);
page
.
setCurrent
(
current
);
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryProjectPage
(
page
,
project
));
}
/**
* 列表全部数据查询
*
...
...
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 @
65088289
...
...
@@ -4,11 +4,14 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.OrgEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.constants.XJConstant
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.EquipmentDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.ProjectDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Attachment
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Equipment
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.ProjectInitiation
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.ProjectMapper
;
...
...
@@ -169,14 +172,7 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
}
//项目模糊筛选
public
Page
<
ProjectDto
>
queryProjectPage
(
int
current
,
int
size
,
Project
project
)
{
Page
<
ProjectDto
>
page
=
new
Page
<>();
page
.
setSize
(
size
);
page
.
setCurrent
(
current
);
this
.
list
();
List
<
ProjectDto
>
projects
=
projectMapper
.
queryProjectPage
(
project
);
page
.
setRecords
(
projects
);
return
page
;
public
IPage
<
ProjectDto
>
queryProjectPage
(
IPage
<
ProjectDto
>
page
,
Project
project
)
{
return
projectMapper
.
queryProjectPage
(
page
,
project
);
}
}
\ 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