| | |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final HappyMemberLevelMapper happyMemberLevelMapper; |
| | | private final IMallMoneyFlowService mallMoneyFlowService; |
| | | private final ClothesSocialMapper clothesSocialMapper; |
| | | |
| | | @Override |
| | | public FebsResponse activityList(ApiActivityInfoDto dto) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void getAddLike(Long socialId) { |
| | | ClothesSocial clothesSocial = clothesSocialMapper.selectById(socialId); |
| | | if (ObjectUtil.isNotNull(clothesSocial)){ |
| | | |
| | | clothesSocialMapper.update(null, |
| | | Wrappers.lambdaUpdate(ClothesSocial.class) |
| | | .set(ClothesSocial::getLikeCnt, clothesSocial.getLikeCnt()+1) |
| | | .eq(ClothesSocial::getId, socialId) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void getAddCollect(Long socialId) { |
| | | ClothesSocial clothesSocial = clothesSocialMapper.selectById(socialId); |
| | | if (ObjectUtil.isNotNull(clothesSocial)){ |
| | | |
| | | clothesSocialMapper.update(null, |
| | | Wrappers.lambdaUpdate(ClothesSocial.class) |
| | | .set(ClothesSocial::getCollectCnt, clothesSocial.getCollectCnt()+1) |
| | | .eq(ClothesSocial::getId, socialId) |
| | | ); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse voteActivityHot(Long id) { |
| | | |
| | | ApiVoteActivityHotVo apiVoteActivityHotVo = new ApiVoteActivityHotVo(); |