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
148227f3
Commit
148227f3
authored
Mar 07, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新api
parent
8783a8c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+19
-0
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 @
148227f3
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
...
@@ -27,6 +28,7 @@ import com.yeejoin.amos.feign.systemctl.model.RegionModel;
...
@@ -27,6 +28,7 @@ import com.yeejoin.amos.feign.systemctl.model.RegionModel;
import
io.swagger.models.Model
;
import
io.swagger.models.Model
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -229,6 +231,23 @@ public class ProjectController extends BaseController {
...
@@ -229,6 +231,23 @@ public class ProjectController extends BaseController {
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryProjectPage
(
current
,
size
,
project
));
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
queryProjectPage
(
current
,
size
,
project
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/homePage"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"项目信息表分页查询-首页表格"
,
notes
=
"项目信息表分页查询-首页表格"
)
public
ResponseModel
<
IPage
<
Project
>>
homePage
(
int
current
,
int
size
,
String
name
,
String
code
)
{
Page
<
Project
>
projectPage
=
new
Page
<>(
current
,
size
);
LambdaQueryWrapper
<
Project
>
lambda
=
new
QueryWrapper
<
Project
>().
lambda
();
lambda
.
eq
(
Project:
:
getIsDelete
,
false
);
if
(!
ObjectUtils
.
isEmpty
(
name
))
{
lambda
.
eq
(
Project:
:
getName
,
name
);
}
if
(!
ObjectUtils
.
isEmpty
(
code
))
{
lambda
.
eq
(
Project:
:
getCode
,
code
);
}
IPage
<
Project
>
projectIPage
=
projectServiceImpl
.
getBaseMapper
().
selectPage
(
projectPage
,
lambda
);
return
ResponseHelper
.
buildResponse
(
projectIPage
);
}
/**
/**
...
...
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