wangming преди 6 дни
родител
ревизия
4cc771724b

+ 2 - 1
yami-shop-api/src/main/java/com/yami/shop/api/controller/OrderRefundController.java

@@ -30,7 +30,6 @@ import com.yami.shop.delivery.comment.api.paotui.model.response.OrderStatusRespo
 import com.yami.shop.delivery.comment.service.TransportManagerService;
 import com.yami.shop.security.api.util.SecurityUtils;
 import com.yami.shop.service.*;
-import com.yami.shop.service.hb.IHBOrderService;
 import com.yami.shop.utils.CullenUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
@@ -482,6 +481,8 @@ public class OrderRefundController {
         newOrderRefund.setReturnMoneySts(ReturnMoneyStsType.APPLY.value());
         newOrderRefund.setApplyTime(new Date());
         newOrderRefund.setUpdateTime(new Date());
+        newOrderRefund.setFreightAmount(order.getFreightAmount());
+        newOrderRefund.setOffsetPoints(order.getOffsetPoints());
         OrderRefund orderRefund = orderRefundService.applyRefund(newOrderRefund);
         if (!orderRefundSkuList.isEmpty()){
             orderRefundSkuList.forEach(c->{

+ 4 - 0
yami-shop-bean/src/main/java/com/yami/shop/bean/model/OrderRefund.java

@@ -160,6 +160,10 @@ public class OrderRefund implements Serializable{
      */
     private Double platformRefundAmount = 0.0;
 
+    private Double freightAmount;
+
+    private Long offsetPoints;
+
     @TableField(exist = false)
     @ApiModelProperty(value = "退款商品详情")
     private List<OrderRefundSku> orderRefundSkuList;