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
643e1e27
Commit
643e1e27
authored
Oct 27, 2022
by
DESKTOP-BQLVS7A\admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增列表查询接口
parent
0d341c2b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
4 deletions
+37
-4
SubmitRecordMapper.java
...n/amos/boot/module/tdc/api/mapper/SubmitRecordMapper.java
+4
-0
SubmitRecordService.java
...amos/boot/module/tdc/api/service/SubmitRecordService.java
+4
-0
SubmitRecordMapper.xml
...-tdc-api/src/main/resources/mapper/SubmitRecordMapper.xml
+4
-0
SubmitRecordController.java
...oot/module/tdc/biz/controller/SubmitRecordController.java
+13
-4
SubmitRecordServiceImpl.java
.../module/tdc/biz/service/impl/SubmitRecordServiceImpl.java
+12
-0
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/mapper/SubmitRecordMapper.java
View file @
643e1e27
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.SubmitRecord
;
import
org.mapstruct.Mapper
;
...
...
@@ -9,4 +11,6 @@ import org.mapstruct.Mapper;
*/
@Mapper
public
interface
SubmitRecordMapper
extends
BaseMapper
<
SubmitRecord
>
{
IPage
<
SubmitRecord
>
selectByOrgCode
(
Page
page
);
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/service/SubmitRecordService.java
View file @
643e1e27
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
api
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.tdc.api.dto.CheckModelDto
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.SubmitRecord
;
import
org.springframework.stereotype.Service
;
/**
...
...
@@ -7,4 +10,5 @@ import org.springframework.stereotype.Service;
*/
@Service
public
interface
SubmitRecordService
{
IPage
<
SubmitRecord
>
selectByOrgCode
(
int
current
,
int
size
);
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/resources/mapper/SubmitRecordMapper.xml
View file @
643e1e27
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tdc.api.mapper.SubmitRecordMapper"
>
<select
id=
"selectByOrgCode"
resultType=
"com.yeejoin.amos.boot.module.tdc.api.entity.SubmitRecord"
>
SELECT sequence_nbr,submit_people,submit_time,amos_org_name FROM `tdc_submit_record`
</select>
</mapper>
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/SubmitRecordController.java
View file @
643e1e27
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.SubmitRecord
;
import
com.yeejoin.amos.boot.module.tdc.api.service.SubmitRecordService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
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
;
...
...
@@ -22,4 +21,13 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
@Api
(
tags
=
"校验项提交"
)
@RequestMapping
(
value
=
"/check-record"
)
public
class
SubmitRecordController
{
@Autowired
SubmitRecordService
submitRecordService
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"selectOrgCode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"直接查询列表"
,
notes
=
"直接查询列表"
)
public
ResponseModel
<
IPage
<
SubmitRecord
>>
selectByOrgCode
(
int
current
,
int
size
){
return
ResponseHelper
.
buildResponse
(
submitRecordService
.
selectByOrgCode
(
current
,
size
));
}
}
\ No newline at end of file
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/SubmitRecordServiceImpl.java
View file @
643e1e27
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
service
.
impl
;
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.SubmitRecord
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.SubmitRecordMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.service.SubmitRecordService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -12,4 +15,13 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
SubmitRecordServiceImpl
extends
ServiceImpl
<
SubmitRecordMapper
,
SubmitRecord
>
implements
SubmitRecordService
{
@Autowired
SubmitRecordMapper
submitRecordMapper
;
@Override
public
IPage
<
SubmitRecord
>
selectByOrgCode
(
int
current
,
int
size
)
{
Page
page
=
new
Page
(
current
,
size
);
return
submitRecordMapper
.
selectByOrgCode
(
page
);
}
}
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