From f7de67c92de1bd55154c5a2f879e99a1b476750b Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 18 Jul 2025 16:52:34 +0800
Subject: [PATCH] refactor(mall): 调整衣服分类逻辑

---
 src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
index 50cfea8..5751a44 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -66,6 +66,10 @@
     @Override
     public FebsResponse allCategory() {
         List<ApiClothesCategoryInfoVo> vos = new ArrayList<>();
+        ApiClothesCategoryInfoVo apiClothesCategoryInfoVo = new ApiClothesCategoryInfoVo();
+        apiClothesCategoryInfoVo.setId(0L);
+        apiClothesCategoryInfoVo.setName("全部");
+        vos.add(apiClothesCategoryInfoVo);
         List<ClothesSocialCategory> list = clothesSocialCategoryMapper.selectList(
                 Wrappers.lambdaQuery(ClothesSocialCategory.class)
                         .select(ClothesSocialCategory::getId, ClothesSocialCategory::getName)
@@ -76,6 +80,7 @@
         if(CollUtil.isNotEmpty(list)){
             vos = buildApiClothesCategoryInfoVo(list, vos);
         }
+
         return new FebsResponse().success().data(vos);
     }
 
@@ -325,7 +330,7 @@
 
         List<ClothesLocationRemark> clothesLocationRemarks = new ArrayList<>();
         List<ClothesPatternRemark> clothesPatternRemarks = new ArrayList<>();
-        if(CollUtil.isEmpty(clothesOrderItems)){
+        if(CollUtil.isNotEmpty(clothesOrderItems)){
             for (ClothesOrderItem item : clothesOrderItems){
                 if (ClothesOrderItemEnum.CLOTH.getCode() == item.getType()) {
                     ClothesCloth cloth = clothesClothMapper.selectById(item.getItemId());

--
Gitblit v1.9.1