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
873dce62
authored
Sep 08, 2023
by
lzy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
区域定位
parent
01a08961
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
104 deletions
db/space.sql
server-service/src/main/java/com/makeit/entity/platform/space/PlatRegionSetting.java
server-service/src/main/java/com/makeit/entity/platform/space/PlatRegionSettingLocation.java
server-service/src/main/java/com/makeit/mapper/platform/space/PlatRegionSettingLocationMapper.java
server-service/src/main/java/com/makeit/service/platform/space/PlatRegionSettingLocationService.java
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRegionSettingLocationServiceImpl.java
db/space.sql
View file @
873dce62
...
...
@@ -81,23 +81,6 @@ CREATE TABLE `plat_bed`
CREATE
TABLE
`plat_region_setting`
(
`id`
varchar
(
64
)
NOT
NULL
COMMENT
'id'
,
`name`
varchar
(
128
)
NOT
NULL
COMMENT
'区域名称'
,
`room_id`
varchar
(
64
)
NOT
NULL
COMMENT
'房间id'
,
`range_map`
varchar
(
1024
)
NOT
NULL
COMMENT
'区域地图 json'
,
`create_by`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'创建者'
,
`create_date`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`update_by`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'更新者'
,
`update_date`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`del_flag`
int
(
1
)
DEFAULT
'0'
COMMENT
'删除标记'
,
`tenant_id`
varchar
(
64
)
COLLATE
utf8mb4_general_ci
DEFAULT
NULL
COMMENT
' 租户id '
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'区域设置'
;
CREATE
TABLE
`plat_region_setting_location`
(
`id`
varchar
(
64
)
NOT
NULL
COMMENT
'id'
,
`region_setting_id`
varchar
(
64
)
NOT
NULL
COMMENT
'区域设置Id'
,
`install_type`
char
(
1
)
NOT
NULL
COMMENT
'安装方式 0-顶装 1-侧装'
,
`toward`
char
(
1
)
NOT
NULL
COMMENT
'设备朝向 0-上 1-下 2-左 3-右'
,
`region_name`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'区域名称'
,
...
...
@@ -112,4 +95,4 @@ CREATE TABLE `plat_region_setting_location`
`del_flag`
int
(
1
)
DEFAULT
'0'
COMMENT
'删除标记'
,
`tenant_id`
varchar
(
64
)
COLLATE
utf8mb4_general_ci
DEFAULT
NULL
COMMENT
' 租户id '
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'区域设置
定位
'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'区域设置'
;
server-service/src/main/java/com/makeit/entity/platform/space/PlatRegionSetting.java
View file @
873dce62
...
...
@@ -16,12 +16,24 @@ import lombok.EqualsAndHashCode;
@ApiModel
(
value
=
"RegionSetting对象"
,
description
=
"区域设置"
)
public
class
PlatRegionSetting
extends
BaseBusEntity
{
@ApiModelProperty
(
value
=
"区域名称
"
)
private
String
name
;
@ApiModelProperty
(
"区域设置Id
"
)
private
String
regionSettingId
;
@ApiModelProperty
(
value
=
"房间Id
"
)
private
String
roomId
;
@ApiModelProperty
(
"安装方式 0-顶装 1-侧装
"
)
private
String
installType
;
@ApiModelProperty
(
value
=
"地图json"
)
private
String
rangeMap
;
@ApiModelProperty
(
"设备朝向 0-上 1-下 2-左 3-右"
)
private
String
toward
;
@ApiModelProperty
(
"区域名称"
)
private
String
regionName
;
@ApiModelProperty
(
"区域定位"
)
private
String
regionRange
;
@ApiModelProperty
(
"房间门定位"
)
private
String
roomRange
;
@ApiModelProperty
(
"设备ID"
)
private
String
equipmentId
;
}
server-service/src/main/java/com/makeit/entity/platform/space/PlatRegionSettingLocation.java
deleted
100644 → 0
View file @
01a08961
package
com
.
makeit
.
entity
.
platform
.
space
;
import
com.makeit.common.entity.BaseBusEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* @Author:lzy
* @Date:2023/8/31 11:50
* @Describe:
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"RegionSettingLocation对象"
,
description
=
"区域设置定位"
)
public
class
PlatRegionSettingLocation
extends
BaseBusEntity
{
@ApiModelProperty
(
"区域设置Id"
)
private
String
regionSettingId
;
@ApiModelProperty
(
"安装方式 0-顶装 1-侧装"
)
private
String
installType
;
@ApiModelProperty
(
"设备朝向 0-上 1-下 2-左 3-右"
)
private
String
toward
;
@ApiModelProperty
(
"区域名称"
)
private
String
regionName
;
@ApiModelProperty
(
"区域定位"
)
private
String
regionRange
;
@ApiModelProperty
(
"房间门定位"
)
private
String
roomRange
;
@ApiModelProperty
(
"设备ID"
)
private
String
equipmentId
;
}
server-service/src/main/java/com/makeit/mapper/platform/space/PlatRegionSettingLocationMapper.java
deleted
100644 → 0
View file @
01a08961
package
com
.
makeit
.
mapper
.
platform
.
space
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.makeit.entity.platform.space.PlatRegionSettingLocation
;
/**
* @Author:lzy
* @Date:2023/8/31 11:59
* @Describe:
*/
public
interface
PlatRegionSettingLocationMapper
extends
BaseMapper
<
PlatRegionSettingLocation
>
{
}
server-service/src/main/java/com/makeit/service/platform/space/PlatRegionSettingLocationService.java
deleted
100644 → 0
View file @
01a08961
package
com
.
makeit
.
service
.
platform
.
space
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.makeit.entity.platform.space.PlatRegionSettingLocation
;
/**
* @Author:lzy
* @Date:2023/8/31 16:10
* @Describe:
*/
public
interface
PlatRegionSettingLocationService
extends
IService
<
PlatRegionSettingLocation
>
{
}
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatRegionSettingLocationServiceImpl.java
deleted
100644 → 0
View file @
01a08961
package
com
.
makeit
.
service
.
platform
.
space
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.makeit.entity.platform.space.PlatRegionSettingLocation
;
import
com.makeit.mapper.platform.space.PlatRegionSettingLocationMapper
;
import
com.makeit.service.platform.space.PlatRegionSettingLocationService
;
import
org.springframework.stereotype.Service
;
/**
* @Author:lzy
* @Date:2023/8/31 16:10
* @Describe:
*/
@Service
public
class
PlatRegionSettingLocationServiceImpl
extends
ServiceImpl
<
PlatRegionSettingLocationMapper
,
PlatRegionSettingLocation
>
implements
PlatRegionSettingLocationService
{
}
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