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 |  136 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 134 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 871280a..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
@@ -70,6 +70,8 @@
     public static final String COMPANY_FILE ="COMPANY_FILE" ;
     public static final String SMS_COMNAME = "SMS_COMNAME";
     public static final String TAXES_FILE = "TAXES_FILE";
+    public static final String APPLY_FILE ="APPLY_FILE" ;
+    public static final String SETTLE_FILE ="SETTLE_FILE" ;
 
     /**
      * 浼佷笟鏁版嵁鏉ユ簮 0骞冲彴娉ㄥ唽 1鍚庡彴瀵煎叆
@@ -97,6 +99,15 @@
 //        d = d.setScale(2, BigDecimal.ROUND_HALF_UP);
         return  d;
     }
+    public static BigDecimal formatBigdecimal2Float(BigDecimal d) {
+        if (d == null) {
+            d = new BigDecimal(0.0);
+        }
+        //淇濈暀涓や綅灏忔暟涓斿洓鑸嶄簲鍏�
+        d = d.setScale(2, BigDecimal.ROUND_HALF_UP);
+        return  d;
+    }
+
     public static BigDecimal formatBigdecimal4Float(BigDecimal d) {
         if (d == null) {
             d = new BigDecimal(0.0);
@@ -748,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(),"鏃ユ湡淇℃伅閿欒!");
         }
@@ -763,6 +774,8 @@
         RETURN_APPLY(3, "鍙戣捣閫�鍥炵敵璇�"),
         PLATFORM_AGREE(4, "骞冲彴鍚屾剰锛堝凡閫�鍥烇級"),
         CLOSE(5, "宸插叧闂�"),
+        PALTFORM_CHECK_PASS(6, "瀹℃牳涓嶉�氳繃"),
+        PALTFORM_CHECK_PASS_NO(7, "瀹℃牳閫氳繃"),
         ;
         // 鎴愬憳鍙橀噺
         private String name;
@@ -776,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;
                 }
@@ -803,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