| | |
| | | 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; |
| | |
| | | .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"); |