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
20f349ef
authored
Sep 11, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
整理代码
parent
166bb587
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
41 deletions
server-common/src/main/java/com/makeit/utils/user/plat/PlatUserUtil.java
server-service/src/main/java/com/makeit/service/platform/alarm/PlatAlarmRecordService.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
server-common/src/main/java/com/makeit/utils/user/plat/PlatUserUtil.java
View file @
20f349ef
...
...
@@ -19,7 +19,7 @@ public class PlatUserUtil {
public
static
boolean
isSuper
()
{
PlatUserVO
userVO
=
PlatUserUtil
.
getUserVO
();
return
IsFactoryAccountEnum
.
YES
.
getValue
().
equals
(
userVO
.
get
TenantId
())
return
IsFactoryAccountEnum
.
YES
.
getValue
().
equals
(
userVO
.
get
IsTenant
())
||
IdConst
.
SUPER_ADMIN_ID
.
equals
(
userVO
.
getId
());
}
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/PlatAlarmRecordService.java
View file @
20f349ef
...
...
@@ -9,18 +9,16 @@ import com.makeit.entity.platform.alarm.PlatAlarmRecord;
import
com.makeit.vo.platform.alarm.PlatAlarmRecordVO
;
/**
* @author lixl
* @description 针对表【plat_alarm_record(告警记录)】的数据库操作Service
* @createDate 2023-09-06 14:26:05
*/
* @author lixl
* @description 针对表【plat_alarm_record(告警记录)】的数据库操作Service
* @createDate 2023-09-06 14:26:05
*/
public
interface
PlatAlarmRecordService
extends
IService
<
PlatAlarmRecord
>
{
PageVO
<
PlatAlarmRecordVO
>
page
(
PageReqDTO
<
PlatAlarmRecordQueryDTO
>
dto
);
/**
* 子女端告警列表
* @param dto
* @return
*/
PageVO
<
PlatAlarmRecordVO
>
childrenPage
(
PageReqDTO
<
PlatAlarmRecordQueryDTO
>
dto
);
...
...
@@ -28,11 +26,30 @@ public interface PlatAlarmRecordService extends IService<PlatAlarmRecord> {
void
deal
(
String
recordId
);
/**
* 通知家属
* @param recordId
*/
void
noticeRelation
(
String
recordId
);
/**
* 通知家属
* 子女端小程序
* 短信
* 语音短信
*/
void
noticeChildren
(
PlatAlarmConfig
alarmConfig
,
PlatAlarmRecord
alarmRecord
);
void
noticeUser
(
PlatAlarmConfig
alarmConfig
,
PlatAlarmRecord
alarmRecord
);
/**
* 通知工作人员
* 短信
* 语音短信
* 邮件
*/
void
noticeUser
(
PlatAlarmConfig
alarmConfig
,
PlatAlarmRecord
alarmRecord
);
void
noticeDeviceAlarm
(
PlatAlarmConfig
alarmConfig
,
PlatAlarmRecord
alarmRecord
);
/**
* 设备告警调用 发送消息
*/
void
noticeDeviceAlarm
(
PlatAlarmConfig
alarmConfig
,
PlatAlarmRecord
alarmRecord
);
}
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
View file @
20f349ef
This diff is collapsed.
Click to expand it.
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