Administrator
2025-07-22 4630ff30b43a1ac657e97a68f5f74e9561870999
refactor(mall): 优化 ApiClothesSocialServiceImpl 中的代码逻辑

- 移除了对 clothesArt、clothesSize 和 clothesCloth 的非空检查
- 无条件地将 apiSocialMuseVo 设置为 apiSocialInfoVo 的 muse 属性
- 删除了未使用的注释代码
1 files modified
15 ■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java 15 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -252,13 +252,14 @@
                    apiSocialMuseVo.setLocationRemarkList(locationRemarkList);
                }
                apiSocialMuseVo.setTotalAmount(totalAmount.setScale(2, RoundingMode.DOWN));
                if(
                        ObjectUtil.isNotNull(clothesArt)
                        && ObjectUtil.isNotNull(clothesSize)
                        && ObjectUtil.isNotNull(clothesCloth)
                ){
                    apiSocialInfoVo.setMuse(apiSocialMuseVo);
                }
//                if(
//                        ObjectUtil.isNotNull(clothesArt)
//                        && ObjectUtil.isNotNull(clothesSize)
//                        && ObjectUtil.isNotNull(clothesCloth)
//                ){
//                    apiSocialInfoVo.setMuse(apiSocialMuseVo);
//                }
                apiSocialInfoVo.setMuse(apiSocialMuseVo);
//                Integer likeCnt = clothesSocial.getLikeCnt();