Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4925825e
authored
Sep 13, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整理代码
parent
6f71b2ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
saas-module/src/main/java/com/makeit/controller/saas/SaasDeviceController.java
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
saas-module/src/main/java/com/makeit/controller/saas/SaasDeviceController.java
View file @
4925825e
...
...
@@ -8,6 +8,7 @@ import com.makeit.common.response.ApiResponseUtils;
import
com.makeit.dto.platform.device.PlatDeviceDetailDTO
;
import
com.makeit.dto.platform.device.PlatDeviceEditDTO
;
import
com.makeit.entity.platform.device.PlatDevice
;
import
com.makeit.global.aspect.tenant.TenantIdIgnore
;
import
com.makeit.service.platform.device.PlatDeviceService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -26,18 +27,21 @@ public class SaasDeviceController {
@ApiOperation
(
"列表"
)
@PostMapping
(
"page"
)
@TenantIdIgnore
public
ApiResponseEntity
<
PageVO
<
PlatDevice
>>
page
(
@RequestBody
PageReqDTO
<
PlatDevice
>
pageReqDTO
)
{
return
ApiResponseUtils
.
success
(
platDeviceService
.
pageSaas
(
pageReqDTO
));
}
@ApiOperation
(
"设备信息"
)
@PostMapping
(
"detail"
)
@TenantIdIgnore
public
ApiResponseEntity
<
PlatDeviceDetailDTO
>
detail
(
@RequestBody
BaseIdDTO
baseIdDTO
)
{
return
ApiResponseUtils
.
success
(
platDeviceService
.
getDetailDTO
(
baseIdDTO
.
getId
()));
}
@ApiOperation
(
"设备编辑"
)
@PostMapping
(
"edit"
)
@TenantIdIgnore
public
ApiResponseEntity
<
Void
>
edit
(
@RequestBody
PlatDeviceEditDTO
dto
)
{
platDeviceService
.
edit
(
dto
);
return
ApiResponseUtils
.
success
();
...
...
@@ -45,6 +49,7 @@ public class SaasDeviceController {
@ApiOperation
(
"实时数据"
)
@PostMapping
(
"realTimeDate"
)
@TenantIdIgnore
public
ApiResponseEntity
<
PlatDevice
>
realTimeDate
(
@RequestBody
PlatDevice
platDevice
)
{
//todo
return
null
;
...
...
@@ -52,6 +57,7 @@ public class SaasDeviceController {
@ApiOperation
(
"数据分析"
)
@PostMapping
(
"dataAnalysis"
)
@TenantIdIgnore
public
ApiResponseEntity
<
PlatDevice
>
dataAnalysis
(
@RequestBody
PlatDevice
platDevice
)
{
//todo
return
null
;
...
...
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
View file @
4925825e
...
...
@@ -18,7 +18,6 @@ import com.makeit.entity.platform.device.PlatDevice;
import
com.makeit.entity.platform.device.PlatDeviceOther
;
import
com.makeit.enums.CodeMessageEnum
;
import
com.makeit.exception.BusinessException
;
import
com.makeit.global.aspect.tenant.TenantIdIgnore
;
import
com.makeit.mapper.platform.device.PlatDeviceMapper
;
import
com.makeit.service.platform.auth.PlatOrgService
;
import
com.makeit.service.platform.device.PlatDeviceOtherService
;
...
...
@@ -180,7 +179,6 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
}
@Override
@TenantIdIgnore
public
PageVO
<
PlatDevice
>
pageSaas
(
PageReqDTO
<
PlatDevice
>
pageReqDTO
)
{
PlatDevice
param
=
pageReqDTO
.
getData
();
Page
<
PlatDevice
>
page
=
PageUtil
.
toMpPage
(
pageReqDTO
);
...
...
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