添加获取订单评论详情

This commit is contained in:
xiaofeng 2020-06-01 23:57:47 +08:00
parent 3803170b34
commit 25c3b3cb89
3 changed files with 82 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package cn.iocoder.mall.order.biz.convert.comment;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentInfoBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentPageBO;
import cn.iocoder.mall.order.biz.dataobject.comment.OrderCommentDO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentAddDTO;
@ -35,4 +36,11 @@ public interface OrderCommentConvert {
*/
List<OrderCommentPageBO> convert(List<OrderCommentDO> orderCommentList);
/**
*
* @param orderCommentDO
* @return
*/
OrderCommentInfoBO convert(OrderCommentDO orderCommentDO);
}

View File

@ -1,9 +1,15 @@
package cn.iocoder.mall.order.biz.service.comment;
import cn.iocoder.common.framework.vo.PageResult;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentInfoBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentPageBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentStateInfoPageBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentTimeOutBO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentAddDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentPageDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentStateInfoPageDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentTimeOutPageDTO;
import java.util.List;
import javax.validation.Valid;
import org.springframework.validation.annotation.Validated;
@ -32,4 +38,41 @@ public interface OrderCommentService {
* @return
*/
PageResult<OrderCommentPageBO> page(OrderCommentPageDTO orderCommentPageDTO);
/**
* 获取订单评论信息
*
* @param commentId
* @return
*/
OrderCommentInfoBO getOrderCommentInfo(Integer commentId);
/**
* 获取订单评论状态详情
*
* @param orderCommentStateInfoPageDTO
* @return
*/
OrderCommentStateInfoPageBO getOrderCommentStateInfoPage(
OrderCommentStateInfoPageDTO orderCommentStateInfoPageDTO);
/**
* 获取订单评论超时分页
*
* @param orderCommentTimeOutPageDTO
* @return
*/
List<OrderCommentTimeOutBO> getOrderCommentTimeOutPage(
OrderCommentTimeOutPageDTO orderCommentTimeOutPageDTO);
/**
* 批量更新订单评论状态
*
* @param orderCommentTimeOutBOList
*/
void updateBatchOrderCommentState(List<OrderCommentTimeOutBO> orderCommentTimeOutBOList);
}

View File

@ -2,12 +2,16 @@ package cn.iocoder.mall.order.biz.service.comment;
import cn.iocoder.common.framework.util.CollectionUtil;
import cn.iocoder.common.framework.vo.PageResult;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentInfoBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentPageBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentStateInfoPageBO;
import cn.iocoder.mall.order.biz.bo.comment.OrderCommentTimeOutBO;
import cn.iocoder.mall.order.biz.convert.comment.OrderCommentConvert;
import cn.iocoder.mall.order.biz.dataobject.comment.OrderCommentDO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentAddDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentPageDTO;
import java.util.Collection;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentStateInfoPageDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentTimeOutPageDTO;
import java.util.Collections;
import java.util.List;
import javax.validation.Valid;
@ -71,4 +75,30 @@ public class OrderCommentServiceImpl implements OrderCommentService {
pageResult.setList(OrderCommentConvert.INSTANCE.convert(orderCommentList));
return pageResult;
}
@Override
public OrderCommentInfoBO getOrderCommentInfo(
Integer commentId) {
OrderCommentDO orderCommentDO = mongoTemplate
.findOne(new Query(Criteria.where("_id").is(commentId)), OrderCommentDO.class);
return OrderCommentConvert.INSTANCE.convert(orderCommentDO);
}
@Override
public OrderCommentStateInfoPageBO getOrderCommentStateInfoPage(
OrderCommentStateInfoPageDTO orderCommentStateInfoPageDTO) {
return null;
}
@Override
public List<OrderCommentTimeOutBO> getOrderCommentTimeOutPage(
OrderCommentTimeOutPageDTO orderCommentTimeOutPageDTO) {
return null;
}
@Override
public void updateBatchOrderCommentState(
List<OrderCommentTimeOutBO> orderCommentTimeOutBOList) {
}
}