From 44aa87717297bb4fca4bb83ba631646a87749174 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Wed, 09 Jul 2025 11:37:58 +0800 Subject: [PATCH] feat(mall): 新增社区功能相关接口和数据结构 --- src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java index 5163636..1884665 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ViewClothesTypeController.java @@ -13,6 +13,9 @@ import cc.mrbird.febs.mall.vo.clothes.AdminClothesTypeInfoVo; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSON; +import cn.hutool.json.JSONUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import lombok.RequiredArgsConstructor; @@ -147,6 +150,13 @@ .eq(ClothesSocialMuse::getSocialId, clothesSocial.getId()) .last("LIMIT 1") ); + + String patternRemark = clothesSocialMuse.getPatternRemark(); + if(StrUtil.isNotBlank(patternRemark)){ + JSON parse = JSONUtil.parse(patternRemark); + clothesSocialMuse.setPatternText(parse.getByPath("text", String.class)); + clothesSocialMuse.setPatternImage(parse.getByPath("file", String.class)); + } model.addAttribute("socialMuse", clothesSocialMuse); return FebsUtil.view("modules/clothesType/socialMuseUpdate"); -- Gitblit v1.9.1