From f23392179e29854eae3fea145da59fe92d248c6e Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 19 May 2025 10:44:22 +0800
Subject: [PATCH] refactor(mall): 优化订单和积分流水号生成逻辑

---
 src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java |    2 +-
 src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java            |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
index 114fdcc..d604773 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallOrderInfoServiceImpl.java
@@ -109,7 +109,7 @@
             throw new FebsException("请重新选择收货地址信息");
         }
 
-        String orderNo = MallUtils.getOrderNum();
+        String orderNo = MallUtils.getOrderNum("order");
         MallOrderInfo orderInfo = new MallOrderInfo();
         orderInfo.setOrderNo(orderNo);
         orderInfo.setOrderTime(new Date());
diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java
index abc52bf..f05f429 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ScoreServiceImpl.java
@@ -296,7 +296,7 @@
                     member.getId(),
                     amount,
                     ScoreFlowTypeEnum.SIGN_EXPERIENCE.getValue(),
-                    MallUtils.getOrderNum(),
+                    MallUtils.getOrderNum("sign"),
                     FlowTypeEnum.SCORE.getValue(),
                     StrUtil.format(ScoreFlowTypeEnum.SIGN_EXPERIENCE.getDesc(),amount),
                     2);
@@ -307,7 +307,7 @@
                     member.getId(),
                     amount,
                     ScoreFlowTypeEnum.SIGN_SCORE.getValue(),
-                    MallUtils.getOrderNum(),
+                    MallUtils.getOrderNum("sign"),
                     FlowTypeEnum.PRIZE_SCORE.getValue(),
                     StrUtil.format(ScoreFlowTypeEnum.SIGN_SCORE.getDesc(),amount),
                     2);

--
Gitblit v1.9.1