chenjiahe
2022-09-27 afa65b35524821bae9a9b59365a6d2b521198380
退款修改
1个文件已添加
1个文件已修改
51 ■■■■■ 已修改文件
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundReturnDto.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
crm-platform-feign/src/main/java/com/hz/crm/feign/FOderService.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundReturnDto.java
New file
@@ -0,0 +1,43 @@
package com.hz.crm.dto.order.refund;
import lombok.Data;
import java.math.BigDecimal;
import java.util.List;
/**
 * 退款返回实体
 */
@Data
public class RefundReturnDto {
    /**是否成功*/
    private boolean isSuccess = false;
    /**返回报错/返回提示信息*/
    private String errMsg;
    /**退款退款状态*/
    public int refundStatus;
    /***程序已退款数据,退掉的加进去***/
    /***已退款总金额***/
    private BigDecimal refundTotal = BigDecimal.ZERO;
    /**已退款现金***/
    private BigDecimal refundAmountTotal = BigDecimal.ZERO;
    /**已退款储值金*/
    private BigDecimal refundRecharge = BigDecimal.ZERO;
    /**已退款增值金*/
    private BigDecimal refundIncrement = BigDecimal.ZERO;
    /**已退款积分*/
    private BigDecimal refundIntegral = BigDecimal.ZERO;
    /**退款方式,已经退款的记录*/
    private List<RefundAmountModelDto> refundAmountModelDtoList;
    /************************************/
    /**最快状态-失败*/
    public static final int REFUND_STATUS_FAIL = 1;
    /**最快状态-部分退款*/
    public static final int REFUND_STATUS_PART = 2;
    /**最快状态-成功*/
    public static final int REFUND_STATUS_SUECCESS = 3;
}
crm-platform-feign/src/main/java/com/hz/crm/feign/FOderService.java
@@ -14,11 +14,15 @@
@FeignClient(name="crm-platform-service",path = "/crmp",contextId = "crm-order")
public interface FOderService {
    /*取消订单*/
    /**取消订单*/
    @PostMapping(value = "/order/cancel")
    Result cancelOrder( @RequestBody(required = false) OrderStatusDto orderStatusDto);
    /*退款*/
    /**退款
     *
     * @param refundDto
     * @return refundReturnDto实体转化
     */
    @RequestMapping("/order/refund")
    Result refundOrder(@RequestBody(required = false) RefundDto refundDto);
}