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
53127fe3
Commit
53127fe3
authored
Sep 20, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "列表分页接口"
This reverts commit
c11b71e0
.
parent
c11b71e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
64 deletions
+3
-64
CheckReportMapper.java
...in/amos/boot/module/tdc/api/mapper/CheckReportMapper.java
+0
-3
CheckReportService.java
.../amos/boot/module/tdc/api/service/CheckReportService.java
+0
-5
CheckReportController.java
...boot/module/tdc/biz/controller/CheckReportController.java
+2
-32
CheckReportImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
+1
-24
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/mapper/CheckReportMapper.java
View file @
53127fe3
...
...
@@ -4,12 +4,9 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
org.mapstruct.Mapper
;
import
java.util.List
;
/**
* @author DELL
*/
@Mapper
public
interface
CheckReportMapper
extends
BaseMapper
<
CheckReport
>
{
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/service/CheckReportService.java
View file @
53127fe3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
api
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* @author DELL
*/
@Service
public
interface
CheckReportService
extends
IService
<
CheckReport
>
{
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
);
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckReportController.java
View file @
53127fe3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckModelService
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 校验报告
...
...
@@ -26,21 +13,4 @@ import java.util.List;
@RequestMapping
(
value
=
"/report"
)
public
class
CheckReportController
{
@Autowired
CheckReportService
checkReportService
;
/**
* 根据amosOrgCode查询
* return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"selectAll"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据amosOrgCode查询模型列表"
,
notes
=
"根据amosOrgCode查询模型列表"
)
public
ResponseModel
<
IPage
<
CheckReport
>>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
return
ResponseHelper
.
buildResponse
(
checkReportService
.
selectAll
(
current
,
size
,
amosOrgCode
));
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
View file @
53127fe3
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
service
.
impl
;
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.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckReportMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckModelService
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.List
;
/**
* @author DELL
*/
@Service
public
class
CheckReportImpl
extends
ServiceImpl
<
CheckReportMapper
,
CheckReport
>
implements
CheckReportService
{
@Override
public
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
Page
page
=
new
Page
(
current
,
size
);
if
(
ValidationUtil
.
isEmpty
(
amosOrgCode
)){
return
this
.
page
(
page
);
}
else
{
LambdaQueryWrapper
<
CheckReport
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
CheckReport:
:
getAmosOrgCode
,
amosOrgCode
);
return
this
.
page
(
page
,
wrapper
);
}
}
}
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