|
|
@@ -19,10 +19,7 @@ import com.yami.shop.bean.app.dto.ShopCartOrderMergerDto;
|
|
|
import com.yami.shop.bean.model.Order;
|
|
|
import com.yami.shop.bean.model.OrderItem;
|
|
|
import com.yami.shop.bean.model.OrderRefund;
|
|
|
-import com.yami.shop.bean.param.CancelOrderParam;
|
|
|
-import com.yami.shop.bean.param.OrderParam;
|
|
|
-import com.yami.shop.bean.param.OrderPayParam;
|
|
|
-import com.yami.shop.bean.param.OrderRefundParam;
|
|
|
+import com.yami.shop.bean.param.*;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -131,4 +128,14 @@ public interface OrderService extends IService<Order> {
|
|
|
* @return 订单申请退款结果
|
|
|
*/
|
|
|
void returnRefund(String orderNumber);
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 计算退单金额和积分
|
|
|
+ * @param orderNumber 订单编号
|
|
|
+ * @param skuId id
|
|
|
+ * @param prodCount 退单sku的数量
|
|
|
+ * @return {@link OrderRefundAmountDTO}
|
|
|
+ */
|
|
|
+ OrderRefundAmountDTO computeOrderRefundAmount(String orderNumber,Long skuId,Integer prodCount);
|
|
|
}
|