Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
016d5233
Commit
016d5233
authored
Feb 01, 2023
by
ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成报警类型查询接口
parent
42b36476
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
142 additions
and
0 deletions
+142
-0
ReportController.java
...java/iot/sixiang/license/controller/ReportController.java
+42
-0
ReportMapper.java
...rc/main/java/iot/sixiang/license/mapper/ReportMapper.java
+12
-0
ReportTypeMapper.java
...ain/java/iot/sixiang/license/mapper/ReportTypeMapper.java
+12
-0
ReportService.java
.../main/java/iot/sixiang/license/service/ReportService.java
+14
-0
ReportTypeService.java
...n/java/iot/sixiang/license/service/ReportTypeService.java
+18
-0
ReportServiceImpl.java
...a/iot/sixiang/license/service/impl/ReportServiceImpl.java
+19
-0
ReportTypeServiceImpl.java
...t/sixiang/license/service/impl/ReportTypeServiceImpl.java
+25
-0
No files found.
license/src/main/java/iot/sixiang/license/controller/ReportController.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
iot.sixiang.license.entity.ReportType
;
import
iot.sixiang.license.log.BusinessType
;
import
iot.sixiang.license.log.MyLog
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.service.ReportTypeService
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* Created by m33
* Date 2023/2/1 9:52
* Description
*/
@RestController
@RequestMapping
(
"/iot_license/report"
)
@Api
(
value
=
"安全报警模块"
,
tags
=
{
"安全报警模块"
})
public
class
ReportController
{
@Resource
ReportTypeService
reportTypeService
;
/**
* 查询所有报警类型
*
* @return
*/
@ApiOperation
(
value
=
"获取报警类型列表接口"
,
notes
=
"用于获取报警类型列表"
)
@GetMapping
(
"report_type/list"
)
@MyLog
(
title
=
"获取报警类型列表"
,
businessType
=
BusinessType
.
SELECT
)
public
ResResult
getReportTypeList
()
{
List
<
ReportType
>
reportTypes
=
reportTypeService
.
getReportTypeList
();
return
ResResult
.
success
().
goRecord
(
reportTypes
);
}
}
license/src/main/java/iot/sixiang/license/mapper/ReportMapper.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
iot.sixiang.license.entity.Report
;
/**
* Created by m33
* Date 2023/2/1 10:00
* Description
*/
public
interface
ReportMapper
extends
BaseMapper
<
Report
>
{
}
license/src/main/java/iot/sixiang/license/mapper/ReportTypeMapper.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
iot.sixiang.license.entity.ReportType
;
/**
* Created by m33
* Date 2023/2/1 10:00
* Description
*/
public
interface
ReportTypeMapper
extends
BaseMapper
<
ReportType
>
{
}
license/src/main/java/iot/sixiang/license/service/ReportService.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
service
;
import
iot.sixiang.license.entity.ReportType
;
import
java.util.List
;
/**
* Created by M=54G
* Date 11/23/22 3:09 PM
* Description
*/
public
interface
ReportService
{
}
license/src/main/java/iot/sixiang/license/service/ReportTypeService.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
service
;
import
iot.sixiang.license.entity.PmsUseLog
;
import
iot.sixiang.license.entity.ReportType
;
import
iot.sixiang.license.model.PageInfoModel
;
import
iot.sixiang.license.model.dto.ReportErrorMsgDTO
;
import
java.util.List
;
/**
* Created by M=54G
* Date 11/23/22 3:09 PM
* Description
*/
public
interface
ReportTypeService
{
List
<
ReportType
>
getReportTypeList
();
}
license/src/main/java/iot/sixiang/license/service/impl/ReportServiceImpl.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
service
.
impl
;
import
iot.sixiang.license.mapper.ReportMapper
;
import
iot.sixiang.license.service.ReportService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* Created by m33
* Date 2023/2/1 9:59
* Description
*/
@Service
public
class
ReportServiceImpl
implements
ReportService
{
@Resource
ReportMapper
reportMapper
;
}
license/src/main/java/iot/sixiang/license/service/impl/ReportTypeServiceImpl.java
0 → 100644
View file @
016d5233
package
iot
.
sixiang
.
license
.
service
.
impl
;
import
iot.sixiang.license.entity.ReportType
;
import
iot.sixiang.license.mapper.ReportTypeMapper
;
import
iot.sixiang.license.service.ReportTypeService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* Created by m33
* Date 2023/2/1 9:59
* Description
*/
@Service
public
class
ReportTypeServiceImpl
implements
ReportTypeService
{
@Resource
ReportTypeMapper
reportTypeMapper
;
@Override
public
List
<
ReportType
>
getReportTypeList
()
{
return
reportTypeMapper
.
selectList
(
null
);
}
}
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