| | |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberWalletService; |
| | | import cc.mrbird.febs.mall.service.IMallMoneyFlowService; |
| | | import cc.mrbird.febs.mall.vo.AdminMallOrderInfoVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.AdminClothesLocationRemarkVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.AdminClothesOrderListVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.AdminClothesPatternRemarkVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.AdminClothesSocialListVo; |
| | | import cc.mrbird.febs.mall.vo.clothes.*; |
| | | import cc.mrbird.febs.pay.util.WeixinServiceUtil; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | |
| | | |
| | | private final ClothesPatternRemarkMapper clothesPatternRemarkMapper; |
| | | private final ClothesLocationRemarkMapper clothesLocationRemarkMapper; |
| | | private final ClothesSocialCommentMapper clothesSocialCommentMapper; |
| | | |
| | | private final IApiMallMemberWalletService memberWalletService; |
| | | private final IMallMoneyFlowService mallMoneyFlowService; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AdminClothesSocialCommentVo> socialComment(ClothesSocialComment dto, QueryRequest request) { |
| | | Page<AdminClothesSocialCommentVo> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | IPage<AdminClothesSocialCommentVo> vos = clothesSocialCommentMapper.selectSocialCommentListInPage(page, dto); |
| | | return vos; |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse socialState(Long id, Integer state) { |
| | | |
| | | ClothesSocial clothesSocial = clothesSocialMapper.selectById(id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse commentStateSwitch(Long id, Integer state) { |
| | | |
| | | ClothesSocial clothesSocial = clothesSocialMapper.selectById(id); |
| | | if(ObjectUtil.isNull(clothesSocial)){ |
| | | throw new RuntimeException("内容不存在"); |
| | | } |
| | | clothesSocialMapper.update( |
| | | null, |
| | | Wrappers.lambdaUpdate(ClothesSocial.class) |
| | | .set(ClothesSocial::getCommentState, state) |
| | | .eq(ClothesSocial::getId, id) |
| | | ); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse showStateSwitch(Long id, Integer state) { |
| | | |
| | | ClothesSocialComment clothesSocialComment = clothesSocialCommentMapper.selectById(id); |
| | | |
| | | if(ObjectUtil.isNull(clothesSocialComment)){ |
| | | throw new RuntimeException("评论不存在"); |
| | | } |
| | | clothesSocialCommentMapper.update( |
| | | null, |
| | | Wrappers.lambdaUpdate(ClothesSocialComment.class) |
| | | .set(ClothesSocialComment::getShowState, state) |
| | | .eq(ClothesSocialComment::getId, id) |
| | | ); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse socialHotState(Long id, Integer state) { |
| | | |
| | | ClothesSocial clothesSocial = clothesSocialMapper.selectById(id); |