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 |    8 ++++----
 1 files changed, 4 insertions(+), 4 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 de57410..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,10 +80,6 @@
         if(CollUtil.isNotEmpty(list)){
             vos = buildApiClothesCategoryInfoVo(list, vos);
         }
-        ApiClothesCategoryInfoVo apiClothesCategoryInfoVo = new ApiClothesCategoryInfoVo();
-        apiClothesCategoryInfoVo.setId(0L);
-        apiClothesCategoryInfoVo.setName("全部");
-        vos.add(apiClothesCategoryInfoVo);
 
         return new FebsResponse().success().data(vos);
     }

--
Gitblit v1.9.1