Browse Source

refactor(national-motion-system):调整用户周计划配置逻辑

- 修改了 segment 特殊配置的条件判断,仅当 i == 1 时设置启用状态和结束时间
- 更新了 main 函数调用的方法,改为 addUserWeekPlan()
SheepHy 5 ngày trước cách đây
mục cha
commit
95390980a1

+ 2 - 2
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/hikiot/HikiotTool.java

@@ -293,7 +293,7 @@ public class HikiotTool {
                 segment.setEndTime("00:00:00");
 
                 // 特殊配置
-                if (i == 1 && (day.equals("Monday") || day.equals("Tuesday"))) {
+                if (i == 1) {
                     segment.setEnable(true);
                     segment.setEndTime("23:59:59");
                 } else {
@@ -425,7 +425,7 @@ public class HikiotTool {
     }
 
     public static void main(String[] args) throws IOException, InterruptedException {
-        addUser();
+        addUserWeekPlan();
 //        addUser();
 //        addFace();
 //        addUserWeekPlan();