From a28247ecb3751689b9aa64c2e3d32c646cd88e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 22 一月 2024 18:19:34 +0800
Subject: [PATCH] 111

---
 server/service/src/main/java/com/doumee/core/utils/Constants.java |  123 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 121 insertions(+), 2 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/core/utils/Constants.java b/server/service/src/main/java/com/doumee/core/utils/Constants.java
index 8cf62e0..07c89d8 100644
--- a/server/service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/service/src/main/java/com/doumee/core/utils/Constants.java
@@ -759,7 +759,7 @@
 
     public static BigDecimal countDetailFee(Solutions solutions,Date startDate, Date endDate){
         //鏌ヨ淇濋櫓瀹為檯鍛ㄦ湡
-        Integer cycle = DateUtil.calculateBetween(endDate,startDate,solutions.getDataType());
+        Integer cycle = DateUtil.calculateBetween(endDate,startDate,solutions.getTimeUnit());
         if(cycle==-1){
             throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"鏃ユ湡淇℃伅閿欒!");
         }
@@ -789,7 +789,7 @@
 
         // 鏅�氭柟娉�
         public static String getName(int index) {
-            for (ApplyLogType c : ApplyLogType.values()) {
+            for (InsuranceApplyStatus c : InsuranceApplyStatus.values()) {
                 if (c.getKey() == index) {
                     return c.name;
                 }
@@ -816,6 +816,125 @@
 
     }
 
+
+
+    public  enum SettleClaimsStatus {
+        WAIT_ACCEPTANCE(0, "寰呭彈鐞�"),
+        RETURN_ACCEPTANCE(1, "閫�鍥炲彈鐞�"),
+        CONFIRM_INFORMATION(2, "纭璧勬枡"),
+        FINISH_ACCEPTANCE(3, "瀹屾垚鍙楃悊"),
+        ;
+        // 鎴愬憳鍙橀噺
+        private String name;
+        private int key;
+
+        // 鏋勯�犳柟娉�
+        SettleClaimsStatus(int key, String name) {
+            this.name = name;
+            this.key = key;
+        }
+        // 鏅�氭柟娉�
+        public static String getName(int index) {
+            for (SettleClaimsStatus c : SettleClaimsStatus.values()) {
+                if (c.getKey() == index) {
+                    return c.name;
+                }
+            }
+            return null;
+        }
+        // get set 鏂规硶
+        public String getName() {
+            return name;
+        }
+
+        public void setName(String name) {
+            this.name = name;
+        }
+
+        public int getKey() {
+            return key;
+        }
+
+        public void setKey(int key) {
+            this.key = key;
+        }
+    }
+
+
+
+    public  enum SettleClaimsLogType {
+        UPLOAD(0, "鎻愪氦鎶ユ","鎻愪氦鎰忚锛�${param}"),
+        PLATFORM_RETURN(1, "骞冲彴閫�鍥�","鎻愪氦鎰忚锛�${param}"),
+        CONFIRM_INFORMATION(2, "骞冲彴纭璧勬枡","鎻愪氦鎰忚锛�${param}"),
+        PLATFORM_FINISH(3, "骞冲彴瀹屾垚鍙楃悊","鎻愪氦鎰忚锛�${param}"),
+        UPDATE_DATA(4, "淇敼淇℃伅","鎻愪氦鎰忚锛�${param}"),
+        SUPPLEMENT(5, "琛ュ厖璇存槑","鎻愪氦鎰忚锛�${param}"),
+        COMPANY_APPLY_RETURN(6, "骞冲彴鐞嗚禂澶勭悊","鎻愪氦鎰忚锛�${param}"),
+        COMPANY_APPLY_CLOSE(7, "骞冲彴澶囨敞鏍囩",""),
+        PLATFORM_AGREE_BACK(8, "骞冲彴娣诲姞鎶ユ鍙�",""),
+        PLATFORM_UN_AGREE_BACK(9, "浼佷笟涓嬭浇璧勬枡",""),
+        COMPANY_EDIT(10, "骞冲彴涓嬭浇璧勬枡",""),
+        PLATFORM_CHECK_PASS(11, "骞冲彴涓婁紶璧勬枡",""),
+        ;
+        // 鎴愬憳鍙橀噺
+        private String name;
+        private String info;
+        private int key;
+
+        // 鏋勯�犳柟娉�
+        SettleClaimsLogType(int key, String name,String info) {
+            this.name = name;
+            this.info = info;
+            this.key = key;
+        }
+
+        // 鏅�氭柟娉�
+        public static String getName(int index) {
+            for (ApplyLogType c : ApplyLogType.values()) {
+                if (c.getKey() == index) {
+                    return c.name;
+                }
+            }
+            return null;
+        }
+        public static String getInfo(int index) {
+            for (ApplyLogType c : ApplyLogType.values()) {
+                if (c.getKey() == index) {
+                    return c.info;
+                }
+            }
+            return null;
+        }
+
+        // get set 鏂规硶
+        public String getName() {
+            return name;
+        }
+
+        public void setName(String name) {
+            this.name = name;
+        }
+
+        public int getKey() {
+            return key;
+        }
+
+        public void setKey(int key) {
+            this.key = key;
+        }
+
+        public String getInfo() {
+            return info;
+        }
+
+        public void setInfo(String info) {
+            this.info = info;
+        }
+    }
+
+
+
+
 //3=閫�鍥炵敵璇凤紱4=骞冲彴瀹℃壒閫氳繃锛�0=瀹℃壒椹冲洖;5=骞冲彴瀹℃壒椹冲洖
     public  enum ApplyChangeLogStatus {
         UPLOAD(0, "鍙戣捣鐢宠"),

--
Gitblit v1.9.3