From a1a6e227628810259fcba0fff146792e97a80b8a Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 15 十二月 2025 08:56:09 +0800
Subject: [PATCH] 订单业务开发
---
server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java | 72 ++++++++++++++++++++++++++++++++++++
1 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java b/server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java
index a82cd73..dc88877 100644
--- a/server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/dmmall_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -43,6 +43,14 @@
public static final String INITIAL_PASSWORD = "INITIAL_PASSWORD";
public static final String ACCESS_TOKEN = "ACCESS_TOKEN";
+ public static final String MINIMUM_AVAILABLE_INTEGRAL = "MINIMUM_AVAILABLE_INTEGRAL";//鏈�浣庡彲鐢ㄧН鍒嗛厤缃�
+ public static final String SHOP_CONFIG = "SHOP_CONFIG";
+ public static final String INTEGRAL_EXCHANGE_CASH_RATA = "INTEGRAL_EXCHANGE_CASH_RATA"; //绉垎-鐜伴噾鍏戞崲姣斾緥锛圶XX绉垎鎶垫墸1鍏冿級
+
+
+ public static final String CASH_EXCHANGE_INTEGRAL_RATA = "CASH_EXCHANGE_INTEGRAL_RATA";//鐜伴噾-绉垎鍏戞崲姣斾緥锛�1鍏冨彲寰楀埌XXX绉垎锛�
+
+
public static final String INITIAL_ROLE = "INITIAL_ROLE";
public static final String PLAT_ADDR="PLAT_ADDR";
@@ -1042,4 +1050,68 @@
}
}
+
+
+ public static String getRandomNumber(){
+ Random random = new Random();
+ long randomNumber = (long)(random.nextDouble() * 90000000000L) + 100000000000L;
+ return randomNumber +"";
+ }
+
+
+ public enum INTEGRAL_TYPE{
+ ORDER_PAY(0, "璁㈠崟娑堣��", -1),
+ ORDER_CANCEL(1, "璁㈠崟鍙栨秷杩旇繕", 1),
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private int type;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ INTEGRAL_TYPE(int key, String name, int type) {
+ this.name = name;
+ this.key = key;
+ this.type = type;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (INTEGRAL_TYPE c : INTEGRAL_TYPE.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 int getType() {
+ return type;
+ }
+
+ public void setType(int type) {
+ this.type = type;
+ }
+ }
+
+
+
}
--
Gitblit v1.9.3