crm-platform-feign/src/main/java/com/hz/crm/dto/OrderServiceDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundAmountConversionDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundAmountModelDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundReturnDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/feign/FOderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
crm-platform-feign/src/main/java/com/hz/crm/feign/FUserService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
crm-platform-feign/src/main/java/com/hz/crm/dto/OrderServiceDto.java
New file @@ -0,0 +1,44 @@ package com.hz.crm.dto; import lombok.Data; import java.math.BigDecimal; /** * 用在封住或者事务层调用返回(退款返回dto) * @author cjh * */ @Data public class OrderServiceDto { /**是否成功*/ 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; /************************************/ /**最快状态-失败*/ 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/dto/order/refund/RefundAmountConversionDto.java
New file @@ -0,0 +1,36 @@ package com.hz.crm.dto.order.refund; import lombok.Data; import java.math.BigDecimal; /** * 退款 -金额转化记录 * 现金可转储值金、增值金和积分 * 储值金可转增值金和积分 * 增值金可转积分 */ @Data public class RefundAmountConversionDto { /**Y - 被转化金额类型*/ private Integer amountType; /**Y - 被转化金额(元/积分)*/ private BigDecimal amountTotal; /**Y - 转化金额类型*/ private Integer conversionType; /**Y - 转化金额(元/积分)*/ private BigDecimal conversionTotal; /**********金额类型************/ /**金额类型-现金*/ public static final int AMOUNT_TYPE_CASH = 1; /**金额类型-储值金*/ public static final int AMOUNT_TYPE_RECHARGE = 2; /**金额类型-增值金*/ public static final int AMOUNT_TYPE_INCREMENT = 3; /**金额类型-积分*/ public static final int AMOUNT_TYPE_INTEGRAL = 4; } crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundAmountModelDto.java
New file @@ -0,0 +1,27 @@ package com.hz.crm.dto.order.refund; import lombok.Data; import java.math.BigDecimal; /** * 退款记录 - 金额退款方式 * 现金可转储值金、增值金和积分 * 储值金可转增值金和积分 * 增值金可转积分 */ @Data public class RefundAmountModelDto { /**Y - 现金退款类型*/ private Integer refundType; /**Y - 退款金额(元/积分)*/ private BigDecimal amountTotal; /**********退款类型************/ /**退款类型类型-微信*/ public static final int REFUND_TYPE_WX = 0; /**退款类型类型-支付宝*/ public static final int REFUND_TYPE_ZFB = 1; } crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundDto.java
New file @@ -0,0 +1,53 @@ package com.hz.crm.dto.order.refund; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 退款订单信息 * 实际退款的金额数据是填充在这里的 * @author wzh */ @Data public class RefundDto { /**必填 订单类型(RefundRecordConstants) */ private Integer refundOrderType; /**必填 订单id */ private String orderId; /** 其他订单id */ private String otherId; /**必填 退款类型(0:退次数退款,1:仅退款 默认:0) */ private Integer refundType; /** 子订单集合 - 具体到子订单退款 */ private List<RefundItemDto> itemList; /**金额转化集合*/ List<RefundAmountConversionDto> conversionList; /**现金金额退款方式*/ List<RefundAmountModelDto> amountModelList; /** 退款备注 */ private String remarks; /**必填 退款第三方支付总金额(微信/支付宝支付/其他)(元) */ private BigDecimal refundAmountTotal; /**必填 退款储值金总金额(元) */ private BigDecimal refundRecharge; /**必填 退款增值金总金额(元) */ private BigDecimal refundIncrement; /**必填 退款总积分 */ private BigDecimal refundIntegral; ////操作人信息 /**必填 操作人类型 */ private Integer operatorType; /**必填 操作人id */ private String operatorId; /**必填 操作人名称 */ private String operatorName; /*是否整单退 0否1是 (因为积分订单的原因,暂时给phis用)*/ private Integer isWholeOrder; } crm-platform-feign/src/main/java/com/hz/crm/dto/order/refund/RefundItemDto.java
New file @@ -0,0 +1,33 @@ package com.hz.crm.dto.order.refund; import lombok.Data; import java.math.BigDecimal; /** * 退款子订单数据 * 辅助实体数据,主要是用来识别退款金额来源,方便后续的数据变更保存 * @author wzh */ @Data public class RefundItemDto { /** 子订单id */ private String orderItemId; /** 其他订单id */ private String otherId; /** 退回数量 */ private Integer refundNum; /** 退款总金额(元) */ private BigDecimal refundTotal; /** 退款总积分 */ private BigDecimal refundIntegral; /**现金退款金额(元*/ private BigDecimal refundMoney = BigDecimal.ZERO; /**退款储值金(元)*/ private BigDecimal refundFund = BigDecimal.ZERO; /**退款增值金(元)*/ private BigDecimal refundIncrement = BigDecimal.ZERO; } 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
@@ -1,8 +1,8 @@ package com.hz.crm.feign; import com.hx.resultTool.Result; import com.hz.crm.dto.OrderRefundDto; import com.hz.crm.dto.OrderStatusDto; import com.hz.crm.dto.order.refund.RefundDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -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) OrderStatusDto orderStatusDto); Result refundOrder(@RequestBody(required = false) RefundDto refundDto); } crm-platform-feign/src/main/java/com/hz/crm/feign/FUserService.java
@@ -13,6 +13,10 @@ public interface FUserService { @PostMapping(value = "/user/info") Result list( @RequestBody(required = false) UserDto userDto); Result info( @RequestBody(required = false) UserDto userDto); @PostMapping(value = "/user/getUserUnionid") Result getUserUnionid( @RequestBody(required = false) UserDto userDto); }