提交 25c3b3cb authored 作者: xiaofeng's avatar xiaofeng

添加获取订单评论详情

上级 3803170b
package cn.iocoder.mall.order.biz.convert.comment; 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.bo.comment.OrderCommentPageBO;
import cn.iocoder.mall.order.biz.dataobject.comment.OrderCommentDO; 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.OrderCommentAddDTO;
...@@ -35,4 +36,11 @@ public interface OrderCommentConvert { ...@@ -35,4 +36,11 @@ public interface OrderCommentConvert {
*/ */
List<OrderCommentPageBO> convert(List<OrderCommentDO> orderCommentList); List<OrderCommentPageBO> convert(List<OrderCommentDO> orderCommentList);
/**
*
* @param orderCommentDO
* @return
*/
OrderCommentInfoBO convert(OrderCommentDO orderCommentDO);
} }
package cn.iocoder.mall.order.biz.service.comment; package cn.iocoder.mall.order.biz.service.comment;
import cn.iocoder.common.framework.vo.PageResult; 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.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.OrderCommentAddDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentPageDTO; 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 javax.validation.Valid;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -32,4 +38,41 @@ public interface OrderCommentService { ...@@ -32,4 +38,41 @@ public interface OrderCommentService {
* @return * @return
*/ */
PageResult<OrderCommentPageBO> page(OrderCommentPageDTO orderCommentPageDTO); 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);
} }
...@@ -2,12 +2,16 @@ package cn.iocoder.mall.order.biz.service.comment; ...@@ -2,12 +2,16 @@ package cn.iocoder.mall.order.biz.service.comment;
import cn.iocoder.common.framework.util.CollectionUtil; import cn.iocoder.common.framework.util.CollectionUtil;
import cn.iocoder.common.framework.vo.PageResult; 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.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.convert.comment.OrderCommentConvert;
import cn.iocoder.mall.order.biz.dataobject.comment.OrderCommentDO; 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.OrderCommentAddDTO;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentPageDTO; 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.Collections;
import java.util.List; import java.util.List;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -71,4 +75,30 @@ public class OrderCommentServiceImpl implements OrderCommentService { ...@@ -71,4 +75,30 @@ public class OrderCommentServiceImpl implements OrderCommentService {
pageResult.setList(OrderCommentConvert.INSTANCE.convert(orderCommentList)); pageResult.setList(OrderCommentConvert.INSTANCE.convert(orderCommentList));
return pageResult; 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) {
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论