Przeglądaj źródła

矛盾纠纷迁移;接口调试

lichao 2 miesięcy temu
rodzic
commit
03382c14b4
100 zmienionych plików z 10058 dodań i 17 usunięć
  1. 10 3
      rhzf/src/main/AndroidManifest.xml
  2. 19 0
      rhzf/src/main/assets/jfjb.json
  3. 19 0
      rhzf/src/main/assets/jfly.json
  4. 15 0
      rhzf/src/main/assets/mdjfrylb.json
  5. 1 1
      rhzf/src/main/java/com/xwkj/rhzf/app/utils/ReqToBus.java
  6. 1 1
      rhzf/src/main/java/com/xwkj/rhzf/app/utils/UploadUtil.java
  7. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/AddJfComponent.java
  8. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/AddPersonComponent.java
  9. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/GdMapComponent.java
  10. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/HfComponent.java
  11. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/MdDjXqComponent.java
  12. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/MdTjLbComponent.java
  13. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/MdgzComponent.java
  14. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/MdhfjlComponent.java
  15. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/MdjfComponent.java
  16. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/TjJfComponent.java
  17. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/TjJlXqComponent.java
  18. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/TjjfNewComponent.java
  19. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/WtjComponent.java
  20. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/YflComponent.java
  21. 41 0
      rhzf/src/main/java/com/xwkj/rhzf/di/component/YtjComponent.java
  22. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/AddJfModule.java
  23. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/AddPersonModule.java
  24. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/GdMapModule.java
  25. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/HfModule.java
  26. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/MdDjXqModule.java
  27. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/MdTjLbModule.java
  28. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/MdgzModule.java
  29. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/MdhfjlModule.java
  30. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/MdjfModule.java
  31. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/TjJfModule.java
  32. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/TjJlXqModule.java
  33. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/TjjfNewModule.java
  34. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/WtjModule.java
  35. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/YflModule.java
  36. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/di/module/YtjModule.java
  37. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/AddJfContract.java
  38. 40 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/AddPersonContract.java
  39. 29 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/GdMapContract.java
  40. 32 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/HfContract.java
  41. 40 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdDjXqContract.java
  42. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdTjLbContract.java
  43. 32 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdgzContract.java
  44. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdhfjlContract.java
  45. 29 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdjfContract.java
  46. 35 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjJfContract.java
  47. 29 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjJlXqContract.java
  48. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjjfNewContract.java
  49. 32 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/WtjContract.java
  50. 30 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/YflContract.java
  51. 32 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/YtjContract.java
  52. 56 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/AddJfModel.java
  53. 56 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/AddPersonModel.java
  54. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/GdMapModel.java
  55. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/HfModel.java
  56. 56 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdDjXqModel.java
  57. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdTjLbModel.java
  58. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdgzModel.java
  59. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdhfjlModel.java
  60. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdjfModel.java
  61. 56 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjJfModel.java
  62. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjJlXqModel.java
  63. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjjfNewModel.java
  64. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/WtjModel.java
  65. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/YflModel.java
  66. 46 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/YtjModel.java
  67. 43 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/api/service/ApiService.java
  68. 104 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/AddJfEntity.java
  69. 75 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/JcLxEntity.java
  70. 157 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/JwsJgEntity.java
  71. 58 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdRyBean.java
  72. 92 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdhfjlEntity.java
  73. 10 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdjfEntity.java
  74. 1080 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdjfXqEntity.java
  75. 79 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/PersonEntity.java
  76. 405 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/RwEntity.java
  77. 10 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/TjLbEntity.java
  78. 267 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/AddJfPresenter.java
  79. 146 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/AddPersonPresenter.java
  80. 53 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/GdMapPresenter.java
  81. 111 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/HfPresenter.java
  82. 209 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdDjXqPresenter.java
  83. 113 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdTjLbPresenter.java
  84. 166 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdgzPresenter.java
  85. 86 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdhfjlPresenter.java
  86. 53 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdjfPresenter.java
  87. 152 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjJfPresenter.java
  88. 53 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjJlXqPresenter.java
  89. 82 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjjfNewPresenter.java
  90. 111 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/WtjPresenter.java
  91. 114 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/YflPresenter.java
  92. 165 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/YtjPresenter.java
  93. 1018 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/AddJfActivity.java
  94. 771 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/AddPersonActivity.java
  95. 389 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/GdMapActivity.java
  96. 12 12
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/LoginActivity.java
  97. 679 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdDjXqActivity.java
  98. 204 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdTjLbActivity.java
  99. 202 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdhfjlActivity.java
  100. 433 0
      rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdjfActivity.java

+ 10 - 3
rhzf/src/main/AndroidManifest.xml

@@ -17,7 +17,16 @@
         android:label="@string/app_name"
         android:supportsRtl="true"
         android:theme="@style/AppTheme">
-<!--        <activity android:name=".mvp.ui.activity.LoginActivity" />-->
+        <activity android:name=".mvp.ui.activity.MdhfjlActivity" />
+        <activity android:name=".mvp.ui.activity.TjjfNewActivity" />
+        <activity android:name=".mvp.ui.activity.TjJlXqActivity" />
+        <activity android:name=".mvp.ui.activity.MdTjLbActivity" />
+        <activity android:name=".mvp.ui.activity.MdDjXqActivity" />
+        <activity android:name=".mvp.ui.activity.TjJfActivity" />
+        <activity android:name=".mvp.ui.activity.MdjfActivity" />
+        <activity android:name=".mvp.ui.activity.GdMapActivity" />
+        <activity android:name=".mvp.ui.activity.AddPersonActivity" />
+        <activity android:name=".mvp.ui.activity.AddJfActivity" /> <!-- <activity android:name=".mvp.ui.activity.LoginActivity" /> -->
         <activity android:name=".mvp.ui.activity.RhzfAddRoomActivity" />
         <activity android:name=".mvp.ui.activity.RhzfRyHistoryActivity" />
         <activity android:name=".mvp.ui.activity.RhzfRyListActivity" />
@@ -57,8 +66,6 @@
         <meta-data
             android:name="com.xwkj.rhzf.app.GlobalConfiguration"
             android:value="ConfigModule" />
-
-
         <meta-data
             android:name="com.amap.api.v2.apikey"
             android:value="b025bf22ed196988a14e63896003dd81" />

+ 19 - 0
rhzf/src/main/assets/jfjb.json

@@ -0,0 +1,19 @@
+{
+  "data": [
+    {
+      "key": "请选择"
+    },
+    {
+      "key": "无风险"
+    },
+    {
+      "key": "低风险"
+    },
+    {
+      "key": "较高风险"
+    },
+    {
+      "key": "高风险"
+    }
+  ]
+}

+ 19 - 0
rhzf/src/main/assets/jfly.json

@@ -0,0 +1,19 @@
+{
+  "data": [
+    {
+      "key": "请选择"
+    },
+    {
+      "key": "自主排查"
+    },
+    {
+      "key": "110接处警"
+    },
+    {
+      "key": "上级机关下发"
+    },
+    {
+      "key": "其他情况"
+    }
+  ]
+}

+ 15 - 0
rhzf/src/main/assets/mdjfrylb.json

@@ -0,0 +1,15 @@
+{
+  "data": [
+    {
+      "key": "甲方"
+    },
+    {
+      "key": "乙方"
+    },
+    {
+      "key": "丙方"
+    }, {
+      "key": "丁方"
+    }
+  ]
+}

+ 1 - 1
rhzf/src/main/java/com/xwkj/rhzf/app/utils/ReqToBus.java

@@ -13,6 +13,7 @@ import com.google.gson.JsonParser;
 import com.hjq.toast.ToastUtils;
 import com.jess.arms.utils.ArmsUtils;
 import com.xwkj.rhzf.mvp.model.api.Api;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
 import com.xwkj.rhzf.mvp.model.entity.AddressEntity;
 import com.xwkj.rhzf.mvp.model.entity.BaseNetEntity;
 import com.xwkj.rhzf.mvp.model.entity.BusEntity;
@@ -20,7 +21,6 @@ import com.xwkj.rhzf.mvp.model.entity.BusResEntity;
 import com.xwkj.rhzf.mvp.model.entity.NormalEntity;
 import com.xwkj.rhzf.mvp.model.entity.ResEntity;
 import com.xwkj.rhzf.mvp.ui.activity.LoginActivity;
-import com.zkjc.common.mvp.model.api.service.ApiService;
 import com.zkjc.common.utils.ApkUtils;
 
 import org.greenrobot.eventbus.EventBus;

+ 1 - 1
rhzf/src/main/java/com/xwkj/rhzf/app/utils/UploadUtil.java

@@ -8,8 +8,8 @@ import com.google.gson.JsonObject;
 import com.jess.arms.utils.ArmsUtils;
 import com.xwkj.rhzf.app.bean.Location;
 import com.xwkj.rhzf.mvp.model.api.Api;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
 import com.xwkj.rhzf.mvp.model.entity.BusEntity;
-import com.zkjc.common.mvp.model.api.service.ApiService;
 import com.zkjc.common.utils.UUIDUtils;
 
 import java.io.File;

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/AddJfComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.AddJfModule;
+import com.xwkj.rhzf.mvp.contract.AddJfContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.AddJfActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = AddJfModule.class, dependencies = AppComponent.class)
+public interface AddJfComponent {
+    void inject(AddJfActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        AddJfComponent.Builder view(AddJfContract.View view);
+
+        AddJfComponent.Builder appComponent(AppComponent appComponent);
+
+        AddJfComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/AddPersonComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.AddPersonModule;
+import com.xwkj.rhzf.mvp.contract.AddPersonContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.AddPersonActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = AddPersonModule.class, dependencies = AppComponent.class)
+public interface AddPersonComponent {
+    void inject(AddPersonActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        AddPersonComponent.Builder view(AddPersonContract.View view);
+
+        AddPersonComponent.Builder appComponent(AppComponent appComponent);
+
+        AddPersonComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/GdMapComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.GdMapModule;
+import com.xwkj.rhzf.mvp.contract.GdMapContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.GdMapActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = GdMapModule.class, dependencies = AppComponent.class)
+public interface GdMapComponent {
+    void inject(GdMapActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        GdMapComponent.Builder view(GdMapContract.View view);
+
+        GdMapComponent.Builder appComponent(AppComponent appComponent);
+
+        GdMapComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/HfComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.HfModule;
+import com.xwkj.rhzf.mvp.contract.HfContract;
+
+import com.jess.arms.di.scope.FragmentScope;
+import com.xwkj.rhzf.mvp.ui.fragment.HfFragment;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:43
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+@Component(modules = HfModule.class, dependencies = AppComponent.class)
+public interface HfComponent {
+    void inject(HfFragment fragment);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        HfComponent.Builder view(HfContract.View view);
+
+        HfComponent.Builder appComponent(AppComponent appComponent);
+
+        HfComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/MdDjXqComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.MdDjXqModule;
+import com.xwkj.rhzf.mvp.contract.MdDjXqContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.MdDjXqActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = MdDjXqModule.class, dependencies = AppComponent.class)
+public interface MdDjXqComponent {
+    void inject(MdDjXqActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        MdDjXqComponent.Builder view(MdDjXqContract.View view);
+
+        MdDjXqComponent.Builder appComponent(AppComponent appComponent);
+
+        MdDjXqComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/MdTjLbComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.MdTjLbModule;
+import com.xwkj.rhzf.mvp.contract.MdTjLbContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.MdTjLbActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = MdTjLbModule.class, dependencies = AppComponent.class)
+public interface MdTjLbComponent {
+    void inject(MdTjLbActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        MdTjLbComponent.Builder view(MdTjLbContract.View view);
+
+        MdTjLbComponent.Builder appComponent(AppComponent appComponent);
+
+        MdTjLbComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/MdgzComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.MdgzModule;
+import com.xwkj.rhzf.mvp.contract.MdgzContract;
+
+import com.jess.arms.di.scope.FragmentScope;
+import com.xwkj.rhzf.mvp.ui.fragment.MdgzFragment;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:56
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+@Component(modules = MdgzModule.class, dependencies = AppComponent.class)
+public interface MdgzComponent {
+    void inject(MdgzFragment fragment);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        MdgzComponent.Builder view(MdgzContract.View view);
+
+        MdgzComponent.Builder appComponent(AppComponent appComponent);
+
+        MdgzComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/MdhfjlComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.MdhfjlModule;
+import com.xwkj.rhzf.mvp.contract.MdhfjlContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.MdhfjlActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = MdhfjlModule.class, dependencies = AppComponent.class)
+public interface MdhfjlComponent {
+    void inject(MdhfjlActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        MdhfjlComponent.Builder view(MdhfjlContract.View view);
+
+        MdhfjlComponent.Builder appComponent(AppComponent appComponent);
+
+        MdhfjlComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/MdjfComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.MdjfModule;
+import com.xwkj.rhzf.mvp.contract.MdjfContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.MdjfActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = MdjfModule.class, dependencies = AppComponent.class)
+public interface MdjfComponent {
+    void inject(MdjfActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        MdjfComponent.Builder view(MdjfContract.View view);
+
+        MdjfComponent.Builder appComponent(AppComponent appComponent);
+
+        MdjfComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/TjJfComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.TjJfModule;
+import com.xwkj.rhzf.mvp.contract.TjJfContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.TjJfActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:17
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = TjJfModule.class, dependencies = AppComponent.class)
+public interface TjJfComponent {
+    void inject(TjJfActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        TjJfComponent.Builder view(TjJfContract.View view);
+
+        TjJfComponent.Builder appComponent(AppComponent appComponent);
+
+        TjJfComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/TjJlXqComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.TjJlXqModule;
+import com.xwkj.rhzf.mvp.contract.TjJlXqContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.TjJlXqActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:10
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = TjJlXqModule.class, dependencies = AppComponent.class)
+public interface TjJlXqComponent {
+    void inject(TjJlXqActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        TjJlXqComponent.Builder view(TjJlXqContract.View view);
+
+        TjJlXqComponent.Builder appComponent(AppComponent appComponent);
+
+        TjJlXqComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/TjjfNewComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.TjjfNewModule;
+import com.xwkj.rhzf.mvp.contract.TjjfNewContract;
+
+import com.jess.arms.di.scope.ActivityScope;
+import com.xwkj.rhzf.mvp.ui.activity.TjjfNewActivity;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:11
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+@Component(modules = TjjfNewModule.class, dependencies = AppComponent.class)
+public interface TjjfNewComponent {
+    void inject(TjjfNewActivity activity);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        TjjfNewComponent.Builder view(TjjfNewContract.View view);
+
+        TjjfNewComponent.Builder appComponent(AppComponent appComponent);
+
+        TjjfNewComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/WtjComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.WtjModule;
+import com.xwkj.rhzf.mvp.contract.WtjContract;
+
+import com.jess.arms.di.scope.FragmentScope;
+import com.xwkj.rhzf.mvp.ui.fragment.WtjFragment;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:38
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+@Component(modules = WtjModule.class, dependencies = AppComponent.class)
+public interface WtjComponent {
+    void inject(WtjFragment fragment);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        WtjComponent.Builder view(WtjContract.View view);
+
+        WtjComponent.Builder appComponent(AppComponent appComponent);
+
+        WtjComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/YflComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.YflModule;
+import com.xwkj.rhzf.mvp.contract.YflContract;
+
+import com.jess.arms.di.scope.FragmentScope;
+import com.xwkj.rhzf.mvp.ui.fragment.YflFragment;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:58
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+@Component(modules = YflModule.class, dependencies = AppComponent.class)
+public interface YflComponent {
+    void inject(YflFragment fragment);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        YflComponent.Builder view(YflContract.View view);
+
+        YflComponent.Builder appComponent(AppComponent appComponent);
+
+        YflComponent build();
+    }
+}

+ 41 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/component/YtjComponent.java

@@ -0,0 +1,41 @@
+package com.xwkj.rhzf.di.component;
+
+import dagger.BindsInstance;
+import dagger.Component;
+
+import com.jess.arms.di.component.AppComponent;
+
+import com.xwkj.rhzf.di.module.YtjModule;
+import com.xwkj.rhzf.mvp.contract.YtjContract;
+
+import com.jess.arms.di.scope.FragmentScope;
+import com.xwkj.rhzf.mvp.ui.fragment.YtjFragment;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+@Component(modules = YtjModule.class, dependencies = AppComponent.class)
+public interface YtjComponent {
+    void inject(YtjFragment fragment);
+
+    @Component.Builder
+    interface Builder {
+        @BindsInstance
+        YtjComponent.Builder view(YtjContract.View view);
+
+        YtjComponent.Builder appComponent(AppComponent appComponent);
+
+        YtjComponent build();
+    }
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/AddJfModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.AddJfContract;
+import com.xwkj.rhzf.mvp.model.AddJfModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class AddJfModule {
+
+    @Binds
+    abstract AddJfContract.Model bindAddJfModel(AddJfModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/AddPersonModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.AddPersonContract;
+import com.xwkj.rhzf.mvp.model.AddPersonModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class AddPersonModule {
+
+    @Binds
+    abstract AddPersonContract.Model bindAddPersonModel(AddPersonModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/GdMapModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.GdMapContract;
+import com.xwkj.rhzf.mvp.model.GdMapModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class GdMapModule {
+
+    @Binds
+    abstract GdMapContract.Model bindGdMapModel(GdMapModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/HfModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.HfContract;
+import com.xwkj.rhzf.mvp.model.HfModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:43
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class HfModule {
+
+    @Binds
+    abstract HfContract.Model bindHfModel(HfModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/MdDjXqModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.MdDjXqContract;
+import com.xwkj.rhzf.mvp.model.MdDjXqModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class MdDjXqModule {
+
+    @Binds
+    abstract MdDjXqContract.Model bindMdDjXqModel(MdDjXqModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/MdTjLbModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.MdTjLbContract;
+import com.xwkj.rhzf.mvp.model.MdTjLbModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class MdTjLbModule {
+
+    @Binds
+    abstract MdTjLbContract.Model bindMdTjLbModel(MdTjLbModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/MdgzModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.MdgzContract;
+import com.xwkj.rhzf.mvp.model.MdgzModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:56
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class MdgzModule {
+
+    @Binds
+    abstract MdgzContract.Model bindMdgzModel(MdgzModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/MdhfjlModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.MdhfjlContract;
+import com.xwkj.rhzf.mvp.model.MdhfjlModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class MdhfjlModule {
+
+    @Binds
+    abstract MdhfjlContract.Model bindMdhfjlModel(MdhfjlModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/MdjfModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.MdjfContract;
+import com.xwkj.rhzf.mvp.model.MdjfModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class MdjfModule {
+
+    @Binds
+    abstract MdjfContract.Model bindMdjfModel(MdjfModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/TjJfModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.TjJfContract;
+import com.xwkj.rhzf.mvp.model.TjJfModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:17
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class TjJfModule {
+
+    @Binds
+    abstract TjJfContract.Model bindTjJfModel(TjJfModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/TjJlXqModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.TjJlXqContract;
+import com.xwkj.rhzf.mvp.model.TjJlXqModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:10
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class TjJlXqModule {
+
+    @Binds
+    abstract TjJlXqContract.Model bindTjJlXqModel(TjJlXqModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/TjjfNewModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.TjjfNewContract;
+import com.xwkj.rhzf.mvp.model.TjjfNewModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:11
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class TjjfNewModule {
+
+    @Binds
+    abstract TjjfNewContract.Model bindTjjfNewModel(TjjfNewModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/WtjModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.WtjContract;
+import com.xwkj.rhzf.mvp.model.WtjModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:38
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class WtjModule {
+
+    @Binds
+    abstract WtjContract.Model bindWtjModel(WtjModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/YflModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.YflContract;
+import com.xwkj.rhzf.mvp.model.YflModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:58
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class YflModule {
+
+    @Binds
+    abstract YflContract.Model bindYflModel(YflModel model);
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/di/module/YtjModule.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.di.module;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import dagger.Binds;
+import dagger.Module;
+import dagger.Provides;
+
+import com.xwkj.rhzf.mvp.contract.YtjContract;
+import com.xwkj.rhzf.mvp.model.YtjModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@Module
+public abstract class YtjModule {
+
+    @Binds
+    abstract YtjContract.Model bindYtjModel(YtjModel model);
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/AddJfContract.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.google.gson.JsonObject;
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+import com.xwkj.rhzf.mvp.model.entity.MdjfXqEntity;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface AddJfContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result, int i);
+
+        void onXgSuccess(String result);
+
+        void onGetMdjfDjSuccess(String result);
+
+        void onDit(String result);
+
+        void onZdSuccess(String result, int flag);
+
+        void getJfDataSuccess(MdjfXqEntity.DataBean data);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+        Observable<JsonObject> uploadImg(@Body MultipartBody multipartBody);
+    }
+}

+ 40 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/AddPersonContract.java

@@ -0,0 +1,40 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.google.gson.JsonObject;
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface AddPersonContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+
+        void onUpdate(String result);
+
+        void getRyDataSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+        Observable<JsonObject> uploadImg(@Body MultipartBody multipartBody);
+    }
+}

+ 29 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/GdMapContract.java

@@ -0,0 +1,29 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface GdMapContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 32 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/HfContract.java

@@ -0,0 +1,32 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:43
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface HfContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onYgz(String result);
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 40 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdDjXqContract.java

@@ -0,0 +1,40 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.google.gson.JsonObject;
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface MdDjXqContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onHfSuccess(String result);
+
+        void onSuccess(String result);
+
+        void onImageSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+        Observable<JsonObject> uploadImg(@Body MultipartBody multipartBody);
+    }
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdTjLbContract.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface MdTjLbContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 32 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdgzContract.java

@@ -0,0 +1,32 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:56
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface MdgzContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onYgz(String result);
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdhfjlContract.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface MdhfjlContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 29 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/MdjfContract.java

@@ -0,0 +1,29 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface MdjfContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 35 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjJfContract.java

@@ -0,0 +1,35 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.google.gson.JsonObject;
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:17
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface TjJfContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result, int flag);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+        Observable<JsonObject> uploadImg(@Body MultipartBody multipartBody);
+    }
+}

+ 29 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjJlXqContract.java

@@ -0,0 +1,29 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:10
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface TjJlXqContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/TjjfNewContract.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:11
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface TjjfNewContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 32 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/WtjContract.java

@@ -0,0 +1,32 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:38
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface WtjContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+
+        void onYgz(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 30 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/YflContract.java

@@ -0,0 +1,30 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:58
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface YflContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 32 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/contract/YtjContract.java

@@ -0,0 +1,32 @@
+package com.xwkj.rhzf.mvp.contract;
+
+import com.jess.arms.mvp.IView;
+import com.jess.arms.mvp.IModel;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public interface YtjContract {
+    //对于经常使用的关于UI的方法可以定义到IView中,如显示隐藏进度条,和显示文字消息
+    interface View extends IView {
+
+        void onYgz(String result);
+
+        void onSuccess(String result);
+    }
+
+    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,即是否使用缓存
+    interface Model extends IModel {
+
+    }
+}

+ 56 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/AddJfModel.java

@@ -0,0 +1,56 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.AddJfContract;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class AddJfModel extends BaseModel implements AddJfContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public AddJfModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+
+    @Override
+    public Observable<JsonObject> uploadImg(MultipartBody multipartBody) {
+        return mRepositoryManager.obtainRetrofitService(ApiService.class).uploadImg(multipartBody);
+    }
+}

+ 56 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/AddPersonModel.java

@@ -0,0 +1,56 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.AddPersonContract;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class AddPersonModel extends BaseModel implements AddPersonContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public AddPersonModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+    @Override
+    public Observable<JsonObject> uploadImg(MultipartBody multipartBody) {
+        return mRepositoryManager.obtainRetrofitService(ApiService.class).uploadImg(multipartBody);
+
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/GdMapModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.GdMapContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class GdMapModel extends BaseModel implements GdMapContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public GdMapModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/HfModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.HfContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:43
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class HfModel extends BaseModel implements HfContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public HfModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 56 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdDjXqModel.java

@@ -0,0 +1,56 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdDjXqContract;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdDjXqModel extends BaseModel implements MdDjXqContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public MdDjXqModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+    @Override
+    public Observable<JsonObject> uploadImg(MultipartBody multipartBody) {
+        return mRepositoryManager.obtainRetrofitService(ApiService.class).uploadImg(multipartBody);
+
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdTjLbModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdTjLbContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdTjLbModel extends BaseModel implements MdTjLbContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public MdTjLbModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdgzModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdgzContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:56
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class MdgzModel extends BaseModel implements MdgzContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public MdgzModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdhfjlModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdhfjlContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdhfjlModel extends BaseModel implements MdhfjlContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public MdhfjlModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/MdjfModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdjfContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdjfModel extends BaseModel implements MdjfContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public MdjfModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 56 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjJfModel.java

@@ -0,0 +1,56 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.TjJfContract;
+import com.xwkj.rhzf.mvp.model.api.service.ApiService;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:17
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjJfModel extends BaseModel implements TjJfContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public TjJfModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+
+    @Override
+    public Observable<JsonObject> uploadImg(MultipartBody multipartBody) {
+        return mRepositoryManager.obtainRetrofitService(ApiService.class).uploadImg(multipartBody);
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjJlXqModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.TjJlXqContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:10
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjJlXqModel extends BaseModel implements TjJlXqContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public TjJlXqModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/TjjfNewModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.ActivityScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.TjjfNewContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:11
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjjfNewModel extends BaseModel implements TjjfNewContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public TjjfNewModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/WtjModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.WtjContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:38
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class WtjModel extends BaseModel implements WtjContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public WtjModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/YflModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.YflContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:58
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class YflModel extends BaseModel implements YflContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public YflModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 46 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/YtjModel.java

@@ -0,0 +1,46 @@
+package com.xwkj.rhzf.mvp.model;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.jess.arms.integration.IRepositoryManager;
+import com.jess.arms.mvp.BaseModel;
+
+import com.jess.arms.di.scope.FragmentScope;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.YtjContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class YtjModel extends BaseModel implements YtjContract.Model {
+    @Inject
+    Gson mGson;
+    @Inject
+    Application mApplication;
+
+    @Inject
+    public YtjModel(IRepositoryManager repositoryManager) {
+        super(repositoryManager);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mGson = null;
+        this.mApplication = null;
+    }
+}

+ 43 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/api/service/ApiService.java

@@ -0,0 +1,43 @@
+package com.xwkj.rhzf.mvp.model.api.service;
+
+import com.google.gson.JsonObject;
+import com.zkjc.common.mvp.BaseResponse;
+import com.zkjc.common.mvp.model.entity.LoginEntity;
+
+import java.util.Map;
+
+import io.reactivex.Observable;
+import okhttp3.MultipartBody;
+import okhttp3.RequestBody;
+import retrofit2.http.Body;
+import retrofit2.http.FieldMap;
+import retrofit2.http.FormUrlEncoded;
+import retrofit2.http.GET;
+import retrofit2.http.Headers;
+import retrofit2.http.POST;
+import retrofit2.http.QueryMap;
+import retrofit2.http.Url;
+
+public interface ApiService {
+
+    @FormUrlEncoded
+    @POST("/cloud/admin/login/token")
+    Observable<BaseResponse<LoginEntity>> login(@FieldMap Map<String, String> map);
+
+
+    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
+    @POST
+    Observable<JsonObject> getNetWork(@Url String url, @Body RequestBody map);
+
+
+    @POST
+    Observable<JsonObject> upload(@Url String url, @Body MultipartBody multipartBody);
+
+    @GET
+    Observable<JsonObject> getMap(@Url String url, @QueryMap Map<String, String> map);
+
+
+    @POST("/blade-resource/oss/endpoint/put-file")
+    Observable<JsonObject> uploadImg(@Body MultipartBody multipartBody);
+
+}

+ 104 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/AddJfEntity.java

@@ -0,0 +1,104 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class AddJfEntity implements Serializable {
+
+    private int code;
+    private boolean success;
+    private String msg;
+    private DataBean data;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public DataBean getData() {
+        return data;
+    }
+
+    public void setData(DataBean data) {
+        this.data = data;
+    }
+
+    public static class DataBean implements Serializable {
+        private List<JcLxEntity.DataBean> jflxvos;
+        private List<JwsJgEntity.DataBean> deptListVos;
+        private List<Jfdj> mddjvos;
+
+        public List<JcLxEntity.DataBean> getJflxvos() {
+            return jflxvos;
+        }
+
+        public void setJflxvos(List<JcLxEntity.DataBean> jflxvos) {
+            this.jflxvos = jflxvos;
+        }
+
+        public List<JwsJgEntity.DataBean> getDeptListVos() {
+            return deptListVos;
+        }
+
+        public void setDeptListVos(List<JwsJgEntity.DataBean> deptListVos) {
+            this.deptListVos = deptListVos;
+        }
+
+        public List<Jfdj> getMddjvos() {
+            return mddjvos;
+        }
+
+        public void setMddjvos(List<Jfdj> mddjvos) {
+            this.mddjvos = mddjvos;
+        }
+    }
+
+    public static class Jfdj implements Serializable {
+        private String id;
+        private String dictValue;
+        private String dictKey;
+
+        public String getId() {
+            return id;
+        }
+
+        public void setId(String id) {
+            this.id = id;
+        }
+
+        public String getDictValue() {
+            return dictValue;
+        }
+
+        public void setDictValue(String dictValue) {
+            this.dictValue = dictValue;
+        }
+
+        public String getDictKey() {
+            return dictKey;
+        }
+
+        public void setDictKey(String dictKey) {
+            this.dictKey = dictKey;
+        }
+    }
+}

+ 75 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/JcLxEntity.java

@@ -0,0 +1,75 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.util.List;
+
+public class JcLxEntity {
+    /**
+     * code : 200
+     * success : true
+     * data : [{"value":"1686566626893316098","label":"家庭纠纷"},{"value":"1686569551078178818","label":"邻居纠纷"},{"value":"1686569607097303041","label":"经济纠纷"},{"value":"1686571550976851969","label":"消费纠纷"},{"value":"1686571749774278658","label":"假币纠纷"},{"value":"1686571803771748354","label":"交通纠纷"},{"value":"1686571852027215874","label":"婚姻纠纷"},{"value":"1686571915210211330","label":"宅基纠纷"},{"value":"1686571978867163138","label":"打架纠纷"},{"value":"1686572043006459905","label":"其他纠纷"}]
+     * msg : 操作成功
+     */
+
+    private int code;
+    private boolean success;
+    private String msg;
+    private List<DataBean> data;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public List<DataBean> getData() {
+        return data;
+    }
+
+    public void setData(List<DataBean> data) {
+        this.data = data;
+    }
+
+    public static class DataBean {
+        /**
+         * value : 1686566626893316098
+         * label : 家庭纠纷
+         */
+
+        private String value;
+        private String label;
+
+        public String getValue() {
+            return value;
+        }
+
+        public void setValue(String value) {
+            this.value = value;
+        }
+
+        public String getLabel() {
+            return label;
+        }
+
+        public void setLabel(String label) {
+            this.label = label;
+        }
+    }
+}

+ 157 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/JwsJgEntity.java

@@ -0,0 +1,157 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class JwsJgEntity implements Serializable {
+
+    /**
+     * code : 200
+     * success : true
+     * data : [{"id":"1677212314555768833","tenantId":"000000","parentId":"1677212139158364161","fullName":"丰满分局","deptName":"丰满分局","ancestors":"0,1677212139158364161","deptCategory":2,"sort":1,"remark":"丰满分局","isDeleted":0}]
+     * msg : 操作成功
+     */
+
+    private int code;
+    private boolean success;
+    private String msg;
+    private List<DataBean> data;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public List<DataBean> getData() {
+        return data;
+    }
+
+    public void setData(List<DataBean> data) {
+        this.data = data;
+    }
+
+    public static class DataBean implements Serializable {
+        /**
+         * id : 1677212314555768833
+         * tenantId : 000000
+         * parentId : 1677212139158364161
+         * fullName : 丰满分局
+         * deptName : 丰满分局
+         * ancestors : 0,1677212139158364161
+         * deptCategory : 2
+         * sort : 1
+         * remark : 丰满分局
+         * isDeleted : 0
+         */
+
+        private String id;
+        private String tenantId;
+        private String parentId;
+        private String fullName;
+        private String deptName;
+        private String ancestors;
+        private int deptCategory;
+        private int sort;
+        private String remark;
+        private int isDeleted;
+
+        public String getId() {
+            return id;
+        }
+
+        public void setId(String id) {
+            this.id = id;
+        }
+
+        public String getTenantId() {
+            return tenantId;
+        }
+
+        public void setTenantId(String tenantId) {
+            this.tenantId = tenantId;
+        }
+
+        public String getParentId() {
+            return parentId;
+        }
+
+        public void setParentId(String parentId) {
+            this.parentId = parentId;
+        }
+
+        public String getFullName() {
+            return fullName;
+        }
+
+        public void setFullName(String fullName) {
+            this.fullName = fullName;
+        }
+
+        public String getDeptName() {
+            return deptName;
+        }
+
+        public void setDeptName(String deptName) {
+            this.deptName = deptName;
+        }
+
+        public String getAncestors() {
+            return ancestors;
+        }
+
+        public void setAncestors(String ancestors) {
+            this.ancestors = ancestors;
+        }
+
+        public int getDeptCategory() {
+            return deptCategory;
+        }
+
+        public void setDeptCategory(int deptCategory) {
+            this.deptCategory = deptCategory;
+        }
+
+        public int getSort() {
+            return sort;
+        }
+
+        public void setSort(int sort) {
+            this.sort = sort;
+        }
+
+        public String getRemark() {
+            return remark;
+        }
+
+        public void setRemark(String remark) {
+            this.remark = remark;
+        }
+
+        public int getIsDeleted() {
+            return isDeleted;
+        }
+
+        public void setIsDeleted(int isDeleted) {
+            this.isDeleted = isDeleted;
+        }
+    }
+}

+ 58 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdRyBean.java

@@ -0,0 +1,58 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+public class MdRyBean {
+    private String ryid;
+    private String xm;
+    private String qm;
+    private String rylx;
+    private String zp;
+    private int pj = 1; // 1满意0不满意
+
+    public int getPj() {
+        return pj;
+    }
+
+    public void setPj(int pj) {
+        this.pj = pj;
+    }
+
+    public String getZp() {
+        return zp;
+    }
+
+    public void setZp(String zp) {
+        this.zp = zp;
+    }
+
+    public String getRyid() {
+        return ryid;
+    }
+
+    public void setRyid(String ryid) {
+        this.ryid = ryid;
+    }
+
+    public String getXm() {
+        return xm;
+    }
+
+    public void setXm(String xm) {
+        this.xm = xm;
+    }
+
+    public String getQm() {
+        return qm;
+    }
+
+    public void setQm(String qm) {
+        this.qm = qm;
+    }
+
+    public String getRylx() {
+        return rylx;
+    }
+
+    public void setRylx(String rylx) {
+        this.rylx = rylx;
+    }
+}

+ 92 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdhfjlEntity.java

@@ -0,0 +1,92 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class MdhfjlEntity implements Serializable {
+
+    private int code;
+    private boolean success;
+    private List<DataBean> data;
+    private String msg;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public List<DataBean> getData() {
+        return data;
+    }
+
+    public void setData(List<DataBean> data) {
+        this.data = data;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public static class DataBean implements Serializable {
+        private String hfdd;
+        private String hfqk;
+        private int sfmy;
+        private String bz;
+        private String createTime;
+
+        public String getCreateTime() {
+            return createTime;
+        }
+
+        public void setCreateTime(String createTime) {
+            this.createTime = createTime;
+        }
+
+        public String getHfdd() {
+            return hfdd;
+        }
+
+        public void setHfdd(String hfdd) {
+            this.hfdd = hfdd;
+        }
+
+        public String getHfqk() {
+            return hfqk;
+        }
+
+        public void setHfqk(String hfqk) {
+            this.hfqk = hfqk;
+        }
+
+        public int getSfmy() {
+            return sfmy;
+        }
+
+        public void setSfmy(int sfmy) {
+            this.sfmy = sfmy;
+        }
+
+        public String getBz() {
+            return bz;
+        }
+
+        public void setBz(String bz) {
+            this.bz = bz;
+        }
+    }
+}

Plik diff jest za duży
+ 10 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdjfEntity.java


+ 1080 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/MdjfXqEntity.java

@@ -0,0 +1,1080 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class MdjfXqEntity implements Serializable {
+
+    /**
+     * code : 200
+     * success : true
+     * data : {"id":-1,"createUser":-1,"createDept":-1,"createTime":"","updateUser":-1,"updateTime":"","status":-1,"isDeleted":-1,"jfmc":"","jflx":"","jfyy":"","jffssj":"","jffsdd":"","jyaq":"","jfdjsj":"","jfsssq":-1,"jfsspcs":-1,"jfssfj":-1,"sbzt":"","sbsj":"","sbdw":-1,"yjzt":"","yjsj":"","yjdw":-1,"fksj":"","fknr":"","fkr":"","fkdw":-1,"djr":-1,"mdjb":"","zp":"","sqName":"","pcsName":"","createName":"","mdjfDj":{"id":"1686648898834546690","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfmc":"纠纷名称","jflx":"纠纷类型","jfyy":"纠纷原因","jffssj":"2023-08-01 08:09:10","jffsdd":"纠纷发生地点","jyaq":"简要案情","jfdjsj":"","jfsssq":-1,"jfsspcs":-1,"jfssfj":-1,"sbzt":"","sbsj":"","sbdw":-1,"yjzt":"","yjsj":"","yjdw":-1,"fksj":"","fknr":"","fkr":"","fkdw":-1,"djr":-1,"mdjb":"","zp":"","sqName":"","pcsName":"","createName":""},"mdjfRyList":[{"id":"1686648898901655553","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfId":"1686648898834546690","xm":"姓名1","xb":"性别1","sfzh":"身份证号1","lxdh":"联系电话1","lb":"类别1"},{"id":"1686648898901655554","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfId":"1686648898834546690","xm":"姓名2","xb":"性别2","sfzh":"身份证号2","lxdh":"联系电话2","lb":"类别2"}],"mdjfTjList":[]}
+     * msg : 操作成功
+     */
+
+    private int code;
+    private boolean success;
+    private DataBean data;
+    private String msg;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public DataBean getData() {
+        return data;
+    }
+
+    public void setData(DataBean data) {
+        this.data = data;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public static class DataBean implements Serializable {
+        /**
+         * id : -1
+         * createUser : -1
+         * createDept : -1
+         * createTime :
+         * updateUser : -1
+         * updateTime :
+         * status : -1
+         * isDeleted : -1
+         * jfmc :
+         * jflx :
+         * jfyy :
+         * jffssj :
+         * jffsdd :
+         * jyaq :
+         * jfdjsj :
+         * jfsssq : -1
+         * jfsspcs : -1
+         * jfssfj : -1
+         * sbzt :
+         * sbsj :
+         * sbdw : -1
+         * yjzt :
+         * yjsj :
+         * yjdw : -1
+         * fksj :
+         * fknr :
+         * fkr :
+         * fkdw : -1
+         * djr : -1
+         * mdjb :
+         * zp :
+         * sqName :
+         * pcsName :
+         * createName :
+         * mdjfDj : {"id":"1686648898834546690","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfmc":"纠纷名称","jflx":"纠纷类型","jfyy":"纠纷原因","jffssj":"2023-08-01 08:09:10","jffsdd":"纠纷发生地点","jyaq":"简要案情","jfdjsj":"","jfsssq":-1,"jfsspcs":-1,"jfssfj":-1,"sbzt":"","sbsj":"","sbdw":-1,"yjzt":"","yjsj":"","yjdw":-1,"fksj":"","fknr":"","fkr":"","fkdw":-1,"djr":-1,"mdjb":"","zp":"","sqName":"","pcsName":"","createName":""}
+         * mdjfRyList : [{"id":"1686648898901655553","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfId":"1686648898834546690","xm":"姓名1","xb":"性别1","sfzh":"身份证号1","lxdh":"联系电话1","lb":"类别1"},{"id":"1686648898901655554","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-08-02 16:03:28","updateUser":"1123598821738675201","updateTime":"2023-08-02 16:03:28","status":1,"isDeleted":0,"jfId":"1686648898834546690","xm":"姓名2","xb":"性别2","sfzh":"身份证号2","lxdh":"联系电话2","lb":"类别2"}]
+         * mdjfTjList : []
+         */
+
+        private String id;
+        private String createUser;
+        private String createDept;
+        private String createTime;
+        private String updateUser;
+        private String updateTime;
+        private int status;
+        private int isDeleted;
+        private String jfmc;
+        private String jflx;
+        private String jfyy;
+        private String jffssj;
+        private String jffsdd;
+        private String jyaq;
+        private String jfdjsj;
+        private String jfsssq;
+        private String jfsspcs;
+        private String jfssfj;
+        private String sbzt;
+        private String sbsj;
+        private String sbdw;
+        private String yjzt;
+        private String yjsj;
+        private String yjdw;
+        private String fksj;
+        private String fknr;
+        private String fkr;
+        private String fkdw;
+        private String djr;
+        private String mdjb;
+        private String zp;
+
+        private String sqName;
+        private String pcsName;
+        private String createName;
+        private MdjfDjBean mdjfDj;
+        private List<MdjfRyListBean> mdjfRyList;
+        private List<?> mdjfTjList;
+
+        public String getId() {
+            return id;
+        }
+
+        public void setId(String id) {
+            this.id = id;
+        }
+
+        public String getCreateUser() {
+            return createUser;
+        }
+
+        public void setCreateUser(String createUser) {
+            this.createUser = createUser;
+        }
+
+        public String getCreateDept() {
+            return createDept;
+        }
+
+        public void setCreateDept(String createDept) {
+            this.createDept = createDept;
+        }
+
+        public String getCreateTime() {
+            return createTime;
+        }
+
+        public void setCreateTime(String createTime) {
+            this.createTime = createTime;
+        }
+
+        public String getUpdateUser() {
+            return updateUser;
+        }
+
+        public void setUpdateUser(String updateUser) {
+            this.updateUser = updateUser;
+        }
+
+        public String getUpdateTime() {
+            return updateTime;
+        }
+
+        public void setUpdateTime(String updateTime) {
+            this.updateTime = updateTime;
+        }
+
+        public int getStatus() {
+            return status;
+        }
+
+        public void setStatus(int status) {
+            this.status = status;
+        }
+
+        public int getIsDeleted() {
+            return isDeleted;
+        }
+
+        public void setIsDeleted(int isDeleted) {
+            this.isDeleted = isDeleted;
+        }
+
+        public String getJfmc() {
+            return jfmc;
+        }
+
+        public void setJfmc(String jfmc) {
+            this.jfmc = jfmc;
+        }
+
+        public String getJflx() {
+            return jflx;
+        }
+
+        public void setJflx(String jflx) {
+            this.jflx = jflx;
+        }
+
+        public String getJfyy() {
+            return jfyy;
+        }
+
+        public void setJfyy(String jfyy) {
+            this.jfyy = jfyy;
+        }
+
+        public String getJffssj() {
+            return jffssj;
+        }
+
+        public void setJffssj(String jffssj) {
+            this.jffssj = jffssj;
+        }
+
+        public String getJffsdd() {
+            return jffsdd;
+        }
+
+        public void setJffsdd(String jffsdd) {
+            this.jffsdd = jffsdd;
+        }
+
+        public String getJyaq() {
+            return jyaq;
+        }
+
+        public void setJyaq(String jyaq) {
+            this.jyaq = jyaq;
+        }
+
+        public String getJfdjsj() {
+            return jfdjsj;
+        }
+
+        public void setJfdjsj(String jfdjsj) {
+            this.jfdjsj = jfdjsj;
+        }
+
+        public String getJfsssq() {
+            return jfsssq;
+        }
+
+        public void setJfsssq(String jfsssq) {
+            this.jfsssq = jfsssq;
+        }
+
+        public String getJfsspcs() {
+            return jfsspcs;
+        }
+
+        public void setJfsspcs(String jfsspcs) {
+            this.jfsspcs = jfsspcs;
+        }
+
+        public String getJfssfj() {
+            return jfssfj;
+        }
+
+        public void setJfssfj(String jfssfj) {
+            this.jfssfj = jfssfj;
+        }
+
+        public String getSbzt() {
+            return sbzt;
+        }
+
+        public void setSbzt(String sbzt) {
+            this.sbzt = sbzt;
+        }
+
+        public String getSbsj() {
+            return sbsj;
+        }
+
+        public void setSbsj(String sbsj) {
+            this.sbsj = sbsj;
+        }
+
+        public String getSbdw() {
+            return sbdw;
+        }
+
+        public void setSbdw(String sbdw) {
+            this.sbdw = sbdw;
+        }
+
+        public String getYjzt() {
+            return yjzt;
+        }
+
+        public void setYjzt(String yjzt) {
+            this.yjzt = yjzt;
+        }
+
+        public String getYjsj() {
+            return yjsj;
+        }
+
+        public void setYjsj(String yjsj) {
+            this.yjsj = yjsj;
+        }
+
+        public String getYjdw() {
+            return yjdw;
+        }
+
+        public void setYjdw(String yjdw) {
+            this.yjdw = yjdw;
+        }
+
+        public String getFksj() {
+            return fksj;
+        }
+
+        public void setFksj(String fksj) {
+            this.fksj = fksj;
+        }
+
+        public String getFknr() {
+            return fknr;
+        }
+
+        public void setFknr(String fknr) {
+            this.fknr = fknr;
+        }
+
+        public String getFkr() {
+            return fkr;
+        }
+
+        public void setFkr(String fkr) {
+            this.fkr = fkr;
+        }
+
+        public String getFkdw() {
+            return fkdw;
+        }
+
+        public void setFkdw(String fkdw) {
+            this.fkdw = fkdw;
+        }
+
+        public String getDjr() {
+            return djr;
+        }
+
+        public void setDjr(String djr) {
+            this.djr = djr;
+        }
+
+        public String getMdjb() {
+            return mdjb;
+        }
+
+        public void setMdjb(String mdjb) {
+            this.mdjb = mdjb;
+        }
+
+        public String getZp() {
+            return zp;
+        }
+
+        public void setZp(String zp) {
+            this.zp = zp;
+        }
+
+        public String getSqName() {
+            return sqName;
+        }
+
+        public void setSqName(String sqName) {
+            this.sqName = sqName;
+        }
+
+        public String getPcsName() {
+            return pcsName;
+        }
+
+        public void setPcsName(String pcsName) {
+            this.pcsName = pcsName;
+        }
+
+        public String getCreateName() {
+            return createName;
+        }
+
+        public void setCreateName(String createName) {
+            this.createName = createName;
+        }
+
+        public MdjfDjBean getMdjfDj() {
+            return mdjfDj;
+        }
+
+        public void setMdjfDj(MdjfDjBean mdjfDj) {
+            this.mdjfDj = mdjfDj;
+        }
+
+        public List<MdjfRyListBean> getMdjfRyList() {
+            return mdjfRyList;
+        }
+
+        public void setMdjfRyList(List<MdjfRyListBean> mdjfRyList) {
+            this.mdjfRyList = mdjfRyList;
+        }
+
+        public List<?> getMdjfTjList() {
+            return mdjfTjList;
+        }
+
+        public void setMdjfTjList(List<?> mdjfTjList) {
+            this.mdjfTjList = mdjfTjList;
+        }
+
+        public static class MdjfDjBean implements Serializable {
+            /**
+             * id : 1686648898834546690
+             * createUser : 1123598821738675201
+             * createDept : 1677212139158364161
+             * createTime : 2023-08-02 16:03:28
+             * updateUser : 1123598821738675201
+             * updateTime : 2023-08-02 16:03:28
+             * status : 1
+             * isDeleted : 0
+             * jfmc : 纠纷名称
+             * jflx : 纠纷类型
+             * jfyy : 纠纷原因
+             * jffssj : 2023-08-01 08:09:10
+             * jffsdd : 纠纷发生地点
+             * jyaq : 简要案情
+             * jfdjsj :
+             * jfsssq : -1
+             * jfsspcs : -1
+             * jfssfj : -1
+             * sbzt :
+             * sbsj :
+             * sbdw : -1
+             * yjzt :
+             * yjsj :
+             * yjdw : -1
+             * fksj :
+             * fknr :
+             * fkr :
+             * fkdw : -1
+             * djr : -1
+             * mdjb :
+             * zp :
+             * sqName :
+             * pcsName :
+             * createName :
+             */
+            private String sfsc;
+            private String sfmy;
+            private String sfjj;
+            private String wtjy;
+            private String thjl;
+            private String zzdw;
+
+            public String getZzdw() {
+                return zzdw;
+            }
+
+            public void setZzdw(String zzdw) {
+                this.zzdw = zzdw;
+            }
+
+            public String getSfsc() {
+                return sfsc;
+            }
+
+            public void setSfsc(String sfsc) {
+                this.sfsc = sfsc;
+            }
+
+            public String getSfmy() {
+                return sfmy;
+            }
+
+            public void setSfmy(String sfmy) {
+                this.sfmy = sfmy;
+            }
+
+            public String getSfjj() {
+                return sfjj;
+            }
+
+            public void setSfjj(String sfjj) {
+                this.sfjj = sfjj;
+            }
+
+            public String getWtjy() {
+                return wtjy;
+            }
+
+            public void setWtjy(String wtjy) {
+                this.wtjy = wtjy;
+            }
+
+            public String getThjl() {
+                return thjl;
+            }
+
+            public void setThjl(String thjl) {
+                this.thjl = thjl;
+            }
+
+            private String id;
+            private String createUser;
+            private String createDept;
+            private String createTime;
+            private String updateUser;
+            private String updateTime;
+            private int status;
+            private int isDeleted;
+            private String jfmc;
+            private String jflx;
+            private String jfyy;
+            private String jffssj;
+            private String jffsdd;
+            private String jyaq;
+            private String bz;
+            private String mdjbVVlaue;
+
+            public String getBz() {
+                return bz;
+            }
+
+            public void setBz(String bz) {
+                this.bz = bz;
+            }
+
+            private String jfdjsj;
+            private String jfsssq;
+            private String jfsspcs;
+            private String jfssfj;
+            private String sbzt;
+            private String sbsj;
+            private String sbdw;
+            private String yjzt;
+            private String yjsj;
+            private String yjdw;
+            private String fksj;
+            private String fknr;
+            private String fkr;
+            private String fkdw;
+            private String djr;
+            private String mdjb;
+            private String jfly;
+            private String bjrdh;
+            private String zp;
+            private String sqName;
+            private String hfnr;
+            private String hfsj;
+            private String hfr;
+
+            public String getBjrdh() {
+                return bjrdh;
+            }
+
+            public void setBjrdh(String bjrdh) {
+                this.bjrdh = bjrdh;
+            }
+
+            public String getHfsj() {
+                return hfsj;
+            }
+
+            public void setHfsj(String hfsj) {
+                this.hfsj = hfsj;
+            }
+
+            public String getHfr() {
+                return hfr;
+            }
+
+            public void setHfr(String hfr) {
+                this.hfr = hfr;
+            }
+
+            public String getHfnr() {
+                return hfnr;
+            }
+
+            public void setHfnr(String hfnr) {
+                this.hfnr = hfnr;
+            }
+
+            public String getMdjbVVlaue() {
+                return mdjbVVlaue;
+            }
+
+            public void setMdjbVVlaue(String mdjbVVlaue) {
+                this.mdjbVVlaue = mdjbVVlaue;
+            }
+
+            public String getJfly() {
+                return jfly;
+            }
+
+            public void setJfly(String jfly) {
+                this.jfly = jfly;
+            }
+
+            private String pcsName;
+            private String createName;
+
+            public String getId() {
+                return id;
+            }
+
+            public void setId(String id) {
+                this.id = id;
+            }
+
+            public String getCreateUser() {
+                return createUser;
+            }
+
+            public void setCreateUser(String createUser) {
+                this.createUser = createUser;
+            }
+
+            public String getCreateDept() {
+                return createDept;
+            }
+
+            public void setCreateDept(String createDept) {
+                this.createDept = createDept;
+            }
+
+            public String getCreateTime() {
+                return createTime;
+            }
+
+            public void setCreateTime(String createTime) {
+                this.createTime = createTime;
+            }
+
+            public String getUpdateUser() {
+                return updateUser;
+            }
+
+            public void setUpdateUser(String updateUser) {
+                this.updateUser = updateUser;
+            }
+
+            public String getUpdateTime() {
+                return updateTime;
+            }
+
+            public void setUpdateTime(String updateTime) {
+                this.updateTime = updateTime;
+            }
+
+            public int getStatus() {
+                return status;
+            }
+
+            public void setStatus(int status) {
+                this.status = status;
+            }
+
+            public int getIsDeleted() {
+                return isDeleted;
+            }
+
+            public void setIsDeleted(int isDeleted) {
+                this.isDeleted = isDeleted;
+            }
+
+            public String getJfmc() {
+                return jfmc;
+            }
+
+            public void setJfmc(String jfmc) {
+                this.jfmc = jfmc;
+            }
+
+            public String getJflx() {
+                return jflx;
+            }
+
+            public void setJflx(String jflx) {
+                this.jflx = jflx;
+            }
+
+            public String getJfyy() {
+                return jfyy;
+            }
+
+            public void setJfyy(String jfyy) {
+                this.jfyy = jfyy;
+            }
+
+            public String getJffssj() {
+                return jffssj;
+            }
+
+            public void setJffssj(String jffssj) {
+                this.jffssj = jffssj;
+            }
+
+            public String getJffsdd() {
+                return jffsdd;
+            }
+
+            public void setJffsdd(String jffsdd) {
+                this.jffsdd = jffsdd;
+            }
+
+            public String getJyaq() {
+                return jyaq;
+            }
+
+            public void setJyaq(String jyaq) {
+                this.jyaq = jyaq;
+            }
+
+            public String getJfdjsj() {
+                return jfdjsj;
+            }
+
+            public void setJfdjsj(String jfdjsj) {
+                this.jfdjsj = jfdjsj;
+            }
+
+
+            public String getSbzt() {
+                return sbzt;
+            }
+
+            public void setSbzt(String sbzt) {
+                this.sbzt = sbzt;
+            }
+
+            public String getSbsj() {
+                return sbsj;
+            }
+
+            public void setSbsj(String sbsj) {
+                this.sbsj = sbsj;
+            }
+
+
+            public String getYjzt() {
+                return yjzt;
+            }
+
+            public void setYjzt(String yjzt) {
+                this.yjzt = yjzt;
+            }
+
+            public String getYjsj() {
+                return yjsj;
+            }
+
+            public void setYjsj(String yjsj) {
+                this.yjsj = yjsj;
+            }
+
+
+            public String getFksj() {
+                return fksj;
+            }
+
+            public void setFksj(String fksj) {
+                this.fksj = fksj;
+            }
+
+            public String getFknr() {
+                return fknr;
+            }
+
+            public void setFknr(String fknr) {
+                this.fknr = fknr;
+            }
+
+            public String getFkr() {
+                return fkr;
+            }
+
+            public void setFkr(String fkr) {
+                this.fkr = fkr;
+            }
+
+            public String getJfsssq() {
+                return jfsssq;
+            }
+
+            public void setJfsssq(String jfsssq) {
+                this.jfsssq = jfsssq;
+            }
+
+            public String getJfsspcs() {
+                return jfsspcs;
+            }
+
+            public void setJfsspcs(String jfsspcs) {
+                this.jfsspcs = jfsspcs;
+            }
+
+            public String getJfssfj() {
+                return jfssfj;
+            }
+
+            public void setJfssfj(String jfssfj) {
+                this.jfssfj = jfssfj;
+            }
+
+            public String getSbdw() {
+                return sbdw;
+            }
+
+            public void setSbdw(String sbdw) {
+                this.sbdw = sbdw;
+            }
+
+            public String getYjdw() {
+                return yjdw;
+            }
+
+            public void setYjdw(String yjdw) {
+                this.yjdw = yjdw;
+            }
+
+            public String getFkdw() {
+                return fkdw;
+            }
+
+            public void setFkdw(String fkdw) {
+                this.fkdw = fkdw;
+            }
+
+            public String getDjr() {
+                return djr;
+            }
+
+            public void setDjr(String djr) {
+                this.djr = djr;
+            }
+
+            public String getMdjb() {
+                return mdjb;
+            }
+
+            public void setMdjb(String mdjb) {
+                this.mdjb = mdjb;
+            }
+
+            public String getZp() {
+                return zp;
+            }
+
+            public void setZp(String zp) {
+                this.zp = zp;
+            }
+
+            public String getSqName() {
+                return sqName;
+            }
+
+            public void setSqName(String sqName) {
+                this.sqName = sqName;
+            }
+
+            public String getPcsName() {
+                return pcsName;
+            }
+
+            public void setPcsName(String pcsName) {
+                this.pcsName = pcsName;
+            }
+
+            public String getCreateName() {
+                return createName;
+            }
+
+            public void setCreateName(String createName) {
+                this.createName = createName;
+            }
+        }
+
+        public static class MdjfRyListBean implements Serializable {
+            /**
+             * id : 1686648898901655553
+             * createUser : 1123598821738675201
+             * createDept : 1677212139158364161
+             * createTime : 2023-08-02 16:03:28
+             * updateUser : 1123598821738675201
+             * updateTime : 2023-08-02 16:03:28
+             * status : 1
+             * isDeleted : 0
+             * jfId : 1686648898834546690
+             * xm : 姓名1
+             * xb : 性别1
+             * sfzh : 身份证号1
+             * lxdh : 联系电话1
+             * lb : 类别1
+             */
+
+            private String id;
+            private String createUser;
+            private String createDept;
+            private String createTime;
+            private String updateUser;
+            private String updateTime;
+            private int status;
+            private int isDeleted;
+            private String jfId;
+            private String xm;
+            private String xb;
+            private String sfzh;
+            private String lxdh;
+            private String lb;
+            private String qmzp;
+            private String hfzp;
+
+            public String getQmzp() {
+                return qmzp;
+            }
+
+            public void setQmzp(String qmzp) {
+                this.qmzp = qmzp;
+            }
+
+            public String getHfzp() {
+                return hfzp;
+            }
+
+            public void setHfzp(String hfzp) {
+                this.hfzp = hfzp;
+            }
+
+            private boolean isChecked; // 是否选中CheckBox
+
+            public boolean isChecked() {
+                return isChecked;
+            }
+
+            public void setChecked(boolean checked) {
+                isChecked = checked;
+            }
+
+            public String getRyzp() {
+                return ryzp;
+            }
+
+            public void setRyzp(String ryzp) {
+                this.ryzp = ryzp;
+            }
+
+            private String ryzp;
+
+            public String getId() {
+                return id;
+            }
+
+            public void setId(String id) {
+                this.id = id;
+            }
+
+            public String getCreateUser() {
+                return createUser;
+            }
+
+            public void setCreateUser(String createUser) {
+                this.createUser = createUser;
+            }
+
+            public String getCreateDept() {
+                return createDept;
+            }
+
+            public void setCreateDept(String createDept) {
+                this.createDept = createDept;
+            }
+
+            public String getCreateTime() {
+                return createTime;
+            }
+
+            public void setCreateTime(String createTime) {
+                this.createTime = createTime;
+            }
+
+            public String getUpdateUser() {
+                return updateUser;
+            }
+
+            public void setUpdateUser(String updateUser) {
+                this.updateUser = updateUser;
+            }
+
+            public String getUpdateTime() {
+                return updateTime;
+            }
+
+            public void setUpdateTime(String updateTime) {
+                this.updateTime = updateTime;
+            }
+
+            public int getStatus() {
+                return status;
+            }
+
+            public void setStatus(int status) {
+                this.status = status;
+            }
+
+            public int getIsDeleted() {
+                return isDeleted;
+            }
+
+            public void setIsDeleted(int isDeleted) {
+                this.isDeleted = isDeleted;
+            }
+
+            public String getJfId() {
+                return jfId;
+            }
+
+            public void setJfId(String jfId) {
+                this.jfId = jfId;
+            }
+
+            public String getXm() {
+                return xm;
+            }
+
+            public void setXm(String xm) {
+                this.xm = xm;
+            }
+
+            public String getXb() {
+                return xb;
+            }
+
+            public void setXb(String xb) {
+                this.xb = xb;
+            }
+
+            public String getSfzh() {
+                return sfzh;
+            }
+
+            public void setSfzh(String sfzh) {
+                this.sfzh = sfzh;
+            }
+
+            public String getLxdh() {
+                return lxdh;
+            }
+
+            public void setLxdh(String lxdh) {
+                this.lxdh = lxdh;
+            }
+
+            public String getLb() {
+                return lb;
+            }
+
+            public void setLb(String lb) {
+                this.lb = lb;
+            }
+        }
+    }
+}

+ 79 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/PersonEntity.java

@@ -0,0 +1,79 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+
+public class PersonEntity implements Serializable {
+    private String xm;
+    private String xb;
+    private String sfzh;
+    private String lxdh;
+    private String ryzp;
+    private String id;
+    private boolean isModify;
+
+    public boolean isModify() {
+        return isModify;
+    }
+
+    public void setModify(boolean modify) {
+        isModify = modify;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getRyzp() {
+        return ryzp;
+    }
+
+    public void setRyzp(String ryzp) {
+        this.ryzp = ryzp;
+    }
+
+    public String getXm() {
+        return xm;
+    }
+
+    public void setXm(String xm) {
+        this.xm = xm;
+    }
+
+    public String getXb() {
+        return xb;
+    }
+
+    public void setXb(String xb) {
+        this.xb = xb;
+    }
+
+    public String getSfzh() {
+        return sfzh;
+    }
+
+    public void setSfzh(String sfzh) {
+        this.sfzh = sfzh;
+    }
+
+    public String getLxdh() {
+        return lxdh;
+    }
+
+    public void setLxdh(String lxdh) {
+        this.lxdh = lxdh;
+    }
+
+    public String getLb() {
+        return lb;
+    }
+
+    public void setLb(String lb) {
+        this.lb = lb;
+    }
+
+    private String lb;
+}

+ 405 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/RwEntity.java

@@ -0,0 +1,405 @@
+package com.xwkj.rhzf.mvp.model.entity;
+
+import java.io.Serializable;
+import java.util.List;
+
+public class RwEntity {
+
+    /**
+     * code : 200
+     * success : true
+     * data : {"records":[{"id":"1702191084710408194","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-09-14 13:22:34","updateUser":"1123598821738675201","updateTime":"2023-09-14 13:22:34","status":1,"isDeleted":0,"rwly":"mdjf_dj","rwmc":"测试1234123","rwid":"1702191084383252482","rwzt":"未签收","rwjssj":"","rwxfsj":"2023-09-14 13:22:34","userId":-1,"sssq":"1686572435324878850"}],"total":1,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"searchCount":true,"maxLimit":-1,"countId":"","pages":1}
+     * msg : 操作成功
+     */
+
+    private int code;
+    private boolean success;
+    private DataBean data;
+    private String msg;
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+
+    public boolean isSuccess() {
+        return success;
+    }
+
+    public void setSuccess(boolean success) {
+        this.success = success;
+    }
+
+    public DataBean getData() {
+        return data;
+    }
+
+    public void setData(DataBean data) {
+        this.data = data;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public static class DataBean {
+        /**
+         * records : [{"id":"1702191084710408194","createUser":"1123598821738675201","createDept":"1677212139158364161","createTime":"2023-09-14 13:22:34","updateUser":"1123598821738675201","updateTime":"2023-09-14 13:22:34","status":1,"isDeleted":0,"rwly":"mdjf_dj","rwmc":"测试1234123","rwid":"1702191084383252482","rwzt":"未签收","rwjssj":"","rwxfsj":"2023-09-14 13:22:34","userId":-1,"sssq":"1686572435324878850"}]
+         * total : 1
+         * size : 10
+         * current : 1
+         * orders : []
+         * optimizeCountSql : true
+         * searchCount : true
+         * maxLimit : -1
+         * countId :
+         * pages : 1
+         */
+
+        private int total;
+        private int size;
+        private int current;
+        private boolean optimizeCountSql;
+        private boolean searchCount;
+        private int maxLimit;
+        private String countId;
+        private int pages;
+        private List<RecordsBean> records;
+        private List<?> orders;
+
+        public int getTotal() {
+            return total;
+        }
+
+        public void setTotal(int total) {
+            this.total = total;
+        }
+
+        public int getSize() {
+            return size;
+        }
+
+        public void setSize(int size) {
+            this.size = size;
+        }
+
+        public int getCurrent() {
+            return current;
+        }
+
+        public void setCurrent(int current) {
+            this.current = current;
+        }
+
+        public boolean isOptimizeCountSql() {
+            return optimizeCountSql;
+        }
+
+        public void setOptimizeCountSql(boolean optimizeCountSql) {
+            this.optimizeCountSql = optimizeCountSql;
+        }
+
+        public boolean isSearchCount() {
+            return searchCount;
+        }
+
+        public void setSearchCount(boolean searchCount) {
+            this.searchCount = searchCount;
+        }
+
+        public int getMaxLimit() {
+            return maxLimit;
+        }
+
+        public void setMaxLimit(int maxLimit) {
+            this.maxLimit = maxLimit;
+        }
+
+        public String getCountId() {
+            return countId;
+        }
+
+        public void setCountId(String countId) {
+            this.countId = countId;
+        }
+
+        public int getPages() {
+            return pages;
+        }
+
+        public void setPages(int pages) {
+            this.pages = pages;
+        }
+
+        public List<RecordsBean> getRecords() {
+            return records;
+        }
+
+        public void setRecords(List<RecordsBean> records) {
+            this.records = records;
+        }
+
+        public List<?> getOrders() {
+            return orders;
+        }
+
+        public void setOrders(List<?> orders) {
+            this.orders = orders;
+        }
+
+        public static class RecordsBean implements Serializable {
+            /**
+             * id : 1702191084710408194
+             * createUser : 1123598821738675201
+             * createDept : 1677212139158364161
+             * createTime : 2023-09-14 13:22:34
+             * updateUser : 1123598821738675201
+             * updateTime : 2023-09-14 13:22:34
+             * status : 1
+             * isDeleted : 0
+             * rwly : mdjf_dj
+             * rwmc : 测试1234123
+             * rwid : 1702191084383252482
+             * rwzt : 未签收
+             * rwjssj :
+             * rwxfsj : 2023-09-14 13:22:34
+             * userId : -1
+             * sssq : 1686572435324878850
+             */
+
+            private String id;
+            private String createUser;
+            private String createDept;
+            private String createTime;
+            private String updateUser;
+            private String updateTime;
+            private int status;
+            private int isDeleted;
+            private String rwly; // wgr_info,mdjf_dj
+            private String rwmc;
+            private String rwid;
+            private String rwzt;
+            private String rwjssj;
+            private String rwxfsj;
+            private String userId;
+            private String sssq;
+            private String rwlx;
+            private String zl;
+            private String bjrdh;
+            private String jflx;
+            private String jfyy;
+            private String jffsdd;
+            private String type;
+            private List<MdjfXqEntity.DataBean.MdjfRyListBean> mdjfRyList;
+
+            public String getType() {
+                return type;
+            }
+
+            public void setType(String type) {
+                this.type = type;
+            }
+
+            public String getJflx() {
+                return jflx;
+            }
+
+            public void setJflx(String jflx) {
+                this.jflx = jflx;
+            }
+
+            public String getJfyy() {
+                return jfyy;
+            }
+
+            public void setJfyy(String jfyy) {
+                this.jfyy = jfyy;
+            }
+
+            public String getJffsdd() {
+                return jffsdd;
+            }
+
+            public void setJffsdd(String jffsdd) {
+                this.jffsdd = jffsdd;
+            }
+
+            public List<MdjfXqEntity.DataBean.MdjfRyListBean> getMdjfRyList() {
+                return mdjfRyList;
+            }
+
+            public void setMdjfRyList(List<MdjfXqEntity.DataBean.MdjfRyListBean> mdjfRyList) {
+                this.mdjfRyList = mdjfRyList;
+            }
+
+            public String getBjrdh() {
+                return bjrdh;
+            }
+
+            public void setBjrdh(String bjrdh) {
+                this.bjrdh = bjrdh;
+            }
+
+            public String getZl() {
+                return zl;
+            }
+
+            public void setZl(String zl) {
+                this.zl = zl;
+            }
+
+            public String getBz() {
+                return bz;
+            }
+
+            public void setBz(String bz) {
+                this.bz = bz;
+            }
+
+            private String bz;
+
+            public String getRwlx() {
+                return rwlx;
+            }
+
+            public void setRwlx(String rwlx) {
+                this.rwlx = rwlx;
+            }
+
+            public String getId() {
+                return id;
+            }
+
+            public void setId(String id) {
+                this.id = id;
+            }
+
+            public String getCreateUser() {
+                return createUser;
+            }
+
+            public void setCreateUser(String createUser) {
+                this.createUser = createUser;
+            }
+
+            public String getCreateDept() {
+                return createDept;
+            }
+
+            public void setCreateDept(String createDept) {
+                this.createDept = createDept;
+            }
+
+            public String getCreateTime() {
+                return createTime;
+            }
+
+            public void setCreateTime(String createTime) {
+                this.createTime = createTime;
+            }
+
+            public String getUpdateUser() {
+                return updateUser;
+            }
+
+            public void setUpdateUser(String updateUser) {
+                this.updateUser = updateUser;
+            }
+
+            public String getUpdateTime() {
+                return updateTime;
+            }
+
+            public void setUpdateTime(String updateTime) {
+                this.updateTime = updateTime;
+            }
+
+            public int getStatus() {
+                return status;
+            }
+
+            public void setStatus(int status) {
+                this.status = status;
+            }
+
+            public int getIsDeleted() {
+                return isDeleted;
+            }
+
+            public void setIsDeleted(int isDeleted) {
+                this.isDeleted = isDeleted;
+            }
+
+            public String getRwly() {
+                return rwly;
+            }
+
+            public void setRwly(String rwly) {
+                this.rwly = rwly;
+            }
+
+            public String getRwmc() {
+                return rwmc;
+            }
+
+            public void setRwmc(String rwmc) {
+                this.rwmc = rwmc;
+            }
+
+            public String getRwid() {
+                return rwid;
+            }
+
+            public void setRwid(String rwid) {
+                this.rwid = rwid;
+            }
+
+            public String getRwzt() {
+                return rwzt;
+            }
+
+            public void setRwzt(String rwzt) {
+                this.rwzt = rwzt;
+            }
+
+            public String getRwjssj() {
+                return rwjssj;
+            }
+
+            public void setRwjssj(String rwjssj) {
+                this.rwjssj = rwjssj;
+            }
+
+            public String getRwxfsj() {
+                return rwxfsj;
+            }
+
+            public void setRwxfsj(String rwxfsj) {
+                this.rwxfsj = rwxfsj;
+            }
+
+            public String getUserId() {
+                return userId;
+            }
+
+            public void setUserId(String userId) {
+                this.userId = userId;
+            }
+
+            public String getSssq() {
+                return sssq;
+            }
+
+            public void setSssq(String sssq) {
+                this.sssq = sssq;
+            }
+        }
+    }
+}

Plik diff jest za duży
+ 10 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/model/entity/TjLbEntity.java


+ 267 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/AddJfPresenter.java

@@ -0,0 +1,267 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import io.reactivex.android.schedulers.AndroidSchedulers;
+import io.reactivex.schedulers.Schedulers;
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+import me.jessyan.rxerrorhandler.handler.ErrorHandleSubscriber;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+import timber.log.Timber;
+
+import javax.inject.Inject;
+
+import com.jess.arms.utils.RxLifecycleUtils;
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.AddJfContract;
+import com.xwkj.rhzf.mvp.model.entity.MdjfXqEntity;
+import com.xwkj.rhzf.mvp.model.entity.NormalEntity;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class AddJfPresenter extends BasePresenter<AddJfContract.Model, AddJfContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public AddJfPresenter(AddJfContract.Model model, AddJfContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void mdkfDj(Map<String, Object> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfDjController");
+        map1.put("methodName", "mdjfDj");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result, 0);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void mdkfXg(Map<String, Object> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfDjController");
+        map1.put("methodName", "updateByApp");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+
+                Utils.getInstances().dismissDialog();
+                if (mRootView != null) {
+                    NormalEntity entity = new Gson().fromJson(result, NormalEntity.class);
+                    int code = entity.getCode();
+                    if (code == 200) {
+                        if (mRootView != null) {
+                            mRootView.onXgSuccess(result);
+                        }
+                    } else {
+                        ToastUtils.show(entity.getMsg());
+                    }
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void getMdjfdj(Map<String, String> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfDjController");
+        map1.put("methodName", "getMddjzd");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onGetMdjfDjSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("获取数据失败,请退出当前页面重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void zd() {
+        Map<String, String> map = new HashMap<>();
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "appMenuController");
+        map1.put("methodName", "getDeptList");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null)
+                    mRootView.onDit(result);
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void uploadImg(@Body MultipartBody multipartBody, int flag) {
+
+        mModel.uploadImg(multipartBody)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        if (mRootView != null) {
+                            String result = jsonObject.toString();
+                            mRootView.onSuccess(result, flag);
+                        }
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常,请稍后再试" + t.getMessage());
+                    }
+                });
+    }
+
+    public void getJfZd(Map<String, String> map, int flag) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfDjController");
+        map1.put("methodName", "selectJflx");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onZdSuccess(result, flag);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void getJfxq(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "detailById");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                MdjfXqEntity entity = new Gson().fromJson(result, MdjfXqEntity.class);
+                if (entity.getCode() == 200) {
+                    if (mRootView != null) {
+                        mRootView.getJfDataSuccess(entity.getData());
+                    }
+                } else {
+
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+
+    }
+}

+ 146 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/AddPersonPresenter.java

@@ -0,0 +1,146 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.google.gson.JsonObject;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import io.reactivex.android.schedulers.AndroidSchedulers;
+import io.reactivex.schedulers.Schedulers;
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+import me.jessyan.rxerrorhandler.handler.ErrorHandleSubscriber;
+import okhttp3.MultipartBody;
+import timber.log.Timber;
+
+import javax.inject.Inject;
+
+import com.jess.arms.utils.RxLifecycleUtils;
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.AddPersonContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class AddPersonPresenter extends BasePresenter<AddPersonContract.Model, AddPersonContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public AddPersonPresenter(AddPersonContract.Model model, AddPersonContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+    public void uploadImg(MultipartBody multipartBody) {
+
+        mModel.uploadImg(multipartBody)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        if (mRootView != null) {
+                            String result = jsonObject.toString();
+                            if (result.contains("172.16.1.41")) {
+                                result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                            }
+                            mRootView.onSuccess(result);
+                        }
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常,请稍后再试" + t.getMessage());
+                    }
+                });
+    }
+
+    public void mdrygx(Map<String, String> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfRyController");
+        map1.put("methodName", "update");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onUpdate(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("上报失败,请重试");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+    public void verifyRy(Map<String, String> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "fwInfoController");
+        map1.put("methodName", "getZtry");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null)
+                    mRootView.getRyDataSuccess(result);
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+}

+ 53 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/GdMapPresenter.java

@@ -0,0 +1,53 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.GdMapContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class GdMapPresenter extends BasePresenter<GdMapContract.Model, GdMapContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public GdMapPresenter(GdMapContract.Model model, GdMapContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+}

+ 111 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/HfPresenter.java

@@ -0,0 +1,111 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.FragmentScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.HfContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:43
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class HfPresenter extends BasePresenter<HfContract.Model, HfContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public HfPresenter(HfContract.Model model, HfContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void getMddjLb(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "pageToApp");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+
+    public void mdgz(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "update");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onYgz(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("关注失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+}

+ 209 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdDjXqPresenter.java

@@ -0,0 +1,209 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.google.gson.JsonObject;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import io.reactivex.android.schedulers.AndroidSchedulers;
+import io.reactivex.schedulers.Schedulers;
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+import me.jessyan.rxerrorhandler.handler.ErrorHandleSubscriber;
+import okhttp3.MultipartBody;
+import timber.log.Timber;
+
+import javax.inject.Inject;
+
+import com.jess.arms.utils.RxLifecycleUtils;
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.MdDjXqContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdDjXqPresenter extends BasePresenter<MdDjXqContract.Model, MdDjXqContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public MdDjXqPresenter(MdDjXqContract.Model model, MdDjXqContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void uploadImg(MultipartBody multipartBody) {
+
+        mModel.uploadImg(multipartBody)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        if (mRootView != null) {
+                            String result = jsonObject.toString();
+                            if (result.contains("172.16.1.41")) {
+                                result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                            }
+                            mRootView.onImageSuccess(result);
+                        }
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常,请稍后再试" + t.getMessage());
+                    }
+                });
+    }
+    //blade-mdjfdj/mdjfdj/detailById
+    public void getJfxq(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "detailById");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+        /*mModel.getJfxq(map)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        if (result.contains("172.16.1.41")) {
+                            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                        }
+                        mRootView.onSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常!");
+                    }
+                });*/
+
+    }
+
+    //("/blade-hf/hf/save")
+    public void mdhf(Map<String, Object> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "hfController");
+        param.put("methodName", "save");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onHfSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("回访上传失败");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+        /*RequestBody body = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), JsonMapUtil.map2jsonstr(map));
+        mModel.mdhf(body)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                }).subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        System.out.println("回访" + result);
+                        mRootView.onHfSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("回访上传失败");
+                    }
+
+                    @Override
+                    public void onComplete() {
+                        super.onComplete();
+
+                    }
+                });*/
+    }
+}

+ 113 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdTjLbPresenter.java

@@ -0,0 +1,113 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.MdTjLbContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdTjLbPresenter extends BasePresenter<MdTjLbContract.Model, MdTjLbContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public MdTjLbPresenter(MdTjLbContract.Model model, MdTjLbContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+    public void getTjJl(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfTjController");
+        param.put("methodName", "page");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+        /*mModel.getTjJl(map)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        if (result.contains("172.16.1.41")) {
+                            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+
+                        }
+                        mRootView.onSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常!");
+                    }
+                });*/
+
+    }
+}

+ 166 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdgzPresenter.java

@@ -0,0 +1,166 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.FragmentScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.MdgzContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:56
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class MdgzPresenter extends BasePresenter<MdgzContract.Model, MdgzContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public MdgzPresenter(MdgzContract.Model model, MdgzContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void getMddjLb(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "pageToApp");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+       /* mModel.getMddjLb(map)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        if (result.contains("172.16.1.41")) {
+                            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                        }
+                        mRootView.onSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常!");
+                    }
+                });
+*/
+    }
+
+    public void mdgz(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "update");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onYgz(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+      /*  RequestBody body = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), JsonMapUtil.map2jsonstr(map));
+        mModel.mdgz(body)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                }).subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        System.out.println("上传信息成功" + result);
+                        if (mRootView != null)
+                            if (result.contains("172.16.1.41")) {
+                                result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                            }
+                        mRootView.onYgz(result);
+
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        ToastUtils.show("提交失败,请重试!");
+                    }
+                });*/
+    }
+}

+ 86 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdhfjlPresenter.java

@@ -0,0 +1,86 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.MdhfjlContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdhfjlPresenter extends BasePresenter<MdhfjlContract.Model, MdhfjlContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public MdhfjlPresenter(MdhfjlContract.Model model, MdhfjlContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void getHfJl(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "hfController");
+        param.put("methodName", "listByJfId");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+}

+ 53 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/MdjfPresenter.java

@@ -0,0 +1,53 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.MdjfContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class MdjfPresenter extends BasePresenter<MdjfContract.Model, MdjfContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public MdjfPresenter(MdjfContract.Model model, MdjfContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+}

+ 152 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjJfPresenter.java

@@ -0,0 +1,152 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.google.gson.JsonObject;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import io.reactivex.android.schedulers.AndroidSchedulers;
+import io.reactivex.schedulers.Schedulers;
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+import me.jessyan.rxerrorhandler.handler.ErrorHandleSubscriber;
+import okhttp3.MultipartBody;
+import retrofit2.http.Body;
+import timber.log.Timber;
+
+import javax.inject.Inject;
+
+import com.jess.arms.utils.RxLifecycleUtils;
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.TjJfContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:17
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjJfPresenter extends BasePresenter<TjJfContract.Model, TjJfContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public TjJfPresenter(TjJfContract.Model model, TjJfContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void uploadImg(@Body MultipartBody multipartBody, int flag) {
+
+        mModel.uploadImg(multipartBody)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        if (mRootView != null) {
+                            String result = jsonObject.toString();
+                            if (result.contains("172.16.1.41")) {
+                                result = result.replaceAll("172.16.1.41", "111.26.204.4");
+
+                            }
+                            mRootView.onSuccess(result, flag);
+                        }
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常,请稍后再试" + t.getMessage());
+                    }
+                });
+    }
+
+    public void mdjfTj(Map<String, Object> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfTjController");
+        map1.put("methodName", "save");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null)
+                    mRootView.onSuccess(result, 2);
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+      /*  String content = JsonMapUtil.map2jsonstr(map);
+        System.out.println(content);
+        RequestBody body = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), content);
+
+        mModel.mdjfTj(body)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                }).subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        System.out.println("上传信息成功" + jsonObject.toString());
+                        if (mRootView != null)
+                            mRootView.onSuccess(jsonObject.toString(), 2);
+
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        ToastUtils.show("提交失败,请重试!");
+                    }
+                });*/
+    }
+}

+ 53 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjJlXqPresenter.java

@@ -0,0 +1,53 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.mvp.contract.TjJlXqContract;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:10
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjJlXqPresenter extends BasePresenter<TjJlXqContract.Model, TjJlXqContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public TjJlXqPresenter(TjJlXqContract.Model model, TjJlXqContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+}

+ 82 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/TjjfNewPresenter.java

@@ -0,0 +1,82 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.ActivityScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.TjjfNewContract;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:11
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@ActivityScope
+public class TjjfNewPresenter extends BasePresenter<TjjfNewContract.Model, TjjfNewContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public TjjfNewPresenter(TjjfNewContract.Model model, TjjfNewContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+    public void mdjfTj(Map<String, Object> map) {
+        Map<String, Object> map1 = new HashMap<>();
+        map1.put("className", "mdjfTjController");
+        map1.put("methodName", "save");
+        map1.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(map1, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null)
+                    mRootView.onSuccess(result);
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+}

+ 111 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/WtjPresenter.java

@@ -0,0 +1,111 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.FragmentScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.WtjContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:38
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class WtjPresenter extends BasePresenter<WtjContract.Model, WtjContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public WtjPresenter(WtjContract.Model model, WtjContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+    public void getMddjLb(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "pageToApp");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+
+    }
+
+    public void mdgz(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "update");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onYgz(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+    }
+}

+ 114 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/YflPresenter.java

@@ -0,0 +1,114 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.FragmentScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.YflContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:58
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class YflPresenter extends BasePresenter<YflContract.Model, YflContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public YflPresenter(YflContract.Model model, YflContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+
+    public void getMddjLb(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "pageToApp");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+        /*mModel.getMddjLb(map)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        if (result.contains("172.16.1.41")) {
+                            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                        }
+                        mRootView.onSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常!");
+                    }
+                });*/
+
+    }
+}

+ 165 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/presenter/YtjPresenter.java

@@ -0,0 +1,165 @@
+package com.xwkj.rhzf.mvp.presenter;
+
+import android.app.Application;
+
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.integration.AppManager;
+import com.jess.arms.di.scope.FragmentScope;
+import com.jess.arms.mvp.BasePresenter;
+import com.jess.arms.http.imageloader.ImageLoader;
+
+import me.jessyan.rxerrorhandler.core.RxErrorHandler;
+
+import javax.inject.Inject;
+
+import com.xwkj.rhzf.app.utils.CommonInterFace;
+import com.xwkj.rhzf.app.utils.ReqToBus;
+import com.xwkj.rhzf.mvp.contract.YtjContract;
+import com.zkjc.common.utils.Utils;
+
+import java.util.HashMap;
+import java.util.Map;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+@FragmentScope
+public class YtjPresenter extends BasePresenter<YtjContract.Model, YtjContract.View> {
+    @Inject
+    RxErrorHandler mErrorHandler;
+    @Inject
+    Application mApplication;
+    @Inject
+    ImageLoader mImageLoader;
+    @Inject
+    AppManager mAppManager;
+
+    @Inject
+    public YtjPresenter(YtjContract.Model model, YtjContract.View rootView) {
+        super(model, rootView);
+    }
+
+    @Override
+    public void onDestroy() {
+        super.onDestroy();
+        this.mErrorHandler = null;
+        this.mAppManager = null;
+        this.mImageLoader = null;
+        this.mApplication = null;
+    }
+
+    public void getMddjLb(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "pageToApp");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onSuccess(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                Utils.getInstances().dismissDialog();
+                ToastUtils.show("网络异常!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+      /*  mModel.getMddjLb(map)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                })
+                .subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        if (result.contains("172.16.1.41")) {
+                            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                        }
+                        mRootView.onSuccess(result);
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        Utils.getInstances().dismissDialog();
+                        ToastUtils.show("网络异常!");
+                    }
+                });
+*/
+    }
+    public void mdgz(Map<String, String> map) {
+        Map<String, Object> param = new HashMap<>();
+        param.put("className", "mdjfDjController");
+        param.put("methodName", "update");
+        param.put("params", map);
+        ReqToBus.getInstance().init(mApplication).getRequest(param, new CommonInterFace() {
+            @Override
+            public void onSuccess(String result) {
+                if (mRootView != null) {
+                    mRootView.onYgz(result);
+                }
+            }
+
+            @Override
+            public void onError(Throwable throwable) {
+                ToastUtils.show("提交失败,请重试!");
+            }
+
+            @Override
+            public void onFinsh() {
+
+            }
+        });
+       /* RequestBody body = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), JsonMapUtil.map2jsonstr(map));
+        mModel.mdgz(body)
+                .subscribeOn(Schedulers.io())
+                .doOnSubscribe(disposable -> {
+                    Timber.v("requestLogin===doOnSubscribe:" + Thread.currentThread().getName());
+                    addDispose(disposable);//在订阅时必须调用这个方法,不然Activity退出时可能内存泄漏
+                }).subscribeOn(AndroidSchedulers.mainThread())
+                .observeOn(AndroidSchedulers.mainThread())
+                .compose(RxLifecycleUtils.bindToLifecycle(mRootView))
+                .subscribe(new ErrorHandleSubscriber<JsonObject>(mErrorHandler) {
+                    @Override
+                    public void onNext(JsonObject jsonObject) {
+                        String result = jsonObject.toString();
+                        System.out.println("上传信息成功" + result);
+                        if (mRootView != null)
+                            if (result.contains("172.16.1.41")) {
+                                result = result.replaceAll("172.16.1.41", "111.26.204.4");
+                            }
+                        mRootView.onYgz(result);
+
+                    }
+
+                    @Override
+                    public void onError(Throwable t) {
+                        super.onError(t);
+                        ToastUtils.show("提交失败,请重试!");
+                    }
+                });*/
+    }
+}

+ 1018 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/AddJfActivity.java

@@ -0,0 +1,1018 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.Bundle;
+import android.text.TextUtils;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.RelativeLayout;
+import android.widget.Spinner;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.GridLayoutManager;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.base.DefaultAdapter;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.lzy.imagepicker.ImagePicker;
+import com.lzy.imagepicker.bean.ImageItem;
+import com.lzy.imagepicker.ui.ImageGridActivity;
+import com.lzy.imagepicker.ui.ImagePreviewDelActivity;
+import com.lzy.imagepicker.view.CropImageView;
+import com.xwkj.rhzf.app.utils.DateTimePicker;
+import com.xwkj.rhzf.app.utils.GlideImageLoader;
+import com.xwkj.rhzf.di.component.DaggerAddJfComponent;
+import com.xwkj.rhzf.mvp.contract.AddJfContract;
+import com.xwkj.rhzf.mvp.model.entity.AddJfEntity;
+import com.xwkj.rhzf.mvp.model.entity.CommonEntity;
+import com.xwkj.rhzf.mvp.model.entity.JcLxEntity;
+import com.xwkj.rhzf.mvp.model.entity.JwsJgEntity;
+import com.xwkj.rhzf.mvp.model.entity.MdjfEntity;
+import com.xwkj.rhzf.mvp.model.entity.MdjfXqEntity;
+import com.xwkj.rhzf.mvp.model.entity.PersonEntity;
+import com.xwkj.rhzf.mvp.model.entity.RwEntity;
+import com.xwkj.rhzf.mvp.presenter.AddJfPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.adapter.ImagePickerAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.JfdjAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.JflxAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.JgAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.JwcjAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.PersonAdapter;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.utils.AssetsUtil;
+import com.zkjc.common.utils.DevicesUtils;
+import com.zkjc.common.utils.IdCardUtil;
+import com.zkjc.common.utils.JsonMapUtil;
+import com.zkjc.common.utils.UUIDUtils;
+import com.zkjc.common.utils.Utils;
+import com.zkjc.common.view.CommonTitleBarV3;
+
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import butterknife.BindView;
+import okhttp3.MediaType;
+import okhttp3.MultipartBody;
+import okhttp3.RequestBody;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/22/2024 16:36
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class AddJfActivity extends ZkjcBaseActivity<AddJfPresenter> implements AddJfContract.View, ImagePickerAdapter.OnRecyclerViewItemClickListener {
+
+    private static final String SELECT = "请选择";
+    private static final int KRequestAdd = 100;
+    private static final int KRequestModify = 101;
+
+    @BindView(R.id.title_bar)
+    CommonTitleBarV3 titleBar;
+    @BindView(R.id.et_jfmc)
+    EditText etJfmc;
+    @BindView(R.id.sp_jflx)
+    Spinner spJflx;
+    @BindView(R.id.sp_jflx_one)
+    Spinner spJflxOne;
+    @BindView(R.id.et_jfyy)
+    EditText etJfyy;
+    @BindView(R.id.fssj)
+    TextView fssj;
+    @BindView(R.id.rl_fssj)
+    RelativeLayout rlFssj;
+    @BindView(R.id.fsdd)
+    TextView fsdd;
+    @BindView(R.id.rl_fsdd)
+    RelativeLayout rlFsdd;
+    @BindView(R.id.et_jyaq)
+    EditText etJyaq;
+    @BindView(R.id.recylerView)
+    RecyclerView recylerView;
+    @BindView(R.id.tv_number)
+    TextView tvNumber;
+    @BindView(R.id.rl)
+    RelativeLayout rl;
+    @BindView(R.id.tvadd)
+    TextView tvadd;
+    @BindView(R.id.rl_add)
+    RelativeLayout rlAdd;
+    @BindView(R.id.bt_add)
+    Button bt_add;
+    @BindView(R.id.sp_jfjb)
+    Spinner spJfjb;
+    @BindView(R.id.sp_jfly)
+    Spinner sp_jfly;
+    @BindView(R.id.recyclerViewFj)
+    RecyclerView recyclerViewFj;
+    @BindView(R.id.et_bz)
+    EditText etBz;
+    @BindView(R.id.et_zzdw)
+    EditText etZzdw;
+    @BindView(R.id.sp_sssq)
+    Spinner spSssq;
+    @BindView(R.id.sp_jfdj)
+    Spinner spJfdj;
+    @BindView(R.id.layout_bjrdh)
+    View layoutBjrdh;
+    @BindView(R.id.et_bjrdh)
+    EditText etBjrdh;
+    @BindView(R.id.layout_sq)
+    View layoutSq;
+    @BindView(R.id.layout_qqyy)
+    View layoutQqyy;
+    @BindView(R.id.et_qqyy)
+    EditText etQqyy;
+    private PersonAdapter adapter;
+    private String rylb;
+    private List<PersonEntity> list = new ArrayList<>();
+    private ArrayList<ImageItem> fjList; //当前选择的所有图片
+    private int maxFj = 3;
+    private String value2;
+    public static final int REQUEST_CODE_SELECT = 105;
+    public static final int REQUEST_CODE_PREVIEW = 106;
+    private List<String> fjPath;
+    private ImagePickerAdapter mAdapter;
+    public static final int IMAGE_ITEM_ADD = -1;
+    private String jfjb;
+    private Map<String, Object> map;
+    private Map<String, Object> map1;
+    private String jfly;
+    private String sqId;
+    private AddJfEntity.Jfdj mSelectJfdj;
+    private MdjfEntity.DataBean.RecordsBean mItem;
+    private String deptName;
+    private List<CommonEntity.DataBean> listLy;
+    private RwEntity.DataBean.RecordsBean mRwxfBean;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerAddJfComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_add_jf; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        mItem = (MdjfEntity.DataBean.RecordsBean) getIntent().getSerializableExtra("item");
+        if (mItem != null) {
+            titleBar.setTitle("修改矛盾纠纷");
+            rlAdd.setVisibility(View.GONE);
+            bt_add.setText("修改矛盾纠纷");
+            setData(mItem);
+            Map<String, String> map = new HashMap<>();
+            map.put("id", mItem.getId());
+            mPresenter.getJfxq(map);
+
+            spJfdj.setEnabled(false);
+            sp_jfly.setEnabled(false);
+            etBjrdh.setEnabled(false);
+            layoutQqyy.setVisibility(View.VISIBLE);
+        } else {
+            titleBar.setTitle("排查矛盾纠纷");
+        }
+
+        recylerView.setLayoutManager(new LinearLayoutManager(this));
+        adapter = new PersonAdapter(list);
+        adapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
+            @Override
+            public void onItemClick(@NonNull View view, int viewType, @NonNull Object data, int position) {
+                Intent intent = new Intent(AddJfActivity.this, AddPersonActivity.class);
+                intent.putExtra("ry_data", list.get(position));
+                intent.putExtra("position", position);
+                intent.putExtra("is_add", mItem == null);
+                startActivityForResult(intent, KRequestModify);
+            }
+        });
+        recylerView.setAdapter(adapter);
+
+        initImagePicker();
+        fjList = new ArrayList<>();
+        //普通照片
+        fjPath = new ArrayList<>();
+        mAdapter = new ImagePickerAdapter(this, fjList, maxFj);
+        mAdapter.setOnItemClickListener(this);
+        recyclerViewFj.setLayoutManager(new GridLayoutManager(this, 3));
+        recyclerViewFj.setHasFixedSize(true);
+        recyclerViewFj.setAdapter(mAdapter);
+        initDatePicker();
+        rlAdd.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View v) {
+
+                Intent intent = new Intent(AddJfActivity.this, AddPersonActivity.class);
+                intent.putExtra("xz", "xz");
+                startActivityForResult(intent, KRequestAdd);
+            }
+        });
+        rlFsdd.setOnClickListener(view -> {
+            if (!DevicesUtils.isLocServiceEnable(this)) {
+                ToastUtils.show("请开启定位服务");
+                return;
+            }
+            startActivityForResult(new Intent(AddJfActivity.this, GdMapActivity.class), 0);
+        });
+        bt_add.setOnClickListener(view -> {
+            map = new HashMap<>();
+            map1 = new HashMap<>();
+
+            String jfmc = etJfmc.getText().toString();
+            if (TextUtils.isEmpty(jfmc)) {
+                ToastUtils.show("纠纷名称不能为空");
+                return;
+            } else
+                map1.put("jfmc", jfmc);
+            if (TextUtils.isEmpty(value2)) {
+                ToastUtils.show("纠纷性质不能为空");
+                return;
+            } else
+                map1.put("jflx", value2);
+            String jfyy = etJfyy.getText().toString();
+            if (TextUtils.isEmpty(jfyy)) {
+                ToastUtils.show("简要案情不能为空");
+                return;
+            } else
+                map1.put("jyaq", jfyy);
+
+            String jffssj = fssj.getText().toString();
+            if (TextUtils.isEmpty(jffssj)) {
+                ToastUtils.show("请选择纠纷发生时间");
+                return;
+            } else
+                map1.put("jffssj", jffssj + ":00");
+            String jffsdd = fsdd.getText().toString();
+            if (TextUtils.isEmpty(jffsdd)) {
+                ToastUtils.show("请选择纠纷发生地点");
+                return;
+            } else
+                map1.put("jffsdd", jffsdd);
+          /*  String jyaq = etJyaq.getText().toString();
+            if (TextUtils.isEmpty(jyaq)) {
+                ToastUtils.show("请填写纠纷详情");
+                return;
+            } else
+                map1.put("jyaq", jyaq);*/
+            /*if (TextUtils.isEmpty(jfjb) || jfjb.equals("请选择")) {
+                ToastUtils.show("请选择风险程度");
+                return;
+            } else
+                map1.put("mdjb", jfjb);*/
+            if (TextUtils.isEmpty(jfly) || jfly.equals(SELECT)) {
+                ToastUtils.show("请选择纠纷来源");
+                return;
+            } else {
+                map1.put("jfly", jfly);
+            }
+            if (mItem == null) {
+                if ("110接处警".equals(jfly)) {
+                    if (TextUtils.isEmpty(etBjrdh.getText().toString())) {
+                        ToastUtils.show("请填写正确的报警人电话");
+                        return;
+                    } else {
+                    }
+                }
+            }
+            map1.put("bjrdh", etBjrdh.getText().toString());
+            SharedPreferences sys = getSharedPreferences("sys", MODE_PRIVATE);
+            boolean isXj = sys.getString("role_name", "").contains("巡警");
+            if (isXj) {
+                if (!TextUtils.isEmpty(sqId) && !sqId.equals(SELECT)) {
+                    map1.put("jfsssq", sqId);
+                }
+            } else {
+                if (TextUtils.isEmpty(sqId) || sqId.equals(SELECT)) {
+                    ToastUtils.show("请选择纠纷所属社区");
+                    return;
+                } else {
+                    map1.put("jfsssq", sqId);
+                    map1.put("sqName", deptName);
+                }
+            }
+            String bz = etBz.getText().toString().trim();
+            if (!TextUtils.isEmpty(bz)) {
+                map1.put("bz", bz);
+            }
+            if (mItem == null) {
+               /* if ("110接处警".equals(jfly)) {
+                    if (list.size() < 1) {
+                        ToastUtils.show("纠纷人员至少需要有一方人员");
+                        return;
+                    }
+                } else {
+                    if (list.size() < 2) {
+                        ToastUtils.show("纠纷人员至少需要甲乙双方人员");
+                        return;
+                    }
+                }*/
+                if (list.size() < 2) {
+                    ToastUtils.show("纠纷人员至少需要甲乙双方人员");
+                    return;
+                }
+                for (PersonEntity person : list) {
+                    if (TextUtils.isEmpty(person.getXm())) {
+                        ToastUtils.show("请填写纠纷人员姓名");
+                        return;
+                    }
+                    if (TextUtils.isEmpty(person.getLb())) {
+                        ToastUtils.show("请填写纠纷人员类别");
+                        return;
+                    }
+                    if (TextUtils.isEmpty(person.getSfzh())) {
+                        ToastUtils.show("请填写纠纷人员身份证号");
+                        return;
+                    }
+                    if (!IdCardUtil.validate(person.getSfzh())) {
+                        ToastUtils.show("请输入" + person.getXm() + "正确的身份证号码");
+                        return;
+                    }
+                    if (TextUtils.isEmpty(person.getLxdh())) {
+                        ToastUtils.show("请填写纠纷人员手机号码");
+                        return;
+                    }
+                    if (person.getLxdh().length() != 11) {
+                        ToastUtils.show("请输入" + person.getXm() + "正确的手机号码");
+                        return;
+                    }
+                }
+            }
+            if (mItem != null && TextUtils.isEmpty(etQqyy.getText().toString())) {
+                ToastUtils.show("请填写请求原因");
+                return;
+            }
+
+            String zzdw = etZzdw.getText().toString();
+            if (!TextUtils.isEmpty(zzdw)) {
+                map1.put("zzdw", zzdw);
+            }
+            if (mSelectJfdj == null || mSelectJfdj.getDictValue().equals(SELECT)) {
+                ToastUtils.show("请选择纠纷等级");
+                return;
+            }
+            map1.put("mdjbV", mSelectJfdj.getDictKey());
+            if (mItem != null) {
+                List<PersonEntity> modifyList = new ArrayList<>();
+                for (PersonEntity entity : list) {
+                    if (entity.isModify()) {
+                        modifyList.add(entity);
+                    }
+                }
+                map.put("mdjfRyList", modifyList);
+            } else {
+                map.put("mdjfRyList", list);
+            }
+
+            if (fjList.size() > 0) {
+                for (int i = 0; i < fjList.size(); i++) {
+                    String path = fjList.get(i).path;
+                    File file = new File(path);
+                    Utils.getInstances().showDialog(AddJfActivity.this, "正在上传");
+                    MultipartBody.Builder builder = new MultipartBody.Builder()
+                            .setType(MultipartBody.FORM);
+                    String zh = sys.getString("zh", "");
+                    builder.addFormDataPart("file", zh + UUIDUtils.uuid() + file.getName(), RequestBody.create(MediaType.parse("image/*"), file));
+                    MultipartBody multipartBody = builder.build();
+                    mPresenter.uploadImg(multipartBody, 1);
+                }
+            } else {
+                Utils.getInstances().showDialog(AddJfActivity.this, "正在上传数据");
+                if (mItem == null) {
+                    map.put("mdjfDj", map1);
+                    mPresenter.mdkfDj(map);
+                } else {
+                    map1.put("id", mItem.getId());
+                    map.put("mdjfDj", map1);
+                    map.put("qqyy", etQqyy.getText().toString());
+                    mPresenter.mdkfXg(map);
+                }
+                System.out.println("JsonMapUtil.map2jsonstr(map) = " + JsonMapUtil.map2jsonstr(map));
+            }
+
+        });
+        initLocal();
+        initZd("1686566442075504641", 0);
+
+        mRwxfBean = (RwEntity.DataBean.RecordsBean) getIntent().getSerializableExtra("rwxf");
+        if (mRwxfBean != null) {
+            setRwxfData(mRwxfBean);
+        }
+    }
+
+    private void setRwxfData(RwEntity.DataBean.RecordsBean bean) {
+        etJfmc.setText(bean.getRwmc());
+        if (listLy != null) {
+            for (int i = 0; i < listLy.size(); i++) {
+                if (listLy.get(i).getKey().equals("110接处警")) {
+                    sp_jfly.setSelection(i);
+                }
+            }
+        }
+        etBjrdh.setText(bean.getBjrdh());
+        etJfyy.setText(bean.getJfyy());
+//        fsdd.setText(bean.getJffsdd());
+        List<MdjfXqEntity.DataBean.MdjfRyListBean> ryList = bean.getMdjfRyList();
+        if (list != null && !ryList.isEmpty()) {
+            for (MdjfXqEntity.DataBean.MdjfRyListBean ryBean : ryList) {
+                if (!TextUtils.isEmpty(ryBean.getLb()) && !TextUtils.isEmpty(ryBean.getLxdh()) && !TextUtils.isEmpty(ryBean.getSfzh()) && !TextUtils.isEmpty(ryBean.getXm())) {
+                    PersonEntity entity = new PersonEntity();
+                    entity.setLb(ryBean.getLb());
+                    entity.setLxdh(ryBean.getLxdh());
+                    entity.setSfzh(ryBean.getSfzh());
+                    entity.setXm(ryBean.getXm());
+                    entity.setId(ryBean.getId());
+                    list.add(entity);
+                }
+            }
+            adapter.notifyDataSetChanged();
+        }
+    }
+
+    private void setData(MdjfEntity.DataBean.RecordsBean item) {
+        etJfmc.setText(item.getJfmc());
+        etZzdw.setText(item.getZzdw());
+        etJfyy.setText(item.getJyaq());
+        String jffssj = item.getJffssj();
+        if (!TextUtils.isEmpty(jffssj)) {
+            jffssj = jffssj.substring(0, jffssj.lastIndexOf(":"));
+        }
+        fssj.setText(jffssj);
+        fsdd.setText(item.getJffsdd());
+        etBz.setText(item.getBz());
+        spJfdj.setEnabled(false);
+        sp_jfly.setEnabled(false);
+        etBjrdh.setEnabled(false);
+        etBjrdh.setText(mItem.getBjrdh());
+    }
+
+    private List<CommonEntity.DataBean> getList(String json) {
+        Gson gson = new Gson();
+        CommonEntity commonEntity = gson.fromJson(json, CommonEntity.class);
+        List<CommonEntity.DataBean> data = commonEntity.getData();
+
+        return data;
+    }
+
+    private void initLocal() {
+        String jfjbjson = AssetsUtil.getJson(this, "jfjb.json");
+        String jflyjson = AssetsUtil.getJson(this, "jfly.json");
+        List<CommonEntity.DataBean> list = getList(jfjbjson);
+        listLy = getList(jflyjson);
+        spJfjb.setAdapter(new JwcjAdapter(list, this));
+        spJfjb.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+            @Override
+            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                jfjb = list.get(position).getKey();
+            }
+
+            @Override
+            public void onNothingSelected(AdapterView<?> parent) {
+
+            }
+        });
+        sp_jfly.setAdapter(new JwcjAdapter(listLy, this));
+        sp_jfly.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+            @Override
+            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                jfly = listLy.get(position).getKey();
+                if ("110接处警".equals(jfly)) {
+                    layoutBjrdh.setVisibility(View.VISIBLE);
+                } else {
+                    layoutBjrdh.setVisibility(View.GONE);
+                }
+            }
+
+            @Override
+            public void onNothingSelected(AdapterView<?> parent) {
+
+            }
+        });
+        if (mItem != null) {
+            for (int i = 0; i < listLy.size(); i++) {
+                if (listLy.get(i).getKey().equals(mItem.getJfly())) {
+                    sp_jfly.setSelection(i);
+                }
+            }
+        }
+    }
+
+    private void initImagePicker() {
+        ImagePicker imagePicker = ImagePicker.getInstance();
+        imagePicker.setImageLoader(new GlideImageLoader());   //设置图片加载器
+        imagePicker.setShowCamera(true);                      //显示拍照按钮
+        imagePicker.setCrop(true);                            //允许裁剪(单选才有效)
+        imagePicker.setSaveRectangle(true);                   //是否按矩形区域保存
+        imagePicker.setSelectLimit(9);              //选中数量限制
+        imagePicker.setMultiMode(false);                      //多选
+        imagePicker.setStyle(CropImageView.Style.RECTANGLE);  //裁剪框的形状
+        imagePicker.setFocusWidth(1000);                       //裁剪框的宽度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setFocusHeight(1600);                      //裁剪框的高度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setOutPutX(1000);                         //保存文件的宽度。单位像素
+        imagePicker.setOutPutY(1000);                       //保存文件的高度。单位像素
+    }
+
+    private void initZd(String parentId, int flag) {
+        Map<String, String> map = new HashMap<>();
+        map.put("parentId", parentId);
+//        mPresenter.getJfZd(map, flag);
+//        mPresenter.zd();
+        map.put("code", "mddj");
+        mPresenter.getMdjfdj(map);
+    }
+
+    private void initDatePicker() {
+        DateTimePicker dateTimePicker = new DateTimePicker(this);
+        dateTimePicker.setOnDateSelectListener(new DateTimePicker.OnDateSelectListener() {
+            @Override
+            public void onDateSelect(String start) {
+                fssj.setText(start);
+            }
+        });
+        rlFssj.setFocusable(false);
+        rlFssj.setOnClickListener(v -> dateTimePicker.show());
+    }
+
+
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
+        super.onActivityResult(requestCode, resultCode, data);
+        if (requestCode == KRequestAdd) {
+            if (data != null) {
+                PersonEntity entity = (PersonEntity) data.getSerializableExtra("entity");
+                list.add(entity);
+                adapter.notifyDataSetChanged();
+
+            }
+
+        }
+        if (requestCode == KRequestModify && resultCode == RESULT_OK) {
+            if (data != null) {
+                if (data.getBooleanExtra("delete", false)) {
+                    list.remove(data.getIntExtra("position", 0));
+                    adapter.notifyDataSetChanged();
+                } else {
+                    PersonEntity entity = (PersonEntity) data.getSerializableExtra("entity");
+                    entity.setModify(true);
+                    list.set(data.getIntExtra("position", 0), entity);
+                    adapter.notifyDataSetChanged();
+                }
+            }
+        }
+        if (resultCode == 5) {
+            if (data != null && requestCode == 0) {
+                String location = data.getStringExtra("location");
+                String dtjd = data.getStringExtra("dtjd");
+                String dtwd = data.getStringExtra("dtwd");
+                fsdd.setText(location);
+            }
+        }
+
+        if (resultCode == ImagePicker.RESULT_CODE_ITEMS) {
+            //添加图片返回
+            if (data != null && requestCode == REQUEST_CODE_SELECT) {
+                ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_RESULT_ITEMS);
+                if (images != null) {
+                    fjList.addAll(images);
+                    mAdapter.setImages(fjList);
+
+                }
+            }
+
+
+        } else if (resultCode == ImagePicker.RESULT_CODE_BACK) {
+            //预览图片返回
+            if (data != null && requestCode == REQUEST_CODE_PREVIEW) {
+                ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_IMAGE_ITEMS);
+                if (images != null) {
+                    fjList.clear();
+                    fjList.addAll(images);
+                    mAdapter.setImages(fjList);
+                }
+            }
+        }
+
+    }
+
+    @Override
+    public void onItemClick(View view, int position) {
+        switch (position) {
+            case IMAGE_ITEM_ADD:
+                ImagePicker.getInstance().setSelectLimit(maxFj - fjList.size());
+                Intent intent = new Intent(this, ImageGridActivity.class);
+                //intent.putExtra(ImageGridActivity.EXTRAS_IMAGES,(ArrayList<ImageItem>) adapter.getImages());
+                intent.putExtra(ImageGridActivity.EXTRAS_TAKE_PICKERS, true);
+                startActivityForResult(intent, REQUEST_CODE_SELECT);
+                break;
+            default:
+                //打开预览
+                Intent intentPreview = new Intent(this, ImagePreviewDelActivity.class);
+                intentPreview.putExtra(ImagePicker.EXTRA_IMAGE_ITEMS, (ArrayList<ImageItem>) mAdapter.getImages());
+                intentPreview.putExtra(ImagePicker.EXTRA_SELECTED_IMAGE_POSITION, position);
+                intentPreview.putExtra(ImagePicker.EXTRA_FROM_ITEMS, true);
+                startActivityForResult(intentPreview, REQUEST_CODE_PREVIEW);
+                break;
+        }
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+
+
+    @Override
+    public void onSuccess(String result, int flag) {
+        switch (flag) {
+            case 0:
+               /* list.clear();
+                adapter.notifyDataSetChanged();
+                etJyaq.setText("");
+                etJfyy.setText("");
+                etJfmc.setText("");
+                fsdd.setText("");
+                fssj.setText("");
+                spJflx.setSelection(0, true);*/
+                // finish();
+                ShowTc(result);
+                break;
+            case 1:
+                praseJson(result);
+                break;
+        }
+
+    }
+
+    @Override
+    public void onXgSuccess(String result) {
+        ToastUtils.show("修改申请已提交,请等待分局管理员审批成功后即可修改成功");
+        finish();
+    }
+
+    @Override
+    public void onDit(String result) {
+        try {
+            JwsJgEntity entity = new Gson().fromJson(result, JwsJgEntity.class);
+            List<JwsJgEntity.DataBean> data = entity.getData();
+            JwsJgEntity.DataBean dataBean = new JwsJgEntity.DataBean();
+            dataBean.setDeptName(SELECT);
+            dataBean.setId(SELECT);
+            data.add(0, dataBean);
+            spSssq.setAdapter(new JgAdapter(data, this));
+            spSssq.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+
+
+                @Override
+                public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                    JwsJgEntity.DataBean dataBean = data.get(position);
+                    sqId = dataBean.getId();
+                    deptName = dataBean.getDeptName();
+
+                }
+
+                @Override
+                public void onNothingSelected(AdapterView<?> parent) {
+
+                }
+            });
+
+
+        } catch (Exception e) {
+
+        }
+
+    }
+
+    private void ShowTc(String result) {
+        try {
+            JsonObject jsonObject1 = new JsonParser().parse(result).getAsJsonObject();
+            String data = jsonObject1.get("data").getAsString();
+            if (TextUtils.isEmpty(data)) {
+                ToastUtils.show("上传失败,请重试");
+                return;
+            }
+            /*AlertDialog.Builder builder = new AlertDialog.Builder(this)
+                    .setTitle("温馨提示")
+                    .setMessage("矛盾纠纷登记成功,是否继续调解")
+                    .setPositiveButton("调解", new DialogInterface.OnClickListener() {
+                        @Override
+                        public void onClick(DialogInterface dialogInterface, int i) {
+                            Intent intent = new Intent(getApplicationContext(), TjJfActivity.class);
+                            intent.putExtra("jfid", data);
+                            startActivity(intent);
+                            finish();
+                        }
+                    })
+                    .setNegativeButton("不调解", new DialogInterface.OnClickListener() {
+                        @Override
+                        public void onClick(DialogInterface dialogInterface, int i) {
+                            finish();
+                        }
+                    });
+            AlertDialog dialog = builder.create();
+            dialog.show();
+
+            WindowManager.LayoutParams params = dialog.getWindow().getAttributes();
+            params.width = ScreenUtils.dip2px(this, 320);
+
+            params.height = ScreenUtils.dip2px(this, 200);
+            dialog.getWindow().setAttributes(params);*/
+            if ("110接处警".equals(jfly)) {
+                ToastUtils.show("矛盾纠纷新增成功,请上公安网平台矛盾纠纷模块关联接警单号");
+            }
+            if (getIntent().hasExtra("rhzf")) {
+                Intent intent = new Intent();
+                intent.putExtra("jfid", data);
+                setResult(RESULT_OK, intent);
+                finish();
+            } else if (getIntent().hasExtra("is_from_rhzf")) {
+                Intent intent = new Intent();
+                intent.putExtra("id", data);
+                setResult(RESULT_OK, intent);
+                finish();
+            } else {
+                setResult(RESULT_OK);
+                finish();
+            }
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    private void praseJson(String result) {
+        JsonObject jsonObject1 = new JsonParser().parse(result).getAsJsonObject();
+        JsonObject jsonObject = jsonObject1.get("data").getAsJsonObject();
+        if (jsonObject.has("link")) {
+            String url = jsonObject.get("link").getAsString();
+            fjPath.add(url);
+            if (fjList.size() == fjPath.size()) {
+                Utils.getInstances().dismissDialog();
+                StringBuffer sbzp = new StringBuffer();
+                for (int i = 0; i < fjPath.size(); i++) {
+                    if (i == fjPath.size() - 1) {
+                        sbzp.append(fjPath.get(i));
+                    } else {
+                        sbzp.append(fjPath.get(i)).append(",");
+                    }
+                }
+                map1.put("zp", sbzp.toString());
+                map.put("mdjfDj", map1);
+
+                mPresenter.mdkfDj(map);
+            }
+        }
+    }
+
+    @Override
+    public void onZdSuccess(String result, int flag) {
+
+        if (result.contains("172.16.1.41")) {
+            result = result.replaceAll("172.16.1.41", "111.26.204.4");
+        }
+        System.out.println("result = " + result);
+
+        try {
+            switch (flag) {
+                case 0:
+                    JcLxEntity entity = new Gson().fromJson(result, JcLxEntity.class);
+                    List<JcLxEntity.DataBean> data = entity.getData();
+                    spJflx.setAdapter(new JflxAdapter(data, getApplicationContext()));
+                    spJflx.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+                        @Override
+                        public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                            value2 = data.get(position).getLabel();
+                            //  initZd(value, 1);
+                        }
+
+                        @Override
+                        public void onNothingSelected(AdapterView<?> parent) {
+
+                        }
+                    });
+                    if (mItem != null) {
+                        for (int i = 0; i < data.size(); i++) {
+                            if (data.get(i).getLabel().equals(mItem.getJflx())) {
+                                spJflx.setSelection(i);
+                            }
+                        }
+                    }
+                    break;
+                case 1:
+                    JcLxEntity entity1 = new Gson().fromJson(result, JcLxEntity.class);
+                    List<JcLxEntity.DataBean> data1 = entity1.getData();
+                    spJflxOne.setAdapter(new JflxAdapter(data1, getApplicationContext()));
+                    spJflxOne.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+                        @Override
+                        public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                            value2 = data1.get(position).getLabel();
+
+                        }
+
+                        @Override
+                        public void onNothingSelected(AdapterView<?> parent) {
+
+                        }
+                    });
+                    break;
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    @Override
+    public void onGetMdjfDjSuccess(String result) {
+        try {
+            AddJfEntity entity = new Gson().fromJson(result, AddJfEntity.class);
+            // 纠纷性质
+            List<JcLxEntity.DataBean> data = entity.getData().getJflxvos();
+            spJflx.setAdapter(new JflxAdapter(data, getApplicationContext()));
+            spJflx.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+                @Override
+                public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                    value2 = data.get(position).getLabel();
+                    //  initZd(value, 1);
+                }
+
+                @Override
+                public void onNothingSelected(AdapterView<?> parent) {
+
+                }
+            });
+            if (mItem != null) {
+                for (int i = 0; i < data.size(); i++) {
+                    if (data.get(i).getLabel().equals(mItem.getJflx())) {
+                        spJflx.setSelection(i);
+                    }
+                }
+            }
+            if (mRwxfBean != null) {
+                for (int i = 0; i < data.size(); i++) {
+                    if (data.get(i).getLabel().equals(mRwxfBean.getJflx())) {
+                        spJflx.setSelection(i);
+                    }
+                }
+            }
+            // 所属社区
+            List<JwsJgEntity.DataBean> sqData = entity.getData().getDeptListVos();
+            JwsJgEntity.DataBean dataBean = new JwsJgEntity.DataBean();
+            dataBean.setDeptName(SELECT);
+            dataBean.setId(SELECT);
+            sqData.add(0, dataBean);
+            spSssq.setAdapter(new JgAdapter(sqData, this));
+            spSssq.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+
+
+                @Override
+                public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                    JwsJgEntity.DataBean dataBean = sqData.get(position);
+                    sqId = dataBean.getId();
+                    deptName = dataBean.getDeptName();
+                }
+
+                @Override
+                public void onNothingSelected(AdapterView<?> parent) {
+
+                }
+            });
+            if (mItem != null) {
+                for (int i = 0; i < sqData.size(); i++) {
+                    if (sqData.get(i).getId().equals(mItem.getJfsssq())) {
+                        spSssq.setSelection(i);
+                    }
+                }
+            }
+            if (mRwxfBean != null) {
+                for (int i = 0; i < sqData.size(); i++) {
+                    if (sqData.get(i).getId().equals(mRwxfBean.getSssq())) {
+                        spSssq.setSelection(i);
+                    }
+                }
+            }
+
+            List<AddJfEntity.Jfdj> jfdjList = entity.getData().getMddjvos();
+            AddJfEntity.Jfdj jfdj = new AddJfEntity.Jfdj();
+            jfdj.setDictValue(SELECT);
+            jfdj.setDictKey(SELECT);
+            jfdj.setId("1");
+            jfdjList.add(0, jfdj);
+            spJfdj.setAdapter(new JfdjAdapter(jfdjList, getApplicationContext()));
+            spJfdj.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+                @Override
+                public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+//                    value2 = data.get(position).getLabel();
+                    mSelectJfdj = jfdjList.get(position);
+                }
+
+                @Override
+                public void onNothingSelected(AdapterView<?> parent) {
+
+                }
+            });
+            if (mItem != null) {
+                for (int i = 0; i < jfdjList.size(); i++) {
+                    if (jfdjList.get(i).getDictKey().equals(mItem.getMdjbV())) {
+                        spJfdj.setSelection(i);
+                    }
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    @Override
+    public void getJfDataSuccess(MdjfXqEntity.DataBean dataBean) {
+        MdjfXqEntity.DataBean.MdjfDjBean mdjfDj = dataBean.getMdjfDj();
+        etJfmc.setText(mdjfDj.getJfmc());
+        etZzdw.setText(mdjfDj.getZzdw());
+        etJfyy.setText(mdjfDj.getJyaq());
+        String jffssj = mdjfDj.getJffssj();
+        if (!TextUtils.isEmpty(jffssj)) {
+            jffssj = jffssj.substring(0, jffssj.lastIndexOf(":"));
+        }
+        fssj.setText(jffssj);
+        fsdd.setText(mdjfDj.getJffsdd());
+        etBz.setText(mdjfDj.getBz());
+        etBjrdh.setText(mdjfDj.getBjrdh());
+        List<MdjfXqEntity.DataBean.MdjfRyListBean> ryList = dataBean.getMdjfRyList();
+        if (list != null && !ryList.isEmpty()) {
+            for (MdjfXqEntity.DataBean.MdjfRyListBean ryBean : ryList) {
+                PersonEntity entity = new PersonEntity();
+                entity.setLb(ryBean.getLb());
+                entity.setLxdh(ryBean.getLxdh());
+                entity.setSfzh(ryBean.getSfzh());
+                entity.setXm(ryBean.getXm());
+                entity.setId(ryBean.getId());
+                list.add(entity);
+            }
+            adapter.notifyDataSetChanged();
+        }
+    }
+
+    @Override
+    protected void onDestroy() {
+        super.onDestroy();
+        Utils.getInstances().dismissDialog();
+    }
+}

+ 771 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/AddPersonActivity.java

@@ -0,0 +1,771 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.Manifest;
+import android.app.Activity;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.content.pm.PackageManager;
+import android.os.Bundle;
+import android.text.TextUtils;
+import android.view.MotionEvent;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.Spinner;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.core.app.ActivityCompat;
+import androidx.recyclerview.widget.GridLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.baidu.ocr.sdk.OCR;
+import com.baidu.ocr.sdk.OnResultListener;
+import com.baidu.ocr.sdk.exception.OCRError;
+import com.baidu.ocr.sdk.model.AccessToken;
+import com.baidu.ocr.sdk.model.IDCardParams;
+import com.baidu.ocr.sdk.model.IDCardResult;
+import com.baidu.ocr.ui.camera.CameraActivity;
+import com.baidu.ocr.ui.camera.CameraNativeHelper;
+import com.baidu.ocr.ui.camera.CameraView;
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.lzy.imagepicker.ImagePicker;
+import com.lzy.imagepicker.bean.ImageItem;
+import com.lzy.imagepicker.ui.ImageGridActivity;
+import com.lzy.imagepicker.ui.ImagePreviewDelActivity;
+import com.lzy.imagepicker.view.CropImageView;
+import com.xwkj.rhzf.app.utils.FileUtil;
+import com.xwkj.rhzf.app.utils.GlideImageLoader;
+import com.xwkj.rhzf.app.utils.KeyboardUtil;
+import com.xwkj.rhzf.di.component.DaggerAddPersonComponent;
+import com.xwkj.rhzf.mvp.contract.AddPersonContract;
+import com.xwkj.rhzf.mvp.model.entity.CommonEntity;
+import com.xwkj.rhzf.mvp.model.entity.MdjfXqEntity;
+import com.xwkj.rhzf.mvp.model.entity.PersonEntity;
+import com.xwkj.rhzf.mvp.model.entity.RyEntity;
+import com.xwkj.rhzf.mvp.presenter.AddPersonPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.adapter.ImagePickerAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.JwcjAdapter;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.utils.AssetsUtil;
+import com.zkjc.common.utils.IdCardUtil;
+import com.zkjc.common.utils.MyKeyBoardView;
+import com.zkjc.common.utils.RegexUtils;
+import com.zkjc.common.utils.UUIDUtils;
+import com.zkjc.common.utils.Utils;
+import com.zkjc.common.view.CommonTitleBar;
+
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import butterknife.BindView;
+import okhttp3.MediaType;
+import okhttp3.MultipartBody;
+import okhttp3.RequestBody;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:44
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class AddPersonActivity extends ZkjcBaseActivity<AddPersonPresenter> implements AddPersonContract.View, ImagePickerAdapter.OnRecyclerViewItemClickListener {
+
+    @BindView(R.id.title_bar)
+    CommonTitleBar titleBar;
+    @BindView(R.id.et_xm)
+    EditText etXm;
+    @BindView(R.id.iv_sm)
+    ImageView ivSm;
+    @BindView(R.id.et_xb)
+    EditText etXb;
+    @BindView(R.id.et_idcard)
+    TextView etIdcard;
+    @BindView(R.id.et_lxdh)
+    EditText etLxdh;
+    @BindView(R.id.sp_lb)
+    Spinner spLb;
+    @BindView(R.id.bt_add)
+    Button btAdd;
+    @BindView(R.id.recyclerView)
+    RecyclerView recyclerView;
+    @BindView(R.id.bt_xg)
+    Button btXg;
+    @BindView(R.id.et_id_card)
+    EditText et_id_card;
+    @BindView(R.id.keyboard_view)
+    MyKeyBoardView keyboardView;
+    @BindView(R.id.ll_price_select)
+    LinearLayout ll_price_select;
+    private String rylb;
+    private ArrayList<ImageItem> fjList; //当前选择的所有图片
+    private int maxFj = 1;
+    private String value2;
+    public static final int REQUEST_CODE_SELECT = 105;
+    public static final int REQUEST_CODE_PREVIEW = 106;
+    private List<String> fjPath;
+    private ImagePickerAdapter mAdapter;
+    public static final int IMAGE_ITEM_ADD = -1;
+    private PersonEntity entity;
+    private String yrlb;
+    private List<CommonEntity.DataBean> list;
+    private String ryid;
+    private String jfId;
+    private Map<String, String> map;
+    private KeyboardUtil keyboardUtil;
+    private PersonEntity mRyData;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerAddPersonComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_add_person; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+    private static final int REQUEST_CODE_CAMERA = 102;
+
+    private boolean checkGalleryPermission() {
+        int ret = ActivityCompat.checkSelfPermission(this, Manifest.permission
+                .READ_EXTERNAL_STORAGE);
+        if (ret != PackageManager.PERMISSION_GRANTED) {
+            ActivityCompat.requestPermissions(this,
+                    new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},
+                    1000);
+            return false;
+        }
+        return true;
+    }
+
+    /**
+     * 以license文件方式初始化
+     */
+    private void initAccessToken() {
+        OCR.getInstance(getApplicationContext()).initAccessToken(new OnResultListener<AccessToken>() {
+            @Override
+            public void onResult(AccessToken accessToken) {
+                String token = accessToken.getAccessToken();
+
+            }
+
+            @Override
+            public void onError(OCRError error) {
+                error.printStackTrace();
+
+            }
+        }, getApplicationContext());
+    }
+
+
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("涉事人员登记");
+        initAccessToken();
+        //  初始化本地质量控制模型,释放代码在onDestory中
+        //  调用身份证扫描必须加上 intent.putExtra(CameraActivity.KEY_NATIVE_MANUAL, true); 关闭自动初始化和释放本地模型
+        CameraNativeHelper.init(this, OCR.getInstance(this).getLicense(),
+                new CameraNativeHelper.CameraNativeInitCallback() {
+                    @Override
+                    public void onError(int errorCode, Throwable e) {
+                        String msg;
+                        switch (errorCode) {
+                            case CameraView.NATIVE_SOLOAD_FAIL:
+                                msg = "加载so失败,请确保apk中存在ui部分的so";
+                                break;
+                            case CameraView.NATIVE_AUTH_FAIL:
+                                msg = "授权本地质量控制token获取失败";
+                                break;
+                            case CameraView.NATIVE_INIT_FAIL:
+                                msg = "本地质量控制";
+                                break;
+                            default:
+                                msg = String.valueOf(errorCode);
+                        }
+                        ToastUtils.show("本地质量控制初始化错误,错误原因: " + msg);
+                    }
+                });
+        Intent myInt = getIntent();
+        localZd();
+        if (myInt.hasExtra("xz")) {
+            btAdd.setVisibility(View.VISIBLE);
+            btXg.setVisibility(View.GONE);
+            localZd();
+        } else if (myInt.hasExtra("xg")) {
+            btAdd.setVisibility(View.GONE);
+            btXg.setVisibility(View.VISIBLE);
+            MdjfXqEntity.DataBean.MdjfRyListBean data = (MdjfXqEntity.DataBean.MdjfRyListBean) myInt.getSerializableExtra("data");
+            etXm.setText(data.getXm());
+            etIdcard.setText(data.getSfzh());
+            etLxdh.setText(data.getLxdh());
+            ryid = data.getId();
+            jfId = data.getJfId();
+            rylb = data.getLb();
+            for (int i = 0; i < list.size(); i++) {
+                String key = list.get(i).getKey();
+                if (rylb.equals(key)) {
+                    spLb.setSelection(i, true);
+                }
+            }
+
+        } else if (myInt.hasExtra("ry_data")) {
+            btAdd.setVisibility(View.GONE);
+            btXg.setVisibility(View.VISIBLE);
+            mRyData = (PersonEntity) myInt.getSerializableExtra("ry_data");
+            etXm.setText(mRyData.getXm());
+//            etIdcard.setText("");
+//            etLxdh.setText("");
+            etIdcard.setText(mRyData.getSfzh());
+            etLxdh.setText(mRyData.getLxdh());
+            rylb = mRyData.getLb();
+            for (int i = 0; i < list.size(); i++) {
+                String key = list.get(i).getKey();
+                if (rylb.equals(key)) {
+                    spLb.setSelection(i, true);
+                }
+            }
+            /*if (getIntent().getBooleanExtra("is_add", false)) {
+                titleBar.setRight("删除");
+                titleBar.setRightOnClick(view -> {
+                    Intent intent = new Intent();
+                    intent.putExtra("delete", true);
+                    intent.putExtra("position", getIntent().getIntExtra("position", 0));
+                    setResult(RESULT_OK, intent);
+                    finish();
+                });
+            }*/
+
+        }
+
+        initImagePicker();
+        fjList = new ArrayList<>();
+        //普通照片
+        fjPath = new ArrayList<>();
+        mAdapter = new ImagePickerAdapter(this, fjList, maxFj);
+        mAdapter.setOnItemClickListener(this);
+        recyclerView.setLayoutManager(new GridLayoutManager(this, 3));
+        recyclerView.setHasFixedSize(true);
+        recyclerView.setAdapter(mAdapter);
+        btAdd.setOnClickListener(view -> {
+            String xm = etXm.getText().toString();
+            String xb = etXb.getText().toString();
+            String sfzh = etIdcard.getText().toString();
+            String lxdh = etLxdh.getText().toString();
+            entity = new PersonEntity();
+
+            if (TextUtils.isEmpty(xm)) {
+                ToastUtils.show("姓名不能为空");
+                return;
+            }
+           /* if (TextUtils.isEmpty(xb)) {
+                ToastUtils.show("性别不能为空");
+                return;
+            }*/
+            if (!TextUtils.isEmpty(sfzh)) {
+                if (!IdCardUtil.validate(sfzh)) {
+                    ToastUtils.show("请输入正确的身份证号码");
+                    return;
+                } else {
+                    entity.setSfzh(sfzh);
+                }
+            } else {
+                ToastUtils.show("公民身份号码不能为空");
+                return;
+                // entity.setSfzh("");
+            }
+            if (!TextUtils.isEmpty(lxdh)) {
+                if (lxdh.length() == 11) {
+                    entity.setLxdh(lxdh);
+                } else {
+                    ToastUtils.show("请输入正确的手机号码");
+                    return;
+                }
+            } else {
+                ToastUtils.show("手机号码不能为空");
+                return;
+                // entity.setLxdh("");
+            }
+
+            if (TextUtils.isEmpty(rylb)) {
+                ToastUtils.show("请选择人员类别");
+                return;
+            }
+            entity.setLb(rylb);
+
+
+            entity.setXm(xm);
+            if (fjList.size() > 0) {
+                for (int i = 0; i < fjList.size(); i++) {
+                    String path = fjList.get(i).path;
+                    File file = new File(path);
+                    Utils.getInstances().showDialog(AddPersonActivity.this, "正在上传");
+                    MultipartBody.Builder builder = new MultipartBody.Builder()
+                            .setType(MultipartBody.FORM);
+                    SharedPreferences sys = getSharedPreferences("sys", MODE_PRIVATE);
+                    String zh = sys.getString("zh", "");
+                    builder.addFormDataPart("file", zh+ UUIDUtils.uuid()+file.getName(), RequestBody.create(MediaType.parse("image/*"), file));
+                    MultipartBody multipartBody = builder.build();
+                    mPresenter.uploadImg(multipartBody);
+                }
+            } else {
+                Intent data = new Intent();
+                data.putExtra("entity", entity);
+                setResult(100, data);
+                finish();
+            }
+            //  entity.setXb(xb);
+
+        });
+        btXg.setOnClickListener(view -> {
+            if (mRyData != null) {
+                String xm = etXm.getText().toString();
+                String sfzh = etIdcard.getText().toString();
+                String lxdh = etLxdh.getText().toString();
+
+                if (TextUtils.isEmpty(xm)) {
+                    ToastUtils.show("姓名不能为空");
+                    return;
+                }
+                if (!TextUtils.isEmpty(sfzh)) {
+                    if (!IdCardUtil.validate(sfzh)) {
+                        ToastUtils.show("请输入正确的身份证号码");
+                        return;
+                    }
+                } else {
+                    ToastUtils.show("公民身份号码不能为空");
+                    return;
+                }
+                if (!TextUtils.isEmpty(lxdh)) {
+                    if (lxdh.length() == 11) {
+                    } else {
+                        ToastUtils.show("请输入正确的手机号码");
+                        return;
+                    }
+                } else {
+                    ToastUtils.show("手机号码不能为空");
+                    return;
+                }
+
+                if (TextUtils.isEmpty(rylb)) {
+                    ToastUtils.show("请选择人员类别");
+                    return;
+                }
+                mRyData.setXm(etXm.getText().toString());
+                mRyData.setSfzh(etIdcard.getText().toString());
+                mRyData.setLxdh(etLxdh.getText().toString());
+                mRyData.setLb(rylb);
+                Intent intent = new Intent();
+                intent.putExtra("entity", mRyData);
+                intent.putExtra("position", getIntent().getIntExtra("position", 0));
+                setResult(RESULT_OK, intent);
+                finish();
+            } else {
+
+                String xm = etXm.getText().toString();
+                String xb = etXb.getText().toString();
+                String sfzh = etIdcard.getText().toString();
+                String lxdh = etLxdh.getText().toString();
+                if (TextUtils.isEmpty(xm)) {
+                    ToastUtils.show("姓名不能为空");
+                    return;
+                }
+
+
+                map = new HashMap<>();
+                map.put("id", ryid);
+                map.put("sfzh", sfzh);
+                map.put("jfId", jfId);
+                map.put("lxdh", lxdh);
+                map.put("lb", rylb);
+                map.put("xm", xm);
+                if (fjList.size() > 0) {
+                    for (int i = 0; i < fjList.size(); i++) {
+                        String path = fjList.get(i).path;
+                        File file = new File(path);
+                        Utils.getInstances().showDialog(AddPersonActivity.this, "正在上传");
+                        MultipartBody.Builder builder = new MultipartBody.Builder()
+                                .setType(MultipartBody.FORM);
+                        SharedPreferences sys = getSharedPreferences("sys", MODE_PRIVATE);
+                        String zh = sys.getString("zh", "");
+                        builder.addFormDataPart("file", zh+UUIDUtils.uuid()+file.getName(), RequestBody.create(MediaType.parse("image/*"), file));
+                        MultipartBody multipartBody = builder.build();
+                        mPresenter.uploadImg(multipartBody);
+                    }
+                } else {
+                    mPresenter.mdrygx(map);
+                }
+            }
+        });
+        ivSm.setOnClickListener(view -> {
+            Intent intent = new Intent(this, CameraActivity.class);
+            intent.putExtra(CameraActivity.KEY_OUTPUT_FILE_PATH,
+                    FileUtil.getSaveFile(getApplication()).getAbsolutePath());
+            intent.putExtra(CameraActivity.KEY_NATIVE_ENABLE,
+                    true);
+            // KEY_NATIVE_MANUAL设置了之后CameraActivity中不再自动初始化和释放模型
+            // 请手动使用CameraNativeHelper初始化和释放模型
+            // 推荐这样做,可以避免一些activity切换导致的不必要的异常
+            intent.putExtra(CameraActivity.KEY_NATIVE_MANUAL,
+                    true);
+            intent.putExtra(CameraActivity.KEY_CONTENT_TYPE, CameraActivity.CONTENT_TYPE_ID_CARD_FRONT);
+            startActivityForResult(intent, REQUEST_CODE_CAMERA);
+        });
+
+        keyboardUtil = new KeyboardUtil(this);
+        //身份证键盘
+        keyboardUtil.setOnOkClick(new KeyboardUtil.OnOkClick() {
+            @Override
+            public void onOkClick() {
+                if (TextUtils.isEmpty(et_id_card.getText().toString())) {
+                    keyboardUtil.attachTo(et_id_card);
+                    ToastUtils.show("公民身份号码不能为空");
+                    return;
+                }
+                if (!RegexUtils.checkIdCard(et_id_card.getText().toString())) {
+                    keyboardUtil.attachTo(et_id_card);
+                    ToastUtils.show("您输入的身份证信息有误");
+                    return;
+                }
+
+                //requestData(et_id_card.getText().toString(), true);
+                etIdcard.setText(et_id_card.getText().toString().trim());
+                ll_price_select.setVisibility(View.GONE);
+                et_id_card.getText().clear();
+                Map<String, String> map = new HashMap<>();
+                map.put("rksfzh", etIdcard.getText().toString());
+//                mPresenter.verifyRy(map);
+            }
+        });
+        ll_price_select.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                ll_price_select.setVisibility(View.GONE);
+            }
+        });
+        keyboardUtil.setOnCancelClick(new KeyboardUtil.onCancelClick() {
+            @Override
+            public void onCancellClick() {
+                ll_price_select.setVisibility(View.GONE);
+            }
+        });
+        //禁止点击输入框时弹出系统键盘
+        et_id_card.setOnTouchListener(new View.OnTouchListener() {
+            @Override
+            public boolean onTouch(View v, MotionEvent event) {
+                keyboardUtil.attachTo(et_id_card);
+                return false;
+            }
+        });
+
+        //身份证号输入框失去焦点隐藏
+        et_id_card.setOnFocusChangeListener(new View.OnFocusChangeListener() {
+            @Override
+            public void onFocusChange(View view, boolean b) {
+                if (!b)
+                    ll_price_select.setVisibility(View.GONE);
+            }
+        });
+        etIdcard.setOnClickListener(view -> {
+            sdsr();
+        });
+    }
+
+    private void sdsr() {
+        keyboardUtil.attachTo(et_id_card);
+
+        et_id_card.setFocusable(true);
+        et_id_card.setFocusableInTouchMode(true);
+        et_id_card.requestFocus();
+        ll_price_select.setVisibility(View.VISIBLE);
+    }
+
+    private List<CommonEntity.DataBean> getList(String json) {
+        Gson gson = new Gson();
+        CommonEntity commonEntity = gson.fromJson(json, CommonEntity.class);
+        List<CommonEntity.DataBean> data = commonEntity.getData();
+
+        return data;
+    }
+
+    @Override
+    protected void onDestroy() {
+        // 释放本地质量控制模型
+        CameraNativeHelper.release();
+        super.onDestroy();
+    }
+
+    private void initImagePicker() {
+        ImagePicker imagePicker = ImagePicker.getInstance();
+        imagePicker.setImageLoader(new GlideImageLoader());   //设置图片加载器
+        imagePicker.setShowCamera(true);                      //显示拍照按钮
+        imagePicker.setCrop(true);                            //允许裁剪(单选才有效)
+        imagePicker.setSaveRectangle(true);                   //是否按矩形区域保存
+        imagePicker.setSelectLimit(9);              //选中数量限制
+        imagePicker.setMultiMode(false);                      //多选
+        imagePicker.setStyle(CropImageView.Style.RECTANGLE);  //裁剪框的形状
+        imagePicker.setFocusWidth(1000);                       //裁剪框的宽度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setFocusHeight(1600);                      //裁剪框的高度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setOutPutX(1000);                         //保存文件的宽度。单位像素
+        imagePicker.setOutPutY(1000);                      //保存文件的高度。单位像素
+    }
+
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
+        super.onActivityResult(requestCode, resultCode, data);
+        if (requestCode == REQUEST_CODE_CAMERA && resultCode == Activity.RESULT_OK) {
+            if (data != null) {
+                String contentType = data.getStringExtra(CameraActivity.KEY_CONTENT_TYPE);
+                String filePath = FileUtil.getSaveFile(getApplicationContext()).getAbsolutePath();
+                if (!TextUtils.isEmpty(contentType)) {
+                    if (CameraActivity.CONTENT_TYPE_ID_CARD_FRONT.equals(contentType)) {
+                        recIDCard(IDCardParams.ID_CARD_SIDE_FRONT, filePath);
+                    } else if (CameraActivity.CONTENT_TYPE_ID_CARD_BACK.equals(contentType)) {
+                        recIDCard(IDCardParams.ID_CARD_SIDE_BACK, filePath);
+                    }
+                }
+            }
+        }
+
+        if (resultCode == ImagePicker.RESULT_CODE_ITEMS) {
+            //添加图片返回
+            if (data != null && requestCode == REQUEST_CODE_SELECT) {
+                ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_RESULT_ITEMS);
+                if (images != null) {
+                    fjList.addAll(images);
+                    mAdapter.setImages(fjList);
+
+                }
+            }
+
+
+        } else if (resultCode == ImagePicker.RESULT_CODE_BACK) {
+            //预览图片返回
+            if (data != null && requestCode == REQUEST_CODE_PREVIEW) {
+                ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_IMAGE_ITEMS);
+                if (images != null) {
+                    fjList.clear();
+                    fjList.addAll(images);
+                    mAdapter.setImages(fjList);
+                }
+            }
+        }
+    }
+
+    private void recIDCard(String idCardSide, String filePath) {
+        runOnUiThread(new Runnable() {
+            @Override
+            public void run() {
+                Utils.getInstances().showDialog(AddPersonActivity.this, "正在解析身份信息");
+            }
+        });
+
+        IDCardParams param = new IDCardParams();
+        param.setImageFile(new File(filePath));
+        // 设置身份证正反面
+        param.setIdCardSide(idCardSide);
+        // 设置方向检测
+        param.setDetectDirection(true);
+        // 设置图像参数压缩质量0-100, 越大图像质量越好但是请求时间越长。 不设置则默认值为20
+        param.setImageQuality(20);
+
+        param.setDetectRisk(true);
+
+        OCR.getInstance(this).recognizeIDCard(param, new OnResultListener<IDCardResult>() {
+            @Override
+            public void onResult(IDCardResult result) {
+                if (result != null) {
+                    String string = result.toString();
+                    System.out.println("string = " + string);
+                    Utils.getInstances().dismissDialog();
+                    etXb.setText(result.getGender().toString());
+                    etXm.setText(result.getName().toString());
+                    etIdcard.setText(result.getIdNumber().toString());
+                    Map<String, String> map = new HashMap<>();
+                    map.put("rksfzh", etIdcard.getText().toString());
+//                    mPresenter.verifyRy(map);
+                }
+            }
+
+            @Override
+            public void onError(OCRError error) {
+                ToastUtils.show("识别失败" + error.getMessage());
+            }
+        });
+    }
+
+    private void localZd() {
+        String jwszl = AssetsUtil.getJson(this, "mdjfrylb.json");
+        list = getList(jwszl);
+
+        spLb.setAdapter(new JwcjAdapter(list, this));
+
+        spLb.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
+
+
+            @Override
+            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
+                rylb = list.get(position).getKey();
+                System.out.println("rylb = " + rylb);
+            }
+
+            @Override
+            public void onNothingSelected(AdapterView<?> parent) {
+
+            }
+        });
+
+    }
+
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+
+    @Override
+    public void onItemClick(View view, int position) {
+        switch (position) {
+            case IMAGE_ITEM_ADD:
+                ImagePicker.getInstance().setSelectLimit(maxFj - fjList.size());
+                Intent intent = new Intent(this, ImageGridActivity.class);
+                //intent.putExtra(ImageGridActivity.EXTRAS_IMAGES,(ArrayList<ImageItem>) adapter.getImages());
+                intent.putExtra(ImageGridActivity.EXTRAS_TAKE_PICKERS, true);
+                startActivityForResult(intent, REQUEST_CODE_SELECT);
+                break;
+            default:
+                //打开预览
+                Intent intentPreview = new Intent(this, ImagePreviewDelActivity.class);
+                intentPreview.putExtra(ImagePicker.EXTRA_IMAGE_ITEMS, (ArrayList<ImageItem>) mAdapter.getImages());
+                intentPreview.putExtra(ImagePicker.EXTRA_SELECTED_IMAGE_POSITION, position);
+                intentPreview.putExtra(ImagePicker.EXTRA_FROM_ITEMS, true);
+                startActivityForResult(intentPreview, REQUEST_CODE_PREVIEW);
+                break;
+        }
+    }
+
+    @Override
+    public void onSuccess(String result) {
+        JsonObject jsonObject1 = new JsonParser().parse(result).getAsJsonObject();
+        JsonObject jsonObject = jsonObject1.get("data").getAsJsonObject();
+        if (jsonObject.has("link")) {
+            String url = jsonObject.get("link").getAsString();
+            fjPath.add(url);
+            if (fjList.size() == fjPath.size()) {
+                Utils.getInstances().dismissDialog();
+                StringBuffer sbzp = new StringBuffer();
+                for (int i = 0; i < fjPath.size(); i++) {
+                    if (i == fjPath.size() - 1) {
+                        sbzp.append(fjPath.get(i));
+                    } else {
+                        sbzp.append(fjPath.get(i)).append(",");
+                    }
+                }
+                if (getIntent().hasExtra("xz")) {
+                    entity.setRyzp(sbzp.toString());
+                    Intent data = new Intent();
+                    data.putExtra("entity", entity);
+                    setResult(100, data);
+                    finish();
+                } else if (getIntent().hasExtra("xg")) {
+                    map.put("ryzp", sbzp.toString());
+                    mPresenter.mdrygx(map);
+                }
+
+            }
+        }
+    }
+
+    @Override
+    public void onUpdate(String result) {
+        System.out.println("更新-----" + result);
+        try {
+            JsonObject obj = new JsonParser().parse(result).getAsJsonObject();
+            if (obj.has("code")) {
+                int code = obj.get("code").getAsInt();
+                if (code == 200) {
+                    ToastUtils.show("更新成功");
+                    finish();
+                } else {
+                    ToastUtils.show("更新失败");
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            ToastUtils.show("更新失败");
+        }
+    }
+
+    @Override
+    public void getRyDataSuccess(String result) {
+        try {
+            RyEntity kqBean = new Gson().fromJson(result, RyEntity.class);
+            if (kqBean.getData() >= 1) {
+                android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(AddPersonActivity.this);
+                builder.setMessage("后台出现代码级严重故障,请与数据管理员联系确认并核实。");
+                builder.setPositiveButton("我知道了", new DialogInterface.OnClickListener() {
+                    @Override
+                    public void onClick(DialogInterface dialog, int which) {
+                        dialog.dismiss();
+                    }
+                });
+                builder.create().show();
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

+ 389 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/GdMapActivity.java

@@ -0,0 +1,389 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.animation.AnimatorSet;
+import android.animation.ObjectAnimator;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Bundle;
+import android.os.PersistableBundle;
+import android.text.TextUtils;
+import android.util.Log;
+import android.view.View;
+import android.widget.Button;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.appcompat.widget.AppCompatImageView;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.amap.api.location.AMapLocation;
+import com.amap.api.location.AMapLocationClient;
+import com.amap.api.location.AMapLocationClientOption;
+import com.amap.api.location.AMapLocationListener;
+import com.amap.api.maps.AMap;
+import com.amap.api.maps.AMapOptions;
+import com.amap.api.maps.CameraUpdateFactory;
+import com.amap.api.maps.MapView;
+import com.amap.api.maps.MapsInitializer;
+import com.amap.api.maps.UiSettings;
+import com.amap.api.maps.model.CameraPosition;
+import com.amap.api.maps.model.LatLng;
+import com.amap.api.maps.model.MyLocationStyle;
+import com.amap.api.services.core.AMapException;
+import com.amap.api.services.core.LatLonPoint;
+import com.amap.api.services.core.PoiItem;
+import com.amap.api.services.geocoder.GeocodeResult;
+import com.amap.api.services.geocoder.GeocodeSearch;
+import com.amap.api.services.geocoder.RegeocodeQuery;
+import com.amap.api.services.geocoder.RegeocodeResult;
+import com.chad.library.adapter.base.BaseQuickAdapter;
+import com.chad.library.adapter.base.viewholder.BaseViewHolder;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.xwkj.rhzf.di.component.DaggerGdMapComponent;
+import com.xwkj.rhzf.mvp.contract.GdMapContract;
+import com.xwkj.rhzf.mvp.presenter.GdMapPresenter;
+
+import com.xwkj.rhzf.R;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.view.CommonTitleBar;
+
+
+import org.jetbrains.annotations.NotNull;
+
+import java.util.List;
+
+import butterknife.BindView;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 09:50
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class GdMapActivity extends ZkjcBaseActivity<GdMapPresenter> implements GdMapContract.View, View.OnClickListener, GeocodeSearch.OnGeocodeSearchListener, AMapLocationListener {
+
+    @BindView(R.id.title_bar)
+    CommonTitleBar titleBar;
+    @BindView(R.id.mapView)
+    MapView mapView;
+    @BindView(R.id.vCenter)
+    View vCenter;
+    @BindView(R.id.iv_location)
+    AppCompatImageView ivLocation;
+    @BindView(R.id.mapLayout)
+    RelativeLayout mapLayout;
+    @BindView(R.id.tvLocation)
+    TextView tvLocation;
+    @BindView(R.id.bt_sure)
+    Button btSure;
+    @BindView(R.id.rv)
+    RecyclerView rv;
+    private BaseQuickAdapter mAdapter;
+    private View rvHeadView;
+    private AMap aMap;
+    private AMapLocationClient mlocationClient;
+    private AMapLocationClientOption mLocationOption;
+    private AnimatorSet animatorSet;
+    private GeocodeSearch geocoderSearch;
+    private List<PoiItem> list;
+    private TextView tvTitle;
+    private double latitude;
+    private double longitude;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerGdMapComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+
+        return R.layout.activity_gd_map; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("地图定位");
+        MapsInitializer.updatePrivacyShow(GdMapActivity.this, true, true);
+        MapsInitializer.updatePrivacyAgree(GdMapActivity.this, true);
+        mapView.onCreate(savedInstanceState);
+        tvLocation.setOnClickListener(this);
+        rv.setLayoutManager(new LinearLayoutManager(this));
+        mAdapter = new BaseQuickAdapter<PoiItem, BaseViewHolder>(R.layout.item_wz) {
+            @Override
+            protected void convert(@NotNull BaseViewHolder holder, PoiItem item) {
+                holder.setText(R.id.tvTitle, item.getTitle());
+                holder.setText(R.id.tvContent, item.getSnippet());
+                holder.itemView.setOnClickListener(view -> {
+                    tvLocation.setText(item.getTitle());
+                    latitude = item.getLatLonPoint().getLatitude();
+                    longitude = item.getLatLonPoint().getLongitude();
+                });
+
+            }
+        };
+        rv.setAdapter(mAdapter);
+
+        rvHeadView = View.inflate(this, R.layout.item_maplocation_head, null);
+        tvTitle = rvHeadView.findViewById(R.id.tvTitle);
+        mAdapter.setHeaderView(rvHeadView);
+        if (aMap == null) {
+            aMap = mapView.getMap();
+        }
+       /* aMap.setLoadOfflineData(true);
+        CustomMapStyleOptions options = new CustomMapStyleOptions();
+        options.setEnable(true);
+        options.setStyleDataPath(Environment.getExternalStorageDirectory() + "/MyMap/amap");
+        aMap.setCustomMapStyle(options);*/
+        MyLocationStyle myLocationStyle = new MyLocationStyle();
+        myLocationStyle.myLocationType(MyLocationStyle.LOCATION_TYPE_LOCATION_ROTATE_NO_CENTER);
+        myLocationStyle.interval(2000); //设置连续定位模式下的定位间隔,只在连续定位模式下生效,单次定位模式下不会生效。单位为毫秒。
+
+        myLocationStyle.strokeColor(Color.argb(0, 0, 0, 0));// 设置圆形的边框颜色    不显示范围圆圈
+
+        myLocationStyle.radiusFillColor(
+                Color.argb(
+                        0,
+                        0,
+                        0,
+                        0
+                )
+        );// 设置圆形的填充颜色 不显示范围圆圈
+        aMap.setMyLocationStyle(myLocationStyle);
+        UiSettings uiSettings = aMap.getUiSettings();
+        uiSettings.setMyLocationButtonEnabled(true);
+        aMap.setMyLocationEnabled(true);
+        aMap.moveCamera(CameraUpdateFactory.zoomTo(15f));
+
+        uiSettings.setZoomControlsEnabled(true);
+        uiSettings.setScaleControlsEnabled(true);
+        uiSettings.setLogoPosition(AMapOptions.LOGO_MARGIN_LEFT);
+
+        goLocation();
+        aMap.setOnCameraChangeListener(new AMap.OnCameraChangeListener() {
+            @Override
+            public void onCameraChange(CameraPosition cameraPosition) {
+
+            }
+
+            @Override
+            public void onCameraChangeFinish(CameraPosition cameraPosition) {
+                //animTranslate();
+                getGeocodeSearch(cameraPosition.target);
+            }
+        });
+        btSure.setOnClickListener(view ->
+
+        {
+            String location = tvLocation.getText().toString();
+            if (!TextUtils.isEmpty(location)) {
+                Intent intent = new Intent();
+                intent.putExtra("location", location);
+                intent.putExtra("dtjd", longitude + "");
+                intent.putExtra("dtwd", latitude + "");
+                System.out.println("地图位置" + latitude + "---" + longitude);
+                setResult(5, intent);
+                finish();
+            }
+        });
+    }
+
+    private void getGeocodeSearch(LatLng target) {
+        try {
+            geocoderSearch = new GeocodeSearch(this);
+            geocoderSearch.setOnGeocodeSearchListener(this);
+            RegeocodeQuery query = new RegeocodeQuery(new LatLonPoint(target.latitude, target.longitude), 200F, GeocodeSearch.AMAP);
+            query.setExtensions("all");
+            geocoderSearch.getFromLocationAsyn(query);
+        } catch (AMapException e) {
+            e.printStackTrace();
+        }
+
+
+    }
+
+    private void animTranslate() {
+        if (animatorSet == null) {
+            animatorSet = new AnimatorSet();
+            animatorSet.playTogether(
+                    ObjectAnimator.ofFloat(
+                            ivLocation,
+                            "scaleX",
+                            1F,
+                            0.5F,
+                            1F
+                    ).setDuration(300)
+                    ,
+                    ObjectAnimator.ofFloat(
+                            ivLocation,
+                            "scaleY",
+                            1F,
+                            0.5F,
+                            1F
+                    ).setDuration(300)
+            );
+        }
+
+
+        animatorSet.start();
+    }
+
+    private void goLocation() { //获取位置信息
+        try {
+            mlocationClient = new AMapLocationClient(this);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        //初始化定位参数
+        mLocationOption = new AMapLocationClientOption();
+        //设置定位监听
+        mlocationClient.setLocationListener(this);
+        //设置定位模式为高精度模式,Battery_Saving为低功耗模式,Device_Sensors是仅设备模式
+        mLocationOption.setLocationMode(AMapLocationClientOption.AMapLocationMode.Hight_Accuracy);
+        //设置定位间隔,单位毫秒,默认为2000ms
+        mLocationOption.setInterval(-1000);
+        mLocationOption.setOnceLocation(true);
+        //设置定位参数
+        mlocationClient.setLocationOption(mLocationOption);
+        //启动定位
+        mlocationClient.startLocation();
+    }
+
+
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+
+    @Override
+    public void onClick(View v) {
+
+    }
+
+    private void setMapCenter(AMapLocation amapLocation) {
+        aMap.animateCamera(
+                CameraUpdateFactory.newCameraPosition(
+                        new CameraPosition(
+                                new LatLng(amapLocation.getLatitude(), amapLocation.getLongitude())
+                                , 15F, 0F, 0F
+                        )
+                ), 300, null
+        );//设置地图中心点
+    }
+
+    @Override
+    public void onLocationChanged(AMapLocation amapLocation) {
+        if (amapLocation != null && amapLocation.getErrorCode() == AMapLocation.LOCATION_SUCCESS) {
+
+            setMapCenter(amapLocation);
+        } else { //显示错误信息ErrCode是错误码,errInfo是错误信息,详见错误码表。
+            Log.e(
+                    "AmapError",
+                    "location Error, ErrCode:" + amapLocation.getErrorCode() + ", errInfo:" + amapLocation.getErrorInfo()
+            );
+        }
+        latitude = amapLocation.getLatitude();
+        longitude = amapLocation.getLongitude();
+        mlocationClient.stopLocation();
+        mlocationClient.onDestroy();
+
+    }
+
+    @Override
+    public void onRegeocodeSearched(RegeocodeResult regeocodeResult, int i) {
+        if (i != 1000) return;
+        RegeocodeQuery regeocodeQuery = regeocodeResult.getRegeocodeQuery();
+        List<PoiItem> pois = regeocodeResult.getRegeocodeAddress().getPois();
+        mAdapter.setNewData(pois);
+        String province = regeocodeResult.getRegeocodeAddress().getProvince();
+        String city = regeocodeResult.getRegeocodeAddress().getCity();
+        String district = regeocodeResult.getRegeocodeAddress().getDistrict();
+
+        tvTitle.setText(province + city + district);
+        tvLocation.setText(regeocodeResult.getRegeocodeAddress().getFormatAddress());
+        if (pois.size() > 0) {
+            latitude = pois.get(0).getLatLonPoint().getLatitude();
+            longitude = pois.get(0).getLatLonPoint().getLongitude();
+        }
+        System.out.println("第一次位置" + pois + "la" + latitude + "lo" + longitude);
+    }
+
+    @Override
+    public void onGeocodeSearched(GeocodeResult geocodeResult, int i) {
+
+    }
+
+    @Override
+    protected void onResume() {
+        super.onResume();
+        if (mapView != null)
+            mapView.onResume();
+        goLocation();
+    }
+
+    @Override
+    protected void onPause() {
+        super.onPause();
+        if (mapView != null)
+            mapView.onPause();
+    }
+
+    @Override
+    public void onSaveInstanceState(Bundle outState, PersistableBundle outPersistentState) {
+        super.onSaveInstanceState(outState, outPersistentState);
+        mapView.onSaveInstanceState(outState);
+    }
+
+    @Override
+    protected void onDestroy() {
+        if (mapView != null) {
+            mapView.onDestroy();
+        }
+        super.onDestroy();
+        if (mlocationClient != null) {
+            mlocationClient.onDestroy();
+        }
+    }
+}

+ 12 - 12
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/LoginActivity.java

@@ -7,6 +7,7 @@ import android.os.Bundle;
 import android.text.TextUtils;
 import android.text.method.HideReturnsTransformationMethod;
 import android.text.method.PasswordTransformationMethod;
+import android.util.Log;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.ImageView;
@@ -87,6 +88,7 @@ public class LoginActivity extends ZkjcBaseActivity<LoginPresenter> implements L
     private XmPermissions xmPermissions;
     private SharedPreferences sys;
     private boolean isFj; // 目前取消此功能
+    private boolean isRhzf;
 
     @Override
     public void setupActivityComponent(@NonNull AppComponent appComponent) {
@@ -113,9 +115,11 @@ public class LoginActivity extends ZkjcBaseActivity<LoginPresenter> implements L
 //        xmPermissions.requestAllPermissions();
         sys = getSharedPreferences("sys", MODE_PRIVATE);
         boolean isFirst = sys.getBoolean("isFirst", true);
+        isRhzf = getIntent().getBooleanExtra("isRhzf", false);
         int oldCode = sys.getInt("app_version_code", 0);
         int nowCode = ApkUtils.getVersionCode(LoginActivity.this);
-        if (!isFirst) {
+
+        if (/*!isFirst*/false) {
             if (oldCode != 50 && nowCode == 50) {
 
             } else {
@@ -123,14 +127,6 @@ public class LoginActivity extends ZkjcBaseActivity<LoginPresenter> implements L
                 ArmsUtils.startActivity(RhzfMainNewActivity.class);
                 finish();
             }
-            /*System.out.println("System.currentTimeMillis() = " + System.currentTimeMillis());
-            long currentTime = System.currentTimeMillis() / 1000;
-            Long loginTime = sys.getLong("loginTime", 0);
-            if (currentTime - loginTime >= 604800) {
-                return;
-            } else {
-
-            }*/
 
         }
         DevicesUtils.getDeviceId(LoginActivity.this, new DevicesUtils.OnDeviceIdListener() {
@@ -169,8 +165,8 @@ public class LoginActivity extends ZkjcBaseActivity<LoginPresenter> implements L
             map1.put("className", "bladeTokenEndPoint");
             map1.put("methodName", "token3");
             map1.put("params", map);
-            map1.put("username", "sqmj1");
-            map1.put("password", MD5.md5("123456"));
+            map1.put("username", zh);
+            map1.put("password", MD5.md5(mm));
             mPresenter.login(map1);
             Utils.getInstances().showDialog(LoginActivity.this, "正在登录");
 
@@ -352,7 +348,11 @@ public class LoginActivity extends ZkjcBaseActivity<LoginPresenter> implements L
         Utils.getInstances().dismissDialog();
         edit.commit();
         sys.edit().putBoolean("isFirst", false).commit();
-        ArmsUtils.startActivity(RhzfMainNewActivity.class);
+        if (isRhzf) {
+            ArmsUtils.startActivity(RhzfMainNewActivity.class);
+        } else {
+            ArmsUtils.startActivity(MdjfActivity.class);
+        }
         finish();
     }
 

+ 679 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdDjXqActivity.java

@@ -0,0 +1,679 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.Manifest;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.content.pm.PackageManager;
+import android.os.Bundle;
+import android.text.TextUtils;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.LinearLayout;
+import android.widget.RadioButton;
+import android.widget.RadioGroup;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.core.app.ActivityCompat;
+import androidx.core.content.ContextCompat;
+import androidx.recyclerview.widget.GridLayoutManager;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.base.DefaultAdapter;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.lzy.imagepicker.ImagePicker;
+import com.lzy.imagepicker.view.CropImageView;
+import com.xwkj.rhzf.app.utils.GlideImageLoader;
+import com.xwkj.rhzf.app.utils.SignatureDialogV2;
+import com.xwkj.rhzf.app.view.FlowRadioGroup;
+import com.xwkj.rhzf.di.component.DaggerMdDjXqComponent;
+import com.xwkj.rhzf.mvp.contract.MdDjXqContract;
+import com.xwkj.rhzf.mvp.model.entity.MdjfXqEntity;
+import com.xwkj.rhzf.mvp.presenter.MdDjXqPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.adapter.BaseRecycleAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.ImageViewAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.TjjfDetailPersonAdapter;
+import com.xwkj.rhzf.mvp.ui.fragment.ImgDialog;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.utils.DevicesUtils;
+import com.zkjc.common.view.CommonTitleBarV3;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import butterknife.BindView;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:49
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class MdDjXqActivity extends ZkjcBaseActivity<MdDjXqPresenter> implements MdDjXqContract.View {
+
+    private static final int KRequestTj = 100;
+    @BindView(R.id.title_bar)
+    CommonTitleBarV3 titleBar;
+    @BindView(R.id.et_jfmc)
+    TextView etJfmc;
+    @BindView(R.id.et_jflx)
+    TextView etJflx;
+    @BindView(R.id.et_jfjb)
+    TextView etJfjb;
+    @BindView(R.id.et_jfyy)
+    TextView etJfyy;
+    @BindView(R.id.fssj)
+    TextView fssj;
+    @BindView(R.id.rl_fssj)
+    RelativeLayout rlFssj;
+    @BindView(R.id.fsdd)
+    TextView fsdd;
+    @BindView(R.id.rl_fsdd)
+    RelativeLayout rlFsdd;
+    @BindView(R.id.et_jyaq)
+    TextView etJyaq;
+    @BindView(R.id.et_jfly)
+    TextView et_jfly;
+    @BindView(R.id.recyclerViewFj)
+    RecyclerView recyclerViewFj;
+    @BindView(R.id.recylerView)
+    RecyclerView recylerView;
+    @BindView(R.id.tv_number)
+    TextView tvNumber;
+    @BindView(R.id.rl)
+    RelativeLayout rl;
+    @BindView(R.id.bt_add)
+    Button btAdd;
+    @BindView(R.id.hfnr_et)
+    EditText hfnrEt;
+    @BindView(R.id.bt_tjhf)
+    Button btTjhf;
+    @BindView(R.id.ll_hf)
+    LinearLayout llHf;
+    @BindView(R.id.tv_hfnr)
+    TextView tvHfnr;
+    @BindView(R.id.rl_hfnr)
+    RelativeLayout rlHfnr;
+    @BindView(R.id.ll_hfnr)
+    LinearLayout llHfnr;
+    @BindView(R.id.tv_hfsj)
+    TextView tvHfsj;
+    @BindView(R.id.rl_hfsj)
+    RelativeLayout rlHfsj;
+    @BindView(R.id.ll_hfsj)
+    LinearLayout llHfsj;
+    @BindView(R.id.tv_hfr)
+    TextView tvHfr;
+    @BindView(R.id.hfr)
+    RelativeLayout hfr;
+    @BindView(R.id.ll_hfr)
+    LinearLayout llHfr;
+    @BindView(R.id.rb_cjmy)
+    RadioButton rbCjmy;
+    @BindView(R.id.rb_cjbmy)
+    RadioButton rbCjbmy;
+    @BindView(R.id.cjqk)
+    FlowRadioGroup cjqk;
+    @BindView(R.id.rb_wts)
+    RadioButton rbWts;
+    @BindView(R.id.rb_wtf)
+    RadioButton rbWtf;
+    @BindView(R.id.rg_wt)
+    FlowRadioGroup rgWt;
+    @BindView(R.id.rb_gzs)
+    RadioButton rbGzs;
+    @BindView(R.id.rb_gzf)
+    RadioButton rbGzf;
+    @BindView(R.id.rg_gz)
+    FlowRadioGroup rgGz;
+    @BindView(R.id.xf_et)
+    EditText xfEt;
+    @BindView(R.id.tv_sfmy)
+    TextView tvSfmy;
+    @BindView(R.id.tv_sfjj)
+    TextView tvSfjj;
+    @BindView(R.id.tv_sfgz)
+    TextView tvSfgz;
+    @BindView(R.id.tv_sssq)
+    TextView tvSssq;
+    @BindView(R.id.hfwtjy)
+    TextView hfwtjy;
+    @BindView(R.id.thjlRec)
+    RecyclerView thjlRec;
+    @BindView(R.id.ll_sfmy)
+    LinearLayout llSfmy;
+    @BindView(R.id.ll_sfjj)
+    LinearLayout llSfjj;
+    @BindView(R.id.ll_sfgz)
+    LinearLayout llSfgz;
+    @BindView(R.id.ll_wtjy)
+    LinearLayout llWtjy;
+    @BindView(R.id.rl_thjl)
+    RelativeLayout rlThjl;
+    @BindView(R.id.et_bz)
+    TextView etBz;
+    @BindView(R.id.hfdd)
+    TextView hfdd;
+    @BindView(R.id.tv_jfdj)
+    TextView tvJfdj;
+    @BindView(R.id.tv_bjrdh)
+    TextView tvBjrdh;
+    @BindView(R.id.layout_bjrdh)
+    View layoutBjrdh;
+    @BindView(R.id.layout_mdjfdj)
+    View layoutMdjfdj;
+    @BindView(R.id.rl_hfdd)
+    RelativeLayout rlHfdd;
+    private List<MdjfXqEntity.DataBean.MdjfRyListBean> mdjfRyList;
+    private MdjfXqEntity entity;
+    private String id;
+    private int maxAq = 4;
+    public static final int REQUEST_CODE_SELECT_AQ = 115;
+    public static final int REQUEST_CODE_PREVIEW_AQ = 116;
+
+    public static final int IMAGE_ITEM_ADD = -1;
+    private String sfmy = "1";
+    private String sfjj = "1";
+    private String sfsc = "0";
+    private Map<String, Object> map;
+    private String flag = "wtj";
+    private Map<String, String> hfzpMap;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerMdDjXqComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_md_dj_xq2; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+    @Override
+    protected void onResume() {
+        super.onResume();
+        /*if (!TextUtils.isEmpty(id)) {
+            Map<String, String> map = new HashMap<>();
+            map.put("id", id);
+            mPresenter.getJfxq(map);
+        }*/
+
+    }
+    public static String MSG="管理员无法使用该功能,如果非管理员用户请联系管理员维护所属社区!";
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("矛盾纠纷详情");
+        titleBar.setRight("调解记录");
+        /*if (ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE) !=
+                // 未授权则向用户申请权限
+                PackageManager.PERMISSION_GRANTED) {
+            ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CALL_PHONE}, 1);
+        } else {
+            // 已经授权则直接拨打电话
+            System.out.println("\"已经有拨打电话的权限了\" = " + "已经有拨打电话的权限了");
+        }*/
+        hfzpMap = new HashMap<>();
+        SharedPreferences sys = getSharedPreferences("sys", MODE_PRIVATE);
+        id = getIntent().getStringExtra("id");
+        titleBar.setRightOnClick(view -> {
+            Intent intent = new Intent(MdDjXqActivity.this, MdTjLbActivity.class);
+            intent.putExtra("id", id);
+            startActivity(intent);
+        });
+        initImagePicker();
+        if (getIntent().hasExtra("ytj")) {
+            btAdd.setVisibility(View.GONE);
+            flag = "ytj";
+        }
+        if (getIntent().hasExtra("ygz")) {
+            btAdd.setVisibility(View.GONE);
+            flag = "ygz";
+        }
+        if (getIntent().hasExtra("hf")) {
+            flag = "hf";
+            btAdd.setVisibility(View.GONE);
+            llHf.setVisibility(View.VISIBLE);
+
+
+        }
+        map = new HashMap<>();
+        Map<String, String> map2 = new HashMap<>();
+        map.put("id", id);
+        map2.put("id", id);
+        String deptCategory = sys.getString("deptCategory", "");
+        mPresenter.getJfxq(map2);
+        btAdd.setOnClickListener(view -> {
+
+            if (!"7".equals(deptCategory)) {
+                ToastUtils.show(MSG);
+                return;
+            }
+            if (mdjfRyList == null || mdjfRyList.isEmpty()) {
+                ToastUtils.show("正在获取纠纷人员数据,请获取后再试");
+                return;
+            }
+            /*if (mdjfRyList.size() < 2) {
+                ToastUtils.show("纠纷人员至少需要甲乙双方人员");
+                return;
+            } else {
+                for (int i = 0; i < mdjfRyList.size(); i++) {
+                    MdjfXqEntity.DataBean.MdjfRyListBean bean = mdjfRyList.get(i);
+                    String xm = bean.getXm();
+                    String sfzh = bean.getSfzh();
+                    String lxdh = bean.getLxdh();
+                    String lb = bean.getLb();
+                    *//*if (TextUtils.isEmpty(lxdh) || TextUtils.isEmpty(sfzh) || TextUtils.isEmpty(xm)) {
+                        ToastUtils.show("请完善" + lb + "人员信息");
+                        return;
+                    }*//*
+                }
+            }*/
+            Intent intent = new Intent(getApplicationContext(), TjjfNewActivity.class);
+            intent.putExtra("jfid", id);
+            intent.putExtra("entity", entity);
+            startActivityForResult(intent, KRequestTj);
+
+        });
+        rlHfdd.setOnClickListener(view -> {
+            if (!DevicesUtils.isLocServiceEnable(this)) {
+                ToastUtils.show("请开启定位服务");
+                return;
+            }
+            startActivityForResult(new Intent(MdDjXqActivity.this, GdMapActivity.class), 0);
+        });
+        btTjhf.setOnClickListener(view -> {
+            if (!"7".equals(deptCategory)) {
+                ToastUtils.show(MSG);
+                return;
+            }
+            String hfnr = hfnrEt.getText().toString().trim();
+            if (TextUtils.isEmpty(hfnr)) {
+                ToastUtils.show("请填写回访情况");
+                return;
+            }
+            if (TextUtils.isEmpty(hfdd.getText().toString())) {
+                ToastUtils.show("请填写回访地点");
+                return;
+            }
+            if (mdjfRyList != null && !mdjfRyList.isEmpty()) {
+                for (int i = 0; i < mdjfRyList.size(); i++) {
+                    MdjfXqEntity.DataBean.MdjfRyListBean bean = mdjfRyList.get(i);
+                    if (TextUtils.isEmpty(bean.getHfzp())) {
+                        ToastUtils.show("请录入" + bean.getLb() + "签字");
+                        return;
+                    }
+                }
+            }
+            map.put("jfId", id);
+            map.put("hfqk", hfnr);
+            map.put("hfdd", hfdd.getText().toString());
+
+
+            map.put("sfmy", sfmy);
+            map.put("sfjj", sfjj);
+            map.put("sfsc", sfsc);
+            map.put("bz", xfEt.getText().toString());
+            map.put("hfzpMap", hfzpMap);
+            mPresenter.mdhf(map);
+
+
+            /*  mPresenter.mdhf(map);*/
+        });
+        initRg();
+    }
+
+    private void initRg() {
+        cjqk.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
+            @Override
+            public void onCheckedChanged(RadioGroup group, int checkedId) {
+                switch (checkedId) {
+                    case R.id.rb_cjmy:
+                        sfmy = "1";
+                        break;
+                    case R.id.rb_cjbmy:
+                        sfmy = "2";
+                        break;
+                }
+            }
+        });
+
+    }
+
+    private void initImagePicker() {
+        ImagePicker imagePicker = ImagePicker.getInstance();
+        imagePicker.setImageLoader(new GlideImageLoader());   //设置图片加载器
+        imagePicker.setShowCamera(true);                      //显示拍照按钮
+        imagePicker.setCrop(true);                            //允许裁剪(单选才有效)
+        imagePicker.setSaveRectangle(true);                   //是否按矩形区域保存
+        imagePicker.setSelectLimit(4);              //选中数量限制
+        imagePicker.setMultiMode(false);                      //多选
+        imagePicker.setStyle(CropImageView.Style.RECTANGLE);  //裁剪框的形状
+        imagePicker.setFocusWidth(1000);                       //裁剪框的宽度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setFocusHeight(1600);                      //裁剪框的高度。单位像素(圆形自动取宽高最小值)
+        imagePicker.setOutPutX(1000);                         //保存文件的宽度。单位像素
+        imagePicker.setOutPutY(1000);                   //保存文件的高度。单位像素
+    }
+
+    @Override
+    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
+        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
+        if (requestCode == 1) {
+            if (grantResults.length == 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
+                System.out.println("\"已经有拨打电话的权限了\" = " + "已经有拨打电话的权限了");
+            } else {
+                Toast.makeText(this, "You denied the permission", Toast.LENGTH_SHORT).show();
+            }
+
+        }
+    }
+
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+
+    @Override
+    public void onSuccess(String result) {
+        System.out.println(result);
+        try {
+            entity = new Gson().fromJson(result, MdjfXqEntity.class);
+            MdjfXqEntity.DataBean.MdjfDjBean mdjfDj = entity.getData().getMdjfDj();
+            etJfmc.setText(mdjfDj.getJfmc());
+            etJfjb.setText(mdjfDj.getMdjb());
+            etJflx.setText(mdjfDj.getJflx());
+            et_jfly.setText(mdjfDj.getJfly());
+            tvSssq.setText(mdjfDj.getSqName());
+            if ("110接处警".equals(mdjfDj.getJfly())) {
+                layoutBjrdh.setVisibility(View.VISIBLE);
+                tvBjrdh.setText(mdjfDj.getBjrdh());
+            } else {
+                layoutBjrdh.setVisibility(View.GONE);
+            }
+            fssj.setText(mdjfDj.getJffssj());
+            fsdd.setText(mdjfDj.getJffsdd());
+            etJyaq.setText(mdjfDj.getJyaq());
+            etJfyy.setText(mdjfDj.getJyaq());
+            etBz.setText(mdjfDj.getBz());
+            if (TextUtils.isEmpty(mdjfDj.getMdjbVVlaue())) {
+                layoutMdjfdj.setVisibility(View.GONE);
+            } else {
+                layoutMdjfdj.setVisibility(View.VISIBLE);
+            }
+            tvJfdj.setText(mdjfDj.getMdjbVVlaue());
+            String hfnr = mdjfDj.getHfnr();
+            if (TextUtils.isEmpty(hfnr)) {
+                llHfnr.setVisibility(View.GONE);
+            } else {
+                llHfnr.setVisibility(View.VISIBLE);
+                tvHfnr.setText(hfnr);
+            }
+            String hfr = mdjfDj.getHfr();
+            if (TextUtils.isEmpty(hfr)) {
+                llHfr.setVisibility(View.GONE);
+            } else {
+                llHfr.setVisibility(View.VISIBLE);
+                tvHfr.setText(hfr);
+            }
+            String hfsj = mdjfDj.getHfsj();
+            if (TextUtils.isEmpty(hfsj)) {
+                llHfsj.setVisibility(View.GONE);
+            } else {
+                llHfsj.setVisibility(View.VISIBLE);
+                tvHfsj.setText(hfsj);
+            }
+            /*String sfsc = mdjfDj.getSfsc();
+            if (TextUtils.isEmpty(sfsc)) {
+                llSfgz.setVisibility(View.GONE);
+            } else {
+                llSfgz.setVisibility(View.VISIBLE);
+                if (sfsc.equals("0"))
+                    tvSfgz.setText("否");
+                else
+                    tvSfgz.setText("是");
+            }
+            String my = mdjfDj.getSfmy();
+            if (TextUtils.isEmpty(my)) {
+                llSfmy.setVisibility(View.GONE);
+            } else {
+                llSfmy.setVisibility(View.VISIBLE);
+                if (my.equals("0"))
+                    tvSfmy.setText("否");
+                else
+                    tvSfmy.setText("是");
+            }
+            String sfjjwt = mdjfDj.getSfjj();
+            if (TextUtils.isEmpty(sfjjwt)) {
+                llSfjj.setVisibility(View.GONE);
+            } else {
+                llSfjj.setVisibility(View.VISIBLE);
+                if (sfjjwt.equals("0"))
+                    tvSfjj.setText("否");
+                else
+                    tvSfjj.setText("是");
+            }*/
+            String wnjy = mdjfDj.getWtjy();
+            if (TextUtils.isEmpty(wnjy)) {
+                llWtjy.setVisibility(View.GONE);
+            } else {
+                llWtjy.setVisibility(View.VISIBLE);
+
+                hfwtjy.setText(wnjy);
+
+            }
+            String thjl = mdjfDj.getThjl();
+            if (TextUtils.isEmpty(thjl)) {
+                thjlRec.setVisibility(View.GONE);
+                rlThjl.setVisibility(View.GONE);
+            } else {
+                thjlRec.setVisibility(View.VISIBLE);
+                rlThjl.setVisibility(View.VISIBLE);
+
+                List<String> list = new ArrayList<>();
+
+                if (!TextUtils.isEmpty(thjl)) {
+                    String[] split = thjl.split(",");
+                    for (int i = 0; i < split.length; i++) {
+                        list.add(split[i]);
+                    }
+                }
+                ImageViewAdapter mAdapter = new ImageViewAdapter(list);
+                thjlRec.setLayoutManager(new GridLayoutManager(this, 3));
+                thjlRec.setHasFixedSize(true);
+                thjlRec.setAdapter(mAdapter);
+                mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
+                    @Override
+                    public void onItemClick(@NonNull View view, int viewType, @NonNull Object data, int position) {
+                        ImgDialog imgDialog = ImgDialog.newInstance(list.get(position));
+                        imgDialog.show(getSupportFragmentManager(), "cesh");
+                        imgDialog.setCancelable(true);
+                    }
+                });
+            }
+
+            String zp = mdjfDj.getZp();
+            List<String> list = new ArrayList<>();
+
+            if (!TextUtils.isEmpty(zp)) {
+                String[] split = zp.split(",");
+                for (int i = 0; i < split.length; i++) {
+                    list.add(split[i]);
+                }
+            }
+            ImageViewAdapter mAdapter = new ImageViewAdapter(list);
+            recyclerViewFj.setLayoutManager(new GridLayoutManager(this, 3));
+            recyclerViewFj.setHasFixedSize(true);
+            recyclerViewFj.setAdapter(mAdapter);
+            mAdapter.setOnItemClickListener(new DefaultAdapter.OnRecyclerViewItemClickListener() {
+                @Override
+                public void onItemClick(@NonNull View view, int viewType, @NonNull Object data, int position) {
+                    ImgDialog imgDialog = ImgDialog.newInstance(list.get(position));
+                    imgDialog.show(getSupportFragmentManager(), "cesh");
+                    imgDialog.setCancelable(true);
+                }
+            });
+            mdjfRyList = entity.getData().getMdjfRyList();
+            recylerView.setLayoutManager(new LinearLayoutManager(this));
+            /*PersonAdapterV2 adapter = new PersonAdapterV2(mdjfRyList, flag);
+            recylerView.setAdapter(adapter);
+            adapter.setOnItemClickListener((view, viewType, data, position) -> {
+
+                new SignatureDialogV2.Builder(MdDjXqActivity.this, new SignatureDialogV2.SignListenerV2() {
+                    @Override
+                    public void onSignImage(String path) {
+                        MdjfXqEntity.DataBean.MdjfRyListBean bean = mdjfRyList.get(position);
+                        String id = bean.getId();
+                        bean.setHfzp(path);
+                        hfzpMap.put(id, path);
+                        mdjfRyList.remove(position);
+                        mdjfRyList.add(position, bean);
+                        adapter.notifyDataSetChanged();
+                    }
+                }).show();
+            });*/
+
+            TjjfDetailPersonAdapter adapter = new TjjfDetailPersonAdapter(mdjfRyList);
+            adapter.setFlag(flag);
+            recylerView.setAdapter(adapter);
+            adapter.setListener(new BaseRecycleAdapter.OnRecyclerViewListenerV2() {
+                @Override
+                public void onItemClick(View view, int position) {
+                    new SignatureDialogV2.Builder(MdDjXqActivity.this, new SignatureDialogV2.SignListenerV2() {
+                        @Override
+                        public void onSignImage(String path) {
+                            MdjfXqEntity.DataBean.MdjfRyListBean bean = mdjfRyList.get(position);
+                            String id = bean.getId();
+                            bean.setHfzp(path);
+                            hfzpMap.put(id, path);
+                            mdjfRyList.remove(position);
+                            mdjfRyList.add(position, bean);
+                            adapter.notifyDataSetChanged();
+                        }
+                    }).show();
+                }
+
+                @Override
+                public boolean onItemLongClick(View view, int position) {
+                    return false;
+                }
+            });
+            /*adapter.setOnItemClickListener((view, viewType, data, position) -> {
+
+                new SignatureDialogV2.Builder(MdDjXqActivity.this, new SignatureDialogV2.SignListenerV2() {
+                    @Override
+                    public void onSignImage(String path) {
+                        MdjfXqEntity.DataBean.MdjfRyListBean bean = mdjfRyList.get(position);
+                        String id = bean.getId();
+                        bean.setHfzp(path);
+                        hfzpMap.put(id, path);
+                        mdjfRyList.remove(position);
+                        mdjfRyList.add(position, bean);
+                        adapter.notifyDataSetChanged();
+                    }
+                }).show();
+            });*/
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
+        super.onActivityResult(requestCode, resultCode, data);
+        if (resultCode == 5) {
+            if (data != null && requestCode == 0) {
+                String location = data.getStringExtra("location");
+                String dtjd = data.getStringExtra("dtjd");
+                String dtwd = data.getStringExtra("dtwd");
+                hfdd.setText(location);
+            }
+        }
+        if (requestCode == KRequestTj && resultCode == RESULT_OK) {
+            finish();
+        }
+    }
+
+    @Override
+    public void onHfSuccess(String result) {
+        System.out.println("回访结果" + result);
+        try {
+            JsonObject obj = new JsonParser().parse(result).getAsJsonObject();
+            if (obj.has("code")) {
+                int code = obj.get("code").getAsInt();
+                if (code == 200) {
+                    ToastUtils.show("回访上传成功");
+                    finish();
+                } else {
+                    ToastUtils.show("回访上传失败");
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            ToastUtils.show("回访上传失败");
+        }
+    }
+
+    @Override
+    public void onImageSuccess(String result) {
+        JsonObject jsonObject1 = new JsonParser().parse(result).getAsJsonObject();
+        JsonObject jsonObject = jsonObject1.get("data").getAsJsonObject();
+        if (jsonObject.has("link")) {
+            String url = jsonObject.get("link").getAsString();
+
+
+        }
+    }
+}

+ 204 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdTjLbActivity.java

@@ -0,0 +1,204 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.content.Intent;
+import android.os.Bundle;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.scwang.smart.refresh.footer.ClassicsFooter;
+import com.scwang.smart.refresh.header.ClassicsHeader;
+import com.scwang.smart.refresh.layout.SmartRefreshLayout;
+import com.scwang.smart.refresh.layout.api.RefreshLayout;
+import com.scwang.smart.refresh.layout.constant.SpinnerStyle;
+import com.scwang.smart.refresh.layout.listener.OnLoadMoreListener;
+import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
+import com.xwkj.rhzf.di.component.DaggerMdTjLbComponent;
+import com.xwkj.rhzf.mvp.contract.MdTjLbContract;
+import com.xwkj.rhzf.mvp.model.entity.TjLbEntity;
+import com.xwkj.rhzf.mvp.presenter.MdTjLbPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.adapter.BaseRecycleAdapter;
+import com.xwkj.rhzf.mvp.ui.adapter.TJlbAdapter;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.view.CommonTitleBar;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import butterknife.BindView;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 11:06
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class MdTjLbActivity extends ZkjcBaseActivity<MdTjLbPresenter> implements MdTjLbContract.View, OnRefreshListener, OnLoadMoreListener {
+
+    @BindView(R.id.title_bar)
+    CommonTitleBar titleBar;
+    @BindView(R.id.recyclerView)
+    RecyclerView recyclerView;
+    @BindView(R.id.smart_refresh)
+    SmartRefreshLayout smart_refresh;
+    private TJlbAdapter mAdapter;
+    private String id;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerMdTjLbComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+    private List<TjLbEntity.DataBean.RecordsBean> datas;
+    private int pageNo = 1;
+    private int pageSize = 10;
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_md_tj_lb; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+    @Override
+    protected void onResume() {
+        super.onResume();
+        smart_refresh.autoRefresh();
+
+
+    }
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("调解记录");
+        id = getIntent().getStringExtra("id");
+        //设置 Header
+        smart_refresh.setRefreshHeader(new ClassicsHeader(this).setEnableLastTime(true));
+        //设置 Footer
+        smart_refresh.setRefreshFooter(new ClassicsFooter(this).setSpinnerStyle(SpinnerStyle.FixedBehind));
+        datas = new ArrayList<>();
+        recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
+        smart_refresh.setOnRefreshListener(this);
+        smart_refresh.setOnLoadMoreListener(this);
+        mAdapter = new TJlbAdapter(datas);
+        recyclerView.setAdapter(mAdapter);
+        mAdapter.notifyDataSetChanged();
+        // requestData(pageNo, pageSize, "", "");
+
+        mAdapter.setOnRecyclerViewListener(new BaseRecycleAdapter.OnRecyclerViewListener() {
+            @Override
+            public void onItemClick(int position) {
+                TjLbEntity.DataBean.RecordsBean recordsBean = datas.get(position);
+                Intent intent = new Intent(MdTjLbActivity.this, TjJlXqActivity.class);
+                intent.putExtra("recordsBean", recordsBean);
+                startActivity(intent);
+            }
+
+            @Override
+            public boolean onItemLongClick(int position) {
+                return false;
+            }
+        });
+
+    }
+
+    private void requestData(int pageNo, int pageSize) {
+
+        Map<String, String> map = new HashMap<>();
+        map.put("current", pageNo + "");
+        map.put("size", pageSize + "");
+        map.put("jfId", id);
+        mPresenter.getTjJl(map);
+
+    }
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+    @Override
+    public void onLoadMore(@NonNull RefreshLayout refreshLayout) {
+
+        requestData(++pageNo, pageSize);
+
+    }
+
+    @Override
+    public void onRefresh(@NonNull RefreshLayout refreshLayout) {
+
+        datas.clear();
+        mAdapter.notifyDataSetChanged();
+        requestData(pageNo = 1, pageSize);
+    }
+
+    @Override
+    public void onSuccess(String result) {
+        smart_refresh.finishLoadMore();
+        smart_refresh.finishRefresh();
+
+        System.out.println("lb==" + result);
+        try {
+            JsonObject obj = new JsonParser().parse(result).getAsJsonObject();
+            if (obj.has("code")) {
+                int code = obj.get("code").getAsInt();
+                if (code == 200) {
+                    TjLbEntity kqBean = new Gson().fromJson(result, TjLbEntity.class);
+                    List<TjLbEntity.DataBean.RecordsBean> records = kqBean.getData().getRecords();
+                    if (records.size() > 0 && records != null) {
+                        datas.addAll(records);
+                        mAdapter.notifyDataSetChanged();
+
+                    } else {
+                        ToastUtils.show("没有更多数据了");
+                    }
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

+ 202 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdhfjlActivity.java

@@ -0,0 +1,202 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.content.Intent;
+import android.os.Bundle;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.scwang.smart.refresh.footer.ClassicsFooter;
+import com.scwang.smart.refresh.header.ClassicsHeader;
+import com.scwang.smart.refresh.layout.SmartRefreshLayout;
+import com.scwang.smart.refresh.layout.api.RefreshLayout;
+import com.scwang.smart.refresh.layout.constant.SpinnerStyle;
+import com.scwang.smart.refresh.layout.listener.OnLoadMoreListener;
+import com.scwang.smart.refresh.layout.listener.OnRefreshListener;
+import com.xwkj.rhzf.di.component.DaggerMdhfjlComponent;
+import com.xwkj.rhzf.mvp.contract.MdhfjlContract;
+import com.xwkj.rhzf.mvp.model.entity.MdhfjlEntity;
+import com.xwkj.rhzf.mvp.presenter.MdhfjlPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.adapter.MdhfjlAdapter;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.view.CommonTitleBar;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import butterknife.BindView;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 13:45
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class MdhfjlActivity extends ZkjcBaseActivity<MdhfjlPresenter> implements MdhfjlContract.View, OnRefreshListener, OnLoadMoreListener {
+
+    @BindView(R.id.title_bar)
+    CommonTitleBar titleBar;
+    @BindView(R.id.recyclerView)
+    RecyclerView recyclerView;
+    @BindView(R.id.smart_refresh)
+    SmartRefreshLayout smart_refresh;
+    private MdhfjlAdapter mAdapter;
+    private String id;
+    private List<MdhfjlEntity.DataBean> datas;
+    private int pageNo = 1;
+    private int pageSize = 10;
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerMdhfjlComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_mdhfjl; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+    @Override
+    protected void onResume() {
+        super.onResume();
+        smart_refresh.autoRefresh();
+    }
+
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("回访记录");
+        id = getIntent().getStringExtra("id");
+        //设置 Header
+        smart_refresh.setRefreshHeader(new ClassicsHeader(this).setEnableLastTime(true));
+        //设置 Footer
+        smart_refresh.setRefreshFooter(new ClassicsFooter(this).setSpinnerStyle(SpinnerStyle.FixedBehind));
+        datas = new ArrayList<>();
+        recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
+        smart_refresh.setOnRefreshListener(this);
+        smart_refresh.setOnLoadMoreListener(this);
+        mAdapter = new MdhfjlAdapter(datas);
+        recyclerView.setAdapter(mAdapter);
+        mAdapter.notifyDataSetChanged();
+        // requestData(pageNo, pageSize, "", "");
+
+     /*   mAdapter.setOnRecyclerViewListener(new BaseRecycleAdapter.OnRecyclerViewListener() {
+            @Override
+            public void onItemClick(int position) {
+                MdhfjlEntity.DataBean recordsBean = datas.get(position);
+                Intent intent = new Intent(MdhfjlActivity.this, TjJlXqActivity.class);
+                intent.putExtra("recordsBean", recordsBean);
+                startActivity(intent);
+            }
+
+            @Override
+            public boolean onItemLongClick(int position) {
+                return false;
+            }
+        });*/
+
+    }
+
+    private void requestData(int pageNo, int pageSize) {
+
+        Map<String, String> map = new HashMap<>();
+        map.put("current", pageNo + "");
+        map.put("size", pageSize + "");
+        map.put("jfId", id);
+        mPresenter.getHfJl(map);
+
+    }
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+    @Override
+    public void onLoadMore(@NonNull RefreshLayout refreshLayout) {
+
+        requestData(++pageNo, pageSize);
+
+    }
+
+    @Override
+    public void onRefresh(@NonNull RefreshLayout refreshLayout) {
+
+        datas.clear();
+        mAdapter.notifyDataSetChanged();
+        requestData(pageNo = 1, pageSize);
+    }
+
+    @Override
+    public void onSuccess(String result) {
+        smart_refresh.finishLoadMore();
+        smart_refresh.finishRefresh();
+
+        System.out.println("lb==" + result);
+        try {
+            JsonObject obj = new JsonParser().parse(result).getAsJsonObject();
+            if (obj.has("code")) {
+                int code = obj.get("code").getAsInt();
+                if (code == 200) {
+                    MdhfjlEntity kqBean = new Gson().fromJson(result, MdhfjlEntity.class);
+                    List<MdhfjlEntity.DataBean> records = kqBean.getData();
+                    if (records.size() > 0 && records != null) {
+                        datas.addAll(records);
+                        mAdapter.notifyDataSetChanged();
+
+                    } else {
+                        ToastUtils.show("没有更多数据了");
+                    }
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

+ 433 - 0
rhzf/src/main/java/com/xwkj/rhzf/mvp/ui/activity/MdjfActivity.java

@@ -0,0 +1,433 @@
+package com.xwkj.rhzf.mvp.ui.activity;
+
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.Bundle;
+import android.os.Message;
+import android.text.TextUtils;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.ImageView;
+import android.widget.LinearLayout;
+import android.widget.RelativeLayout;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.fragment.app.Fragment;
+import androidx.viewpager2.adapter.FragmentStateAdapter;
+import androidx.viewpager2.widget.ViewPager2;
+
+import com.google.android.material.floatingactionbutton.FloatingActionButton;
+import com.google.android.material.tabs.TabLayout;
+import com.google.android.material.tabs.TabLayoutMediator;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParser;
+import com.google.zxing.client.android.MNScanManager;
+import com.google.zxing.client.android.model.MNScanConfig;
+import com.google.zxing.client.android.other.MNCustomViewBindCallback;
+import com.google.zxing.client.android.other.MNScanCallback;
+import com.hjq.toast.ToastUtils;
+import com.jess.arms.base.BaseActivity;
+import com.jess.arms.di.component.AppComponent;
+import com.jess.arms.utils.ArmsUtils;
+
+import com.xwkj.rhzf.di.component.DaggerMdjfComponent;
+import com.xwkj.rhzf.mvp.contract.MdjfContract;
+import com.xwkj.rhzf.mvp.presenter.MdjfPresenter;
+
+import com.xwkj.rhzf.R;
+import com.xwkj.rhzf.mvp.ui.fragment.HfFragment;
+import com.xwkj.rhzf.mvp.ui.fragment.MdgzFragment;
+import com.xwkj.rhzf.mvp.ui.fragment.WtjFragment;
+import com.xwkj.rhzf.mvp.ui.fragment.YflFragment;
+import com.xwkj.rhzf.mvp.ui.fragment.YtjFragment;
+import com.zkjc.common.base.ZkjcBaseActivity;
+import com.zkjc.common.view.CommonTitleBarV3;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import butterknife.BindView;
+
+import static com.jess.arms.utils.Preconditions.checkNotNull;
+
+
+/**
+ * ================================================
+ * Description:
+ * <p>
+ * Created by MVPArmsTemplate on 10/23/2024 10:08
+ * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
+ * <a href="https://github.com/JessYanCoding">Follow me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
+ * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
+ * ================================================
+ */
+public class MdjfActivity extends ZkjcBaseActivity<MdjfPresenter> implements MdjfContract.View {
+
+    @BindView(R.id.title_bar)
+    CommonTitleBarV3 titleBar;
+    @BindView(R.id.tab_mdjf)
+    TabLayout tabMdjf;
+    @BindView(R.id.fl_kd)
+    ViewPager2 flKd;
+    @BindView(R.id.float_button)
+    FloatingActionButton floatButton;
+    @BindView(R.id.iv_one)
+    ImageView ivOne;
+    @BindView(R.id.rl_dj)
+    RelativeLayout rlDj;
+    @BindView(R.id.iv_two)
+    ImageView ivTwo;
+    @BindView(R.id.rl_tj)
+    RelativeLayout rlTj;
+    @BindView(R.id.jq_query_left)
+    TextView jqQueryLeft;
+    @BindView(R.id.et_jfmc)
+    EditText etJfmc;
+    @BindView(R.id.query_reset)
+    Button queryReset;
+    @BindView(R.id.query_ok)
+    Button queryOk;
+    @BindView(R.id.jq_query)
+    View jq_query;
+    private WtjFragment wtjFragment;
+    private HfFragment hfFragment;
+    private YtjFragment ytjFragment;
+    private MdgzFragment mdgzFragment;
+    private YflFragment yflFragment;
+
+    private List<Fragment> fragments;
+    private String mIds;
+
+    @Override
+    public void setupActivityComponent(@NonNull AppComponent appComponent) {
+        DaggerMdjfComponent //如找不到该类,请编译一下项目
+                .builder()
+                .appComponent(appComponent)
+                .view(this)
+                .build()
+                .inject(this);
+    }
+
+    @Override
+    public int initView(@Nullable Bundle savedInstanceState) {
+        return R.layout.activity_mdjf; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
+    }
+
+    public static String MSG="管理员无法使用该功能,如果非管理员用户请联系管理员维护所属社区!";
+    @Override
+    public void initData(@Nullable Bundle savedInstanceState) {
+        titleBar.setTitle("矛盾纠纷管理");
+        mIds = getIntent().getStringExtra("mdId");
+//        titleBar.setRight("筛选");
+        titleBar.setRightLayout(R.layout.title_right);
+        titleBar.setRightOnClick(view -> {
+            floatButton.setVisibility(View.GONE);
+            jq_query.setVisibility(View.VISIBLE);
+        });
+
+        String[] titles = {"调处中", "需回访", "已调处", "已分流", "已关注"};
+        floatButton.setOnClickListener(view -> {
+            SharedPreferences sys = getSharedPreferences("sys", MODE_PRIVATE);
+            String role_name = sys.getString("role_name", "");
+            if (!role_name.contains("社区民警")) {
+                ToastUtils.show("社区民警才可录入矛盾");
+                return;
+            }
+            String deptCategory = sys.getString("deptCategory", "");
+            if (!"7".equals(deptCategory)) {
+                ToastUtils.show(MSG);
+                return;
+            }
+            if (!TextUtils.isEmpty(mIds)) {
+                Intent intent = new Intent(MdjfActivity.this, AddJfActivity.class);
+                intent.putExtra("is_from_rhzf", true);
+                startActivityForResult(intent, 1);
+            } else {
+                ArmsUtils.startActivity(AddJfActivity.class);
+            }
+
+        });
+
+        rlDj.setOnClickListener(view -> {
+            ArmsUtils.startActivity(AddJfActivity.class);
+        });
+        rlTj.setOnClickListener(view -> {
+            //  ArmsUtils.startActivity(TjJfActivity.class);
+            initScan();
+        });
+        wtjFragment = WtjFragment.newInstance(mIds);
+        hfFragment = HfFragment.newInstance(mIds);
+        ytjFragment = YtjFragment.newInstance(mIds);
+        mdgzFragment = MdgzFragment.newInstance(mIds);
+        yflFragment = YflFragment.newInstance(mIds);
+        fragments = new ArrayList<>();
+        fragments.add(wtjFragment);
+        fragments.add(hfFragment);
+        fragments.add(ytjFragment);
+        fragments.add(yflFragment);
+        fragments.add(mdgzFragment);
+        FragmentStateAdapter mAdapter = new FragmentStateAdapter(this) {
+            @Override
+            public int getItemCount() {
+                return fragments.size();
+            }
+
+            @NonNull
+            @Override
+            public Fragment createFragment(int position) {
+                return fragments.get(position);
+            }
+
+        };
+        flKd.setAdapter(mAdapter);
+        new TabLayoutMediator(tabMdjf, flKd, new TabLayoutMediator.TabConfigurationStrategy() {
+            @Override
+            public void onConfigureTab(@NonNull TabLayout.Tab tab, int position) {
+                tab.setText(titles[position]);
+                // Fragment fragment = fragments.get(position);
+
+
+            }
+        }).attach();
+
+        flKd.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
+            @Override
+            public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
+                super.onPageScrolled(position, positionOffset, positionOffsetPixels);
+            }
+
+            @Override
+            public void onPageSelected(int position) {
+                super.onPageSelected(position);
+                /*Message data = new Message();
+                data.what = 0;
+                data.obj = titles[position];
+                if (position == 0) {
+                    wtjFragment.setData(data);
+                } else if (position == 1) {
+                    ytjFragment.setData(data);
+                }*/
+
+            }
+
+            @Override
+            public void onPageScrollStateChanged(int state) {
+                super.onPageScrollStateChanged(state);
+            }
+        });
+        initQueryParams();
+    }
+
+    private void initQueryParams() {
+        jqQueryLeft.setOnClickListener(new View.OnClickListener() {
+            @Override
+            public void onClick(View v) {
+                jq_query.setVisibility(View.GONE);
+                floatButton.setVisibility(View.VISIBLE);
+            }
+        });
+        queryOk.setOnClickListener(view -> {
+            jq_query.setVisibility(View.GONE);
+            floatButton.setVisibility(View.VISIBLE);
+            String jfmc = etJfmc.getText().toString();
+            if (TextUtils.isEmpty(jfmc)) {
+                ToastUtils.show("请输纠纷名称");
+                return;
+            }
+            Message data = new Message();
+            data.what = 0;
+            data.obj = jfmc;
+            wtjFragment.setData(data);
+            hfFragment.setData(data);
+            ytjFragment.setData(data);
+            yflFragment.setData(data);
+            mdgzFragment.setData(data);
+
+        });
+        queryReset.setOnClickListener(view -> {
+            etJfmc.setText("");
+        });
+    }
+
+    private void initScan() {
+        // (2)自定义扫描布局和参数
+        //自定义扫描
+        MNScanConfig scanConfig = new MNScanConfig.Builder()
+                //设置完成震动
+                .isShowVibrate(false)
+                //扫描完成声音
+                .isShowBeep(true)
+                //显示相册功能
+                .isShowPhotoAlbum(true)
+                //显示闪光灯
+                .isShowLightController(true)
+                //打开扫描页面的动画
+                .setActivityOpenAnime(R.anim.activity_anmie_in)
+                //退出扫描页面动画
+                .setActivityExitAnime(R.anim.activity_anmie_out)
+                //自定义文案
+                .setScanHintText("请将二维码放入框中")
+                //自定义文案颜色
+                .setScanHintTextColor("#FFFF00")
+                //自定义文案大小(单位sp)
+                .setScanHintTextSize(16)
+                //扫描线的颜色
+                .setScanColor("#FFFF00")
+                //是否显示缩放控制器
+                .isShowZoomController(true)
+                //显示缩放控制器位置
+                .setZoomControllerLocation(MNScanConfig.ZoomControllerLocation.Bottom)
+                //扫描线样式
+                .setLaserStyle(MNScanConfig.LaserStyle.Line)
+                //背景颜色
+                .setBgColor("#33FF0000")
+                //网格扫描线的列数
+                .setGridScanLineColumn(30)
+                //网格高度
+                .setGridScanLineHeight(150)
+                //高度偏移值(单位px)+向上偏移,-向下偏移
+                .setScanFrameHeightOffsets(150)
+                //是否全屏范围扫描
+                .setFullScreenScan(true)
+
+                .setResultPointConfigs(36, 12, 2, "#FFFFFFFF", "#CC00A81F")
+                //状态栏设置:颜色,是否黑色字体
+                .setStatusBarConfigs("#00000000", true)
+                //是否支持多二维码同时扫出,true不支持条形码
+                .setSupportMultiQRCode(true)
+                //自定义遮罩
+                .setCustomShadeViewLayoutID(R.layout.layout_custom_view, new MNCustomViewBindCallback() {
+                    @Override
+                    public void onBindView(View customView) {
+                        ImageView iv_back = customView.findViewById(R.id.iv_back);
+                        ImageView iv_photo = customView.findViewById(R.id.iv_photo);
+                        LinearLayout btn_scan_light = customView.findViewById(R.id.btn_scan_light);
+                        final ImageView iv_scan_light = customView.findViewById(R.id.iv_scan_light);
+                        final TextView tv_scan_light = customView.findViewById(R.id.tv_scan_light);
+                        LinearLayout btn_my_card = customView.findViewById(R.id.btn_my_card);
+                        LinearLayout btn_scan_record = customView.findViewById(R.id.btn_scan_record);
+                        iv_back.setOnClickListener(new View.OnClickListener() {
+                            @Override
+                            public void onClick(View v) {
+                                //关闭扫描页面
+                                MNScanManager.closeScanPage();
+                            }
+                        });
+                        btn_scan_light.setOnClickListener(new View.OnClickListener() {
+                            @Override
+                            public void onClick(View v) {
+                                //手电筒
+                                if (MNScanManager.isLightOn()) {
+                                    MNScanManager.closeScanLight();
+                                    iv_scan_light.setImageResource(R.drawable.icon_custom_light_close);
+                                    tv_scan_light.setText("开启手电筒");
+                                } else {
+                                    MNScanManager.openScanLight();
+                                    iv_scan_light.setImageResource(R.drawable.icon_custom_light_open);
+                                    tv_scan_light.setText("关闭手电筒");
+                                }
+                            }
+                        });
+                        iv_photo.setOnClickListener(new View.OnClickListener() {
+                            @Override
+                            public void onClick(View v) {
+                                //打开相册扫描
+                                MNScanManager.openAlbumPage();
+                            }
+                        });
+                    }
+                })
+                .builder();
+        // 开启扫描
+        MNScanManager.startScan(this, scanConfig, new MNScanCallback() {
+            public void onActivityResult(int resultCode, Intent data) {
+                switch (resultCode) {
+                    case MNScanManager.RESULT_SUCCESS:
+                        String resultSuccess = data.getStringExtra(MNScanManager.INTENT_KEY_RESULT_SUCCESS);
+
+                        JsonObject obj = new JsonParser().parse(resultSuccess).getAsJsonObject();
+                        if (obj.has("jfid")) {
+                            String jfid = obj.get("jfid").getAsString();
+                            Intent intent = new Intent(getApplicationContext(), TjJfActivity.class);
+                            intent.putExtra("jfid", jfid);
+                            startActivity(intent);
+                        } else {
+                            ToastUtils.show("二维码不正确");
+                        }
+                        System.out.println("resultSuccess = " + resultSuccess);
+                        break;
+                    case MNScanManager.RESULT_FAIL:
+                        // 错误提示:比如:初始化相机失败等
+                        String resultError = data.getStringExtra(MNScanManager.INTENT_KEY_RESULT_ERROR);
+                        break;
+                    case MNScanManager.RESULT_CANCLE:
+                        System.out.println("取消扫码");
+                        break;
+                }
+            }
+        });
+    }
+
+    @Override
+    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
+        super.onActivityResult(requestCode, resultCode, data);
+        if (resultCode == RESULT_OK && requestCode == 1) {
+
+            String id = data.getStringExtra("id");
+            if (!TextUtils.isEmpty(mIds)) {
+                mIds = mIds + "," + id;
+                Message message = new Message();
+                message.what = 1;
+                message.obj = mIds;
+                wtjFragment.setData(message);
+                hfFragment.setData(message);
+                ytjFragment.setData(message);
+                yflFragment.setData(message);
+                mdgzFragment.setData(message);
+            }
+        }
+    }
+
+    @Override
+    public void finish() {
+        if (!TextUtils.isEmpty(mIds)) {
+            Intent intent = new Intent();
+            intent.putExtra("jfid", mIds);
+            setResult(RESULT_OK, intent);
+        }
+        super.finish();
+    }
+
+    @Override
+    public void showLoading() {
+
+    }
+
+    @Override
+    public void hideLoading() {
+
+    }
+
+    @Override
+    public void showMessage(@NonNull String message) {
+        checkNotNull(message);
+        ArmsUtils.snackbarText(message);
+    }
+
+    @Override
+    public void launchActivity(@NonNull Intent intent) {
+        checkNotNull(intent);
+        ArmsUtils.startActivity(intent);
+    }
+
+    @Override
+    public void killMyself() {
+        finish();
+    }
+}

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików