From e5a090685df3d5e96a37b141d9a1d002d36f16f2 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期五, 14 二月 2025 16:53:43 +0800
Subject: [PATCH] 1.web地图添加管网显示。 2.安卓原生添加管网信息的获取。 3.安卓原生添加管网信息的本地持久化(SQLite数据库)。 4.实现图例用户的选择状态按钮的持久化。 5.实现自定义搜索按钮的实现。 6.实现搜索后弹出界面的相关功能开发。

---
 app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java |  136 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 118 insertions(+), 18 deletions(-)

diff --git a/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java b/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
index 17ec2bf..ab5e23b 100644
--- a/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
+++ b/app/src/main/java/com/dayu/pipirrapp/bean/net/UplodFileState.java
@@ -1,6 +1,9 @@
 package com.dayu.pipirrapp.bean.net;
 
-import java.io.File;
+import com.dayu.pipirrapp.net.BaseResponse;
+import com.luck.picture.lib.entity.LocalMedia;
+
+import retrofit2.Call;
 
 /**
  * Copyright (C), 2023,
@@ -8,11 +11,110 @@
  * Date: 2023-04-15 8:15
  * Description:
  */
-public class UplodFileState {
-    int state = 0;//0姝e湪涓婁紶 1涓婁紶瀹屾垚 2涓婁紶澶辫触
-    File file;//涓婁紶鐨勬枃浠�
-    String url;//涓婁紶鏂囦欢鍚庤繑鍥炵殑url
-    int number;//澶辫触鍚庨噸璇曠殑娆℃暟
+public class UplodFileState extends LocalMedia {
+    //姝e湪涓婁紶
+    public final static int STATE_UPDING = 0;
+    //涓婁紶瀹屾垚
+    public final static int STATE_DONE = 1;
+    //涓婁紶澶辫触
+    public final static int STATE_ERROR = 2;
+    //鍥剧墖绫诲瀷
+    public final static int IMG_TYPE = 1;
+    //瑙嗛绫诲瀷
+    public final static int VIDEO_TYPE = 2;
+
+    //0姝e湪涓婁紶 1涓婁紶瀹屾垚 2涓婁紶澶辫触
+    int state = 0;
+    //涓婁紶鐨勬枃浠�
+    String filePath;
+    //澶辫触鍚庨噸璇曠殑娆℃暟
+    int number;
+    //涓婁紶鍚庣殑id
+    String postId;
+    //涓婁紶鍚庣殑鍦板潃
+//    String webPath;
+    //涓婁紶鍚庤繑鍥炵殑鏂囦欢鍦ㄦ湇鍔$瀛樺偍鐩稿璺緞
+    String uoloadFilePath;
+    //涓婁紶鍚庣殑鍝堝笇鍊�
+    int hash;
+    //涓婁紶鍚庣殑缂╃暐鍥�
+    String webPathZip;
+
+    //褰撳墠璇锋眰
+    Call<BaseResponse<UploadFileResult>> thisCall;
+    //鍥剧墖涓婁紶杩涘害
+    int progress;
+    //adapter涓殑position
+    int adapterPosition = -1;
+    //涓婁紶绫诲瀷
+    int uploadType;
+    //鎵╁睍鍚�
+    String extName;
+
+    public String getUoloadFilePath() {
+        return uoloadFilePath;
+    }
+
+    public void setUoloadFilePath(String uoloadFilePath) {
+        this.uoloadFilePath = uoloadFilePath;
+    }
+
+    public int getHash() {
+        return hash;
+    }
+
+    public void setHash(int hash) {
+        this.hash = hash;
+    }
+
+    public String getWebPathZip() {
+        return webPathZip;
+    }
+
+    public void setWebPathZip(String webPathZip) {
+        this.webPathZip = webPathZip;
+    }
+
+    public String getExtName() {
+        return extName;
+    }
+
+    public void setExtName(String extName) {
+        this.extName = extName;
+    }
+
+    public int getUploadType() {
+        return uploadType;
+    }
+
+    public void setUploadType(int uploadType) {
+        this.uploadType = uploadType;
+    }
+
+    public int getAdapterPosition() {
+        return adapterPosition;
+    }
+
+    public void setAdapterPosition(int adapterPosition) {
+        this.adapterPosition = adapterPosition;
+    }
+
+    public int getProgress() {
+        return progress;
+    }
+
+    public void setProgress(int progress) {
+        this.progress = progress;
+    }
+
+
+    public Call<BaseResponse<UploadFileResult>> getThisCall() {
+        return thisCall;
+    }
+
+    public void setThisCall(Call<BaseResponse<UploadFileResult>> thisCall) {
+        this.thisCall = thisCall;
+    }
 
     public int getNumber() {
         return number;
@@ -26,10 +128,6 @@
 
     }
 
-    public UplodFileState(File file) {
-        this.file = file;
-    }
-
     public int getState() {
         return state;
     }
@@ -38,19 +136,21 @@
         this.state = state;
     }
 
-    public File getFile() {
-        return file;
+    public String getFilePath() {
+        return filePath;
     }
 
-    public void setFile(File file) {
-        this.file = file;
+    public void setFilePath(String filePath) {
+        this.filePath = filePath;
     }
 
-    public String getUrl() {
-        return url;
+    public String getPostId() {
+        return postId;
     }
 
-    public void setUrl(String url) {
-        this.url = url;
+    public void setPostId(String postId) {
+        this.postId = postId;
     }
+
+
 }

--
Gitblit v1.8.0