From f215f23bae13f1e6984c38b5893103a184c3c534 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 21 Dec 2023 14:07:25 +0800
Subject: [PATCH] 富文本框输入版本变化

---
 src/main/java/cc/mrbird/febs/mall/service/impl/MallNewsInfoServiceImpl.java |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/MallNewsInfoServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/MallNewsInfoServiceImpl.java
index f202122..5b392b1 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/MallNewsInfoServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/MallNewsInfoServiceImpl.java
@@ -314,19 +314,19 @@
         if(ObjectUtil.isEmpty(mallProductBuyRecord)){
             throw new FebsException("记录不存在");
         }
-        Integer state = mallProductBuyRecord.getState();
-        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != state){
-            throw new FebsException("记录不是待支付状态");
-        }
+//        Integer state = mallProductBuyRecord.getState();
+//        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != state){
+//            throw new FebsException("记录不是待支付状态");
+//        }
 
         MallProductSellRecord mallProductSellRecord = mallProductSellRecordMapper.selectById(mallProductBuyRecord.getSellRecordId());
         if(ObjectUtil.isEmpty(mallProductSellRecord)){
             throw new FebsException("记录不存在");
         }
-        Integer stateSell = mallProductSellRecord.getState();
-        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != stateSell){
-            throw new FebsException("记录不是待支付状态");
-        }
+//        Integer stateSell = mallProductSellRecord.getState();
+//        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != stateSell){
+//            throw new FebsException("记录不是待支付状态");
+//        }
 
         DateTime payTime = DateUtil.date();
         mallProductBuyRecord.setState(ProductEnum.PRODUCT_MATE_STATE_PAY.getValue());
@@ -365,19 +365,19 @@
         if(ObjectUtil.isEmpty(mallProductBuyRecord)){
             throw new FebsException("记录不存在");
         }
-        Integer state = mallProductBuyRecord.getState();
-        if(ProductEnum.PRODUCT_MATE_STATE_PAY.getValue() != state){
-            throw new FebsException("记录不是已支付状态");
-        }
+//        Integer state = mallProductBuyRecord.getState();
+//        if(ProductEnum.PRODUCT_MATE_STATE_PAY.getValue() != state){
+//            throw new FebsException("记录不是已支付状态");
+//        }
         Long sellRecordId = mallProductBuyRecord.getSellRecordId();
         MallProductSellRecord mallProductSellRecord = mallProductSellRecordMapper.selectById(mallProductBuyRecord.getSellRecordId());
         if(ObjectUtil.isEmpty(mallProductSellRecord)){
             throw new FebsException("记录不存在");
         }
-        Integer stateSell = mallProductSellRecord.getState();
-        if(ProductEnum.PRODUCT_MATE_STATE_PAY.getValue() != stateSell){
-            throw new FebsException("记录不是已支付状态");
-        }
+//        Integer stateSell = mallProductSellRecord.getState();
+//        if(ProductEnum.PRODUCT_MATE_STATE_PAY.getValue() != stateSell){
+//            throw new FebsException("记录不是已支付状态");
+//        }
 
         mallProductBuyRecord.setState(ProductEnum.PRODUCT_MATE_STATE_CONFIRM.getValue());
         mallProductBuyRecordMapper.updateById(mallProductBuyRecord);
@@ -395,10 +395,10 @@
         if(ObjectUtil.isEmpty(mallProductBuyRecord)){
             throw new FebsException("记录不存在");
         }
-        Integer state = mallProductBuyRecord.getState();
-        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != state){
-            throw new FebsException("记录不是待支付状态");
-        }
+//        Integer state = mallProductBuyRecord.getState();
+//        if(ProductEnum.PRODUCT_MATE_STATE_WAIT_PAY.getValue() != state){
+//            throw new FebsException("记录不是待支付状态");
+//        }
         Long sellRecordId = mallProductBuyRecord.getSellRecordId();
         //更新买单子表的数据
         mallProductBuyRecord.setState(ProductEnum.PRODUCT_MATE_STATE_FAIL.getValue());

--
Gitblit v1.9.1