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
bc6f5356
authored
Dec 04, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 设备激活查询
parent
39a6e3cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
server-service/src/main/java/com/makeit/entity/platform/device/PlatDevice.java
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
server-service/src/main/java/com/makeit/entity/platform/device/PlatDevice.java
View file @
bc6f5356
package
com
.
makeit
.
entity
.
platform
.
device
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.makeit.common.entity.BaseBusEntity
;
import
com.makeit.module.iot.enums.DeviceState
;
...
...
@@ -81,6 +82,9 @@ public class PlatDevice extends BaseBusEntity {
private
Long
expireTime
;
@ApiModelProperty
(
value
=
"激活时间"
)
private
Long
activationTime
;
@ApiModelProperty
(
value
=
"设备是否激活 1 激活 0 没激活"
)
@TableField
(
exist
=
false
)
private
Integer
active
;
@ApiModelProperty
(
value
=
"设备类型 0-呼吸心率雷达 1-空间人体雷达 2-跌倒检测雷达"
)
private
String
category
;
...
...
@@ -92,4 +96,5 @@ public class PlatDevice extends BaseBusEntity {
private
LocalDateTime
endDate
;
}
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
View file @
bc6f5356
...
...
@@ -48,7 +48,7 @@
and pd.device_license is not null
</when>
<when
test=
"param.active !=null and param.active !='' and param.active == 0"
>
and pd.device_license is
null
and pd.device_license is null
</when>
</choose>
<if
test=
"param.orgIds != null and param.orgIds.size() > 0 "
>
...
...
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