| | |
| | | |
| | | private final MallOrderRefundAddressMapper mallOrderRefundAddressMapper; |
| | | |
| | | private final MallGoodsCommentMapper mallGoodsCommentMapper; |
| | | |
| | | private final MallMoneyFlowMapper mallMoneyFlowMapper; |
| | | |
| | | private final IApiMallMemberWalletService iApiMallMemberWalletService; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AdminMallGoodsCommentVo> getCommentListInPage(AdminMallGoodsCommentDto adminMallGoodsCommentDto, QueryRequest request) { |
| | | Page<AdminMallGoodsCommentVo> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | IPage<AdminMallGoodsCommentVo> adminMallGoodsCommentVos = mallGoodsCommentMapper.getCommentListInPage(page, adminMallGoodsCommentDto); |
| | | return adminMallGoodsCommentVos; |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse showStateSwitchOn(Long id) { |
| | | MallGoodsComment mallGoodsComment = mallGoodsCommentMapper.selectById(id); |
| | | if (ObjectUtil.isEmpty(mallGoodsComment)) { |
| | | return new FebsResponse().fail().message("评论不存在,请刷新当前页面"); |
| | | } |
| | | mallGoodsComment.setShowState(MallGoodsComment.SHOW_STATE_ENABLE); |
| | | mallGoodsCommentMapper.updateById(mallGoodsComment); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse showStateSwitchOff(Long id) { |
| | | MallGoodsComment mallGoodsComment = mallGoodsCommentMapper.selectById(id); |
| | | if (ObjectUtil.isEmpty(mallGoodsComment)) { |
| | | return new FebsResponse().fail().message("评论不存在,请刷新当前页面"); |
| | | } |
| | | mallGoodsComment.setShowState(MallGoodsComment.SHOW_STATE_DISABLED); |
| | | mallGoodsCommentMapper.updateById(mallGoodsComment); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @Override |
| | | public void deliverGoodsByOrderNo(DeliverGoodsDto deliverGoodsDto) { |
| | | MallOrderInfo mallOrderInfo = mallOrderInfoMapper.selectByOrderNo(deliverGoodsDto.getOrderNo()); |
| | | if (mallOrderInfo == null) { |