From 82735e4d46ac7b9969facef2acc8f8e793b68f71 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 15 九月 2025 16:11:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 server/services/src/main/java/com/doumee/core/constants/Constants.java |   55 +++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 45 insertions(+), 10 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 cb06d9a..49726e0 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
@@ -1,5 +1,6 @@
 package com.doumee.core.constants;
 
+import com.doumee.dao.business.model.Orders;
 import lombok.AllArgsConstructor;
 import lombok.Getter;
 
@@ -56,6 +57,7 @@
     public static final String AUTO_DISPATCH ="AUTO_DISPATCH" ;
     public static final String AUTO_DISPATCH_DISTANCE ="AUTO_DISPATCH_DISTANCE" ;
     public static final String AUTO_CONFIRM ="AUTO_CONFIRM" ;
+    public static final String AUTO_CANCEL_WAIT_PAY ="AUTO_CANCEL_WAIT_PAY" ;
 
     public static final String QYWX = "QYWX";
     public static final  Integer ONE = 1;
@@ -561,22 +563,23 @@
 
 
     public  enum ordersStatus {
-        waitPay(0, "寰呮敮浠�"),
-        wait(1, "寰呮帴鍗�"),
-        accept(2, "宸叉帴鍗�"),
-        doing(3, "杩涜涓�"),
-        done(4, "宸插畬鎴�"),
-        feeconfirm(5, "宸茬‘璁よ垂鐢�"),
-        cancel(99, "宸插彇娑�"),
+        waitPay(0, "寰呮敮浠�","寰呮敮浠�"),
+        wait(1, "寰呮帴鍗�","寰呮帴鍗�"),
+        accept(2, "宸叉帴鍗�","宸叉帴鍗�"),
+        doing(3, "杩涜涓�","杩涜涓�"),
+        done(4, "宸插畬鎴�","宸插畬鎴�"),
+        feeconfirm(5, "寰呮敮浠�","寰呭彂鍗曟柟鏀粯"),//閲戦宸茬‘璁�
+        cancel(99, "宸插彇娑�","宸插彇娑�"),
         ;
         // 鎴愬憳鍙橀噺
         private int key;
-        private String name;
-
+        private String name; //鎺ュ崟鏂规枃妗�
+        private String info; //鍙戝崟鏂规枃妗�
         // 鏋勯�犳柟娉�
-        ordersStatus(int key, String name) {
+        ordersStatus(int key, String name,String info) {
             this.name = name;
             this.key = key;
+            this.info = info;
         }
 
         // 鏅�氭柟娉�
@@ -584,6 +587,15 @@
             for (ordersStatus c : ordersStatus.values()) {
                 if (c.getKey() == index) {
                     return c.name;
+                }
+            }
+            return null;
+        }
+
+        public static String getInfo(int index) {
+            for (ordersStatus c : ordersStatus.values()) {
+                if (c.getKey() == index) {
+                    return c.info;
                 }
             }
             return null;
@@ -603,6 +615,14 @@
 
         public void setKey(int key) {
             this.key = key;
+        }
+
+        public String getInfo() {
+            return info;
+        }
+
+        public void setInfo(String info) {
+            this.info = info;
         }
 
     }
@@ -717,6 +737,21 @@
     }
 
 
+    public static  String getOrderInfo(Orders orders){
+        String orderTypeInfo = "鐢ㄥ伐鍗�";
+        if(!Constants.equalsInteger(orders.getType(),Constants.ZERO)){
+            orderTypeInfo =   Constants.equalsInteger(orders.getType(),Constants.ONE)?"鐢ㄨ溅鍗�":"閫侀鍗�";
+        }else{
+            if(Constants.equalsInteger(orders.getWorkType(),Constants.ZERO)){
+                orderTypeInfo = orderTypeInfo + "-閲囨憳宸�";
+            }else{
+                orderTypeInfo = orderTypeInfo + (Constants.equalsInteger(orders.getWorkType(),Constants.ONE)?"-鍒嗘嫞宸�":"-鍖呰宸�");
+            }
+        }
+        return orderTypeInfo;
+
+    }
+
 
 
 }

--
Gitblit v1.9.3