xw пре 2 недеља
родитељ
комит
555db0b2c3

+ 2 - 2
fs-admin/src/main/java/com/fs/live/controller/LiveGoodsController.java

@@ -45,11 +45,11 @@ public class LiveGoodsController extends BaseController
      */
 //    @PreAuthorize("@ss.hasPermi('live:liveGoods:list')")
     @GetMapping("/list")
-    public TableDataInfo list(LiveGoods liveGoods, @RequestParam(value = "liveId", required = true) Long liveId)
+    public TableDataInfo list(LiveGoods liveGoods)
     {
         // 设置企业ID和企业用户ID
         setCompanyId(liveGoods);
-        liveGoods.setLiveId(liveId);
+        // liveId 已通过 LiveGoods 对象传入,无需再次设置
 
         startPage();
         List<LiveGoodsVo> list = liveGoodsService.selectProductListByLiveId(liveGoods);

+ 24 - 22
fs-service/src/main/java/com/fs/live/service/impl/LiveGoodsServiceImpl.java

@@ -236,10 +236,10 @@ public class LiveGoodsServiceImpl  implements ILiveGoodsService {
             if (product.getIsShow() == null || product.getIsShow() == 0) {
                 notShelvedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
             }
-            // 检查是否审核
-            if (product.getIsAudit() == null || !"1".equals(product.getIsAudit())) {
-                notAuditedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
-            }
+            // 注释掉审核逻辑 - 不再检查商品是否审核
+            // if (product.getIsAudit() == null || !"1".equals(product.getIsAudit())) {
+            //     notAuditedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
+            // }
             // 检查是否已删除
             if (product.getIsDel() != null && product.getIsDel() == 1) {
                 deletedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
@@ -251,13 +251,14 @@ public class LiveGoodsServiceImpl  implements ILiveGoodsService {
             errorMsg.append(LiveGoodsAddErrorEnum.NOT_SHELVED.getDesc()).append(":");
             errorMsg.append(String.join("、", notShelvedProducts));
         }
-        if (!notAuditedProducts.isEmpty()) {
-            if (errorMsg.length() > 0) {
-                errorMsg.append(";");
-            }
-            errorMsg.append(LiveGoodsAddErrorEnum.NOT_AUDITED.getDesc()).append(":");
-            errorMsg.append(String.join("、", notAuditedProducts));
-        }
+        // 注释掉审核错误提示逻辑
+        // if (!notAuditedProducts.isEmpty()) {
+        //     if (errorMsg.length() > 0) {
+        //         errorMsg.append(";");
+        //     }
+        //     errorMsg.append(LiveGoodsAddErrorEnum.NOT_AUDITED.getDesc()).append(":");
+        //     errorMsg.append(String.join("、", notAuditedProducts));
+        // }
         if (!deletedProducts.isEmpty()) {
             if (errorMsg.length() > 0) {
                 errorMsg.append(";");
@@ -324,10 +325,10 @@ public class LiveGoodsServiceImpl  implements ILiveGoodsService {
             if (product.getIsShow() == null || product.getIsShow() == 0) {
                 notShelvedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
             }
-            // 检查是否审核
-            if (product.getIsAudit() == null || !"1".equals(product.getIsAudit())) {
-                notAuditedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
-            }
+            // 注释掉审核逻辑 - 不再检查商品是否审核
+            // if (product.getIsAudit() == null || !"1".equals(product.getIsAudit())) {
+            //     notAuditedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
+            // }
             // 检查是否已删除
             if (product.getIsDel() != null && product.getIsDel() == 1) {
                 deletedProducts.add(product.getProductId() + "(" + product.getProductName() + ")");
@@ -339,13 +340,14 @@ public class LiveGoodsServiceImpl  implements ILiveGoodsService {
             errorMsg.append(LiveGoodsAddErrorEnum.NOT_SHELVED.getDesc()).append(":");
             errorMsg.append(String.join("、", notShelvedProducts));
         }
-        if (!notAuditedProducts.isEmpty()) {
-            if (errorMsg.length() > 0) {
-                errorMsg.append(";");
-            }
-            errorMsg.append(LiveGoodsAddErrorEnum.NOT_AUDITED.getDesc()).append(":");
-            errorMsg.append(String.join("、", notAuditedProducts));
-        }
+        // 注释掉审核错误提示逻辑
+        // if (!notAuditedProducts.isEmpty()) {
+        //     if (errorMsg.length() > 0) {
+        //         errorMsg.append(";");
+        //     }
+        //     errorMsg.append(LiveGoodsAddErrorEnum.NOT_AUDITED.getDesc()).append(":");
+        //     errorMsg.append(String.join("、", notAuditedProducts));
+        // }
         if (!deletedProducts.isEmpty()) {
             if (errorMsg.length() > 0) {
                 errorMsg.append(";");