From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期二, 20 五月 2025 23:48:08 +0800
Subject: [PATCH] 修改文件上传类型限制

---
 springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/message/AlarmMessage.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/message/AlarmMessage.java b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/message/AlarmMessage.java
index 15d4c87..8af1911 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/message/AlarmMessage.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/message/AlarmMessage.java
@@ -11,6 +11,9 @@
 
 import javax.annotation.Resource;
 
+/**
+ * @author zzj
+ */
 @Component
 @Slf4j
 public class AlarmMessage {
@@ -27,8 +30,9 @@
         if(!stringRedisTemplate.hasKey(comPropertyEquipment.getSerialNo())){
             ComPropertyAlarm comPropertyAlarm=new ComPropertyAlarm();
             comPropertyAlarm.setCreateTime(DateUtil.date());
+            comPropertyAlarm.setPhone(comPropertyEquipment.getPhone());
             comPropertyAlarm.setSerialNo(comPropertyEquipment.getSerialNo());
-            comPropertyAlarm.setType(ComPropertyAlarm.type.one);
+            comPropertyAlarm.setType(ComPropertyAlarm.type.time);
             comPropertyAlarm.setCommunityId(comPropertyEquipment.getCommunityId());
             comPropertyAlarm.setName(comPropertyEquipment.getUsername());
             comPropertyAlarm.setStatus(ComPropertyAlarm.status.dcl);

--
Gitblit v1.7.1