|
@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.trade.service.aftersale;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
|
+import cn.iocoder.yudao.module.trade.api.aftersale.dto.AfterSaleSummaryRespDTO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSaleDisagreeReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSaleDisagreeReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSalePageReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSalePageReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSaleRefuseReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.admin.aftersale.vo.AfterSaleRefuseReqVO;
|
|
@@ -9,6 +10,8 @@ import cn.iocoder.yudao.module.trade.controller.app.aftersale.vo.AppAfterSaleCre
|
|
import cn.iocoder.yudao.module.trade.controller.app.aftersale.vo.AppAfterSaleDeliveryReqVO;
|
|
import cn.iocoder.yudao.module.trade.controller.app.aftersale.vo.AppAfterSaleDeliveryReqVO;
|
|
import cn.iocoder.yudao.module.trade.dal.dataobject.aftersale.AfterSaleDO;
|
|
import cn.iocoder.yudao.module.trade.dal.dataobject.aftersale.AfterSaleDO;
|
|
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 售后订单 Service 接口
|
|
* 售后订单 Service 接口
|
|
*
|
|
*
|
|
@@ -27,7 +30,7 @@ public interface AfterSaleService {
|
|
/**
|
|
/**
|
|
* 【会员】获得售后订单分页
|
|
* 【会员】获得售后订单分页
|
|
*
|
|
*
|
|
- * @param userId 用户编号
|
|
|
|
|
|
+ * @param userId 用户编号
|
|
* @param pageParam 分页参数
|
|
* @param pageParam 分页参数
|
|
* @return 售后订单分页
|
|
* @return 售后订单分页
|
|
*/
|
|
*/
|
|
@@ -37,7 +40,7 @@ public interface AfterSaleService {
|
|
* 【会员】获得售后单
|
|
* 【会员】获得售后单
|
|
*
|
|
*
|
|
* @param userId 用户编号
|
|
* @param userId 用户编号
|
|
- * @param id 售后编号
|
|
|
|
|
|
+ * @param id 售后编号
|
|
* @return 售后订单
|
|
* @return 售后订单
|
|
*/
|
|
*/
|
|
AfterSaleDO getAfterSale(Long userId, Long id);
|
|
AfterSaleDO getAfterSale(Long userId, Long id);
|
|
@@ -53,7 +56,7 @@ public interface AfterSaleService {
|
|
/**
|
|
/**
|
|
* 【会员】创建售后订单
|
|
* 【会员】创建售后订单
|
|
*
|
|
*
|
|
- * @param userId 会员用户编号
|
|
|
|
|
|
+ * @param userId 会员用户编号
|
|
* @param createReqVO 创建 Request 信息
|
|
* @param createReqVO 创建 Request 信息
|
|
* @return 售后编号
|
|
* @return 售后编号
|
|
*/
|
|
*/
|
|
@@ -63,14 +66,14 @@ public interface AfterSaleService {
|
|
* 【管理员】同意售后订单
|
|
* 【管理员】同意售后订单
|
|
*
|
|
*
|
|
* @param userId 管理员用户编号
|
|
* @param userId 管理员用户编号
|
|
- * @param id 售后编号
|
|
|
|
|
|
+ * @param id 售后编号
|
|
*/
|
|
*/
|
|
void agreeAfterSale(Long userId, Long id);
|
|
void agreeAfterSale(Long userId, Long id);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 【管理员】拒绝售后订单
|
|
* 【管理员】拒绝售后订单
|
|
*
|
|
*
|
|
- * @param userId 管理员用户编号
|
|
|
|
|
|
+ * @param userId 管理员用户编号
|
|
* @param auditReqVO 审批 Request 信息
|
|
* @param auditReqVO 审批 Request 信息
|
|
*/
|
|
*/
|
|
void disagreeAfterSale(Long userId, AfterSaleDisagreeReqVO auditReqVO);
|
|
void disagreeAfterSale(Long userId, AfterSaleDisagreeReqVO auditReqVO);
|
|
@@ -78,7 +81,7 @@ public interface AfterSaleService {
|
|
/**
|
|
/**
|
|
* 【会员】退回货物
|
|
* 【会员】退回货物
|
|
*
|
|
*
|
|
- * @param userId 会员用户编号
|
|
|
|
|
|
+ * @param userId 会员用户编号
|
|
* @param deliveryReqVO 退货 Request 信息
|
|
* @param deliveryReqVO 退货 Request 信息
|
|
*/
|
|
*/
|
|
void deliveryAfterSale(Long userId, AppAfterSaleDeliveryReqVO deliveryReqVO);
|
|
void deliveryAfterSale(Long userId, AppAfterSaleDeliveryReqVO deliveryReqVO);
|
|
@@ -87,14 +90,14 @@ public interface AfterSaleService {
|
|
* 【管理员】确认收货
|
|
* 【管理员】确认收货
|
|
*
|
|
*
|
|
* @param userId 管理员编号
|
|
* @param userId 管理员编号
|
|
- * @param id 售后编号
|
|
|
|
|
|
+ * @param id 售后编号
|
|
*/
|
|
*/
|
|
void receiveAfterSale(Long userId, Long id);
|
|
void receiveAfterSale(Long userId, Long id);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 【管理员】拒绝收货
|
|
* 【管理员】拒绝收货
|
|
*
|
|
*
|
|
- * @param userId 管理员用户编号
|
|
|
|
|
|
+ * @param userId 管理员用户编号
|
|
* @param refuseReqVO 拒绝收货 Request 信息
|
|
* @param refuseReqVO 拒绝收货 Request 信息
|
|
*/
|
|
*/
|
|
void refuseAfterSale(Long userId, AfterSaleRefuseReqVO refuseReqVO);
|
|
void refuseAfterSale(Long userId, AfterSaleRefuseReqVO refuseReqVO);
|
|
@@ -104,7 +107,7 @@ public interface AfterSaleService {
|
|
*
|
|
*
|
|
* @param userId 管理员用户编号
|
|
* @param userId 管理员用户编号
|
|
* @param userIp 管理员用户 IP
|
|
* @param userIp 管理员用户 IP
|
|
- * @param id 售后编号
|
|
|
|
|
|
+ * @param id 售后编号
|
|
*/
|
|
*/
|
|
void refundAfterSale(Long userId, String userIp, Long id);
|
|
void refundAfterSale(Long userId, String userIp, Long id);
|
|
|
|
|
|
@@ -112,7 +115,7 @@ public interface AfterSaleService {
|
|
* 【会员】取消售后
|
|
* 【会员】取消售后
|
|
*
|
|
*
|
|
* @param userId 会员用户编号
|
|
* @param userId 会员用户编号
|
|
- * @param id 售后编号
|
|
|
|
|
|
+ * @param id 售后编号
|
|
*/
|
|
*/
|
|
void cancelAfterSale(Long userId, Long id);
|
|
void cancelAfterSale(Long userId, Long id);
|
|
|
|
|
|
@@ -124,4 +127,13 @@ public interface AfterSaleService {
|
|
*/
|
|
*/
|
|
Long getApplyingAfterSaleCount(Long userId);
|
|
Long getApplyingAfterSaleCount(Long userId);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 获取售后单统计
|
|
|
|
+ *
|
|
|
|
+ * @param beginTime 起始时间
|
|
|
|
+ * @param endTime 截止时间
|
|
|
|
+ * @return 售后统计结果
|
|
|
|
+ */
|
|
|
|
+ AfterSaleSummaryRespDTO getAfterSaleSummary(LocalDateTime beginTime, LocalDateTime endTime);
|
|
|
|
+
|
|
}
|
|
}
|