Browse Source

使用信息,端外通知

Li 2 years ago
parent
commit
12d9e59b32

+ 2 - 2
TEAMModelBI/Controllers/BICommon/BINoticeController.cs

@@ -165,7 +165,7 @@ namespace TEAMModelBI.Controllers.BICommon
                     tmdIds = tmdIds.Count > 0 ? tmdIds : new List<CrowdInfo>(),
                     schoolIds = schoolIds.Count > 0 ? schoolIds : new List<CrowdInfo>(),
                     areaIds = areaIds.Count > 0 ? areaIds : new List<CrowdInfo>(),
-                    types = _crowdType.ToObject<List<string>>()
+                    types = $"{_crowdType}"
                 };
 
                 if (tmdIds.Count > 0)
@@ -238,7 +238,7 @@ namespace TEAMModelBI.Controllers.BICommon
             }
             catch (Exception ex)
             {
-                //_ = _dingDing.SendBotMsg($"BI,  notion/PushNotion() \n{ex.Message}\n{ex.StackTrace}\n", GroupNames.成都开发測試群組);
+                _ = _dingDing.SendBotMsg($"BI,  notion/PushNotion() \n{ex.Message}\n{ex.StackTrace}\n", GroupNames.成都开发測試群組);
                 return BadRequest();
             }
         }

+ 1 - 1
TEAMModelOS.SDK/Models/Cosmos/BI/BICommon/Notice.cs

@@ -77,7 +77,7 @@ namespace TEAMModelOS.SDK.Models.Cosmos.BI
         /// <summary>
         /// 接收类型
         /// </summary>
-        public List<string> types { get; set; }
+        public string types { get; set; }
     }
 
     public class CrowdInfo

+ 26 - 0
TEAMModelOS.SDK/Models/Cosmos/BI/BICommon/ProductUseRecord.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TEAMModelOS.SDK.Models.Cosmos.BI.BICommon
+{
+    public class ProductUseRecord :CosmosEntity
+    {
+        public ProductUseRecord() 
+        {
+            pk = "ProductUseRecord";
+            code = "ProductUseRecord";
+        }
+        /// <summary>
+        /// 更新时间
+        /// </summary>
+        public long time { get; set; }
+        public List<double> hitaHour { get; set; } = new double[24].ToList();
+        public List<double> hiteachHour { get; set; } = new double[24].ToList();
+        public List<double> hitaDay { get; set; }
+        public List<double> hiteachDay { get; set; }
+
+    }
+}