From 21e38bfe17d3077d7ab0e05ee065f59547536692 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期二, 03 十二月 2024 10:33:19 +0800
Subject: [PATCH] 1.添加当前巡检状态的功能。 2.修复工单界面刷新已完成列表导致未完成列表数据被清除的bug

---
 app/src/main/java/com/dayu/pipirrapp/tool/InspectionUtils.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/dayu/pipirrapp/tool/InspectionUtils.java b/app/src/main/java/com/dayu/pipirrapp/tool/InspectionUtils.java
index eb3a256..f4f3ebb 100644
--- a/app/src/main/java/com/dayu/pipirrapp/tool/InspectionUtils.java
+++ b/app/src/main/java/com/dayu/pipirrapp/tool/InspectionUtils.java
@@ -26,6 +26,12 @@
     private static final String TAG = "InspectionUtils";
     //鎵撶偣鐨勬渶灏忎袱鐐规渶灏忚窛绂�
     private static final int MinMeters = 10;
+    //0娌℃湁寮�濮嬶紝1寮�濮嬶紝2鏆傚仠,3鍏抽棴
+    public static final int NO_INSPECTION = 0;
+    public static final int STAT_INSPECTION = 1;
+    public static final int PAUSE_INSPECTION = 2;
+    public static final int STOP_INSPECTION = 3;
+
 
     /**
      * 鑾峰彇褰撳墠宸℃璁板綍ID
@@ -49,7 +55,7 @@
     public static InspectionBean startInspection(Context context) {
         // 鍒涘缓宸℃璁板綍
         InspectionBean inspectionBean = new InspectionBean();
-        inspectionBean.setInspectId(UUID.randomUUID().toString());
+        inspectionBean.setmInspectId(UUID.randomUUID().toString());
         inspectionBean.setStartTime(DateUtils.getNowDateStr());
         // 寮傛鎻掑叆鍒版暟鎹簱
         DaoSingleton.getAsynchInstance(context)

--
Gitblit v1.8.0