From 0c001d14de8a29465e2dff166d6cb92fc681e75f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 14 七月 2025 18:12:02 +0800
Subject: [PATCH] 前端

---
 server/services/src/main/java/com/doumee/core/constants/Constants.java |   62 ++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 5 deletions(-)

diff --git a/server/services/src/main/java/com/doumee/core/constants/Constants.java b/server/services/src/main/java/com/doumee/core/constants/Constants.java
index 7fa6160..f579819 100644
--- a/server/services/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -3,6 +3,7 @@
 import lombok.AllArgsConstructor;
 import lombok.Getter;
 
+import java.math.BigDecimal;
 import java.util.*;
 
 /**
@@ -12,11 +13,11 @@
  */
 public class Constants {
 
-    public static final String AZURE_BLOB ="AZURE_BLOB" ;
-    public static final String AZURE_BLOB_ACCESSNAME ="AZURE_BLOB_ACCESSNAME" ;
-    public static final String AZURE_BLOB_ACCESSKEY ="AZURE_BLOB_ACCESSKEY" ;
-    public static final String AZURE_BLOB_ENDPOINT ="AZURE_BLOB_ENDPOINT" ;
-    public static final String AZURE_BLOB_CONTAINER ="AZURE_BLOB_CONTAINER" ;
+    public static final String HWY_OBS ="HWY_OBS" ;
+    public static final String HWY_OBS_ACCESSID ="HWY_OBS_ACCESSID" ;
+    public static final String HWY_OBS_ACCESSKEY ="HWY_OBS_ACCESSKEY" ;
+    public static final String HWY_OBS_ENDPOINT ="HWY_OBS_ENDPOINT" ;
+    public static final String HWY_OBS_BUCKET ="HWY_OBS_BUCKET" ;
     public static final String FTP ="FTP" ;
     public static final String FTP_HOST ="FTP_HOST" ;
     public static final String FTP_PORT ="FTP_PORT" ;
@@ -114,6 +115,12 @@
             d = 0;
         }
         return d.intValue();
+    }
+    public static double getFormatMoney(Long d) {
+        BigDecimal r = new BigDecimal(formatLongNum(d));
+        r = r.divide(new BigDecimal(100),2,BigDecimal.ROUND_HALF_UP);
+
+        return r.doubleValue();
     }
 
     public static long formatLongNum(Long d) {
@@ -336,4 +343,49 @@
             this.noticeContent = noticeContent;
         }
     }
+
+    /**
+     * 鐢ㄦ埛鏀舵敮涓氬姟绫诲瀷
+     * 鍙樺姩绫诲瀷:0=鐢ㄥ伐鍗曟敹鍏ワ紱1=璐ц繍鍗曟敹鍏ワ紱2=渚涢鍗曟敹鍏ワ紱3=鎻愮幇鐢宠锛�
+     */
+    @Getter
+    public enum RevenueType {
+
+        YGD_INCOME(  0, "鐢ㄥ伐鍗曟敹鍏�","鐢ㄥ伐鍗曟敹鍏�" ,0),
+        HYD_INCOME(  1, "璐ц繍鍗曟敹鍏�","璐ц繍鍗曟敹鍏�" ,0),
+        GCD_INCOME(2, "渚涢鍗曟敹鍏�","渚涢鍗曟敹鍏�" ,0),
+        WITHDRAW_APPLY(3, "鎻愮幇鐢宠","鎻愮幇鐢宠" ,0),
+        REFUND(  4, "鎻愮幇鐢宠閫�鍥�","鎻愮幇鐢宠閫�鍥�" ,0)
+        ;
+
+        private int key;
+        private String name;
+        private  String info;
+        private int navIndex;
+
+        RevenueType(int key, String name, String info,int navIndex) {
+            this.info = info;
+            this.key = key;
+            this.name = name;
+            this.navIndex = navIndex;
+        }
+        public static RevenueType getObj(int index) {
+            for (RevenueType c : RevenueType.values()) {
+                if (c.getKey() == index) {
+                    return c;
+                }
+            }
+            return null;
+        }
+        public static String getObjName(int index) {
+            for (RevenueType c : RevenueType.values()) {
+                if (c.getKey() == index) {
+                    return c.getName();
+                }
+            }
+            return null;
+        }
+
+
+    }
 }

--
Gitblit v1.9.3