nextday进行图表清空;model数组清空 ,待验证
authorluozheng <1732036298@qq.com>
Tue, 8 Jul 2025 03:08:23 +0000 (11:08 +0800)
committerluozheng <1732036298@qq.com>
Tue, 8 Jul 2025 03:08:23 +0000 (11:08 +0800)
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/include/BPModel.h
code/sdk/application/wearable/fd230app/nativeui/bloodpressure/src/BPModel.cpp
code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp

index 91b49b4..90db725 100644 (file)
@@ -135,6 +135,7 @@ public:
   bool save_bin_BP(const LAST_CHECK_DATA &data);
   bool UpdateHealthData(const LAST_CHECK_DATA &data);
   /* -------------------------------------------------------------------------- */
+  bool CleanBPData(void);
 
 
 private:
index 6335c32..d359013 100644 (file)
@@ -443,6 +443,13 @@ void BPModel::mapDataArray(uint8_t value)
   {
     return true;
   }
+  //nextday清空血压数据
+  bool BPModel::CleanBPData(void)
+  {
+    //进行图表清空;model数组清空
+    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CleanBPData success");
+    return true;
+  }
 
   //////////////////////////////////time处理////////////////////////////////////
   // time到时的处理
index 2896f26..0ba8003 100644 (file)
 #include "PhoneServiceC.h"
 #include  "cat1_ws.h"
 
+#if defined(BOARD_W9)
+#include "bloodpressure/include/BPModel.h"
+#endif
+
 #define DIALDATASET 1
 //#include "Systemupgrade.h"
 namespace OHOS {
@@ -777,6 +781,11 @@ void MsgCenterNotifyNextDayProc(const Topic topic, Request *req)
 
     printf("******nextday is end******\r\n");
 #endif
+#if defined(BOARD_W9)
+    printf("******nextday is begin******\r\n");
+    BPModel::GetInstance()->CleanBPData();
+    printf("w9 nextday is end******\r\n");
+#endif
 }
 
 void MsgCenterNotifyHfpIncomingProc(const Topic topic, Request* req)