phis-feign/src/main/java/com/hz/his/dto/order/OrderItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/OrderPHisDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/PayDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/order/OrderItemDto.java
@@ -93,6 +93,9 @@ /** 卡包标识 */ private List<CardItemInfoDto> cardItemInfoIds; /** 第三方item标识 */ private String commonItemId; /**平台类型-CRM*/ phis-feign/src/main/java/com/hz/his/dto/order/OrderPHisDto.java
@@ -3,6 +3,8 @@ import com.hz.his.dto.PageDto; import lombok.Data; import java.util.List; /** * Created with IntelliJ IDEA. * @@ -18,7 +20,10 @@ private String operatorId; //操作人门店标识,必填 private String shopId; //总订单信息,必填 private OrdersTotalDto ordersTotal; private OrderItemDto orderItem; //一级子订单,必填 private List<OrderItemDto> orderItem; //开发人集合 private OrderDeveloperDto orderDeveloper; } phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.order; import lombok.Data; /** * 结账金额集合 * * @Author: zhouxiang * @Date: 2022/08/31/15:26 * @Description: */ @Data public class PayAmountDto { //实际支付金额 private String amount; //支付方式 private String method; //商品/项目id/组合项标识(卡项支付时必传组合项标识) private String commonId; //权益类型:卡项支付必传 private String cardEquityId; //卡包标识:卡项支付必传 private String userCardId; } phis-feign/src/main/java/com/hz/his/dto/order/PayDto.java
New file @@ -0,0 +1,30 @@ package com.hz.his.dto.order; import lombok.Data; import java.util.List; /** * 结账参数 * * @Author: zhouxiang * @Date: 2022/06/29/15:11 * @Description: */ @Data public class PayDto { //是否是按项目付款,0:否,1:是 private Integer type; //订单id 必填 private String orderId; //应付总金额 必填 private String total; //结账参数 必填 private List<PayAmountDto> amount; //操作人标识 必填,crm填用户 private String operatorId; //优惠券id private String userCouponId; //订单领建标识 private String hisOrderId; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
@@ -7,6 +7,8 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import javax.servlet.http.HttpServletRequest; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 */ @@ -49,9 +51,16 @@ @PostMapping(value = "/refund/syn/refund") Result synRefund(@RequestBody OrderRefundDto dto, @RequestHeader("appIdCode") String appIdCode); /** * 开放平台-开单并且结账接口 * 开放平台-开单 */ @PostMapping(value = "/create/pay/order") Result createPayOrder(@RequestBody OrderPHisDto dto); @PostMapping(value = "/order/add") Result orderAdd(HttpServletRequest request, @RequestBody OrderPHisDto dto); /** * 开放平台-结账 */ @PostMapping(value = "/order/pay") Result orderPay(HttpServletRequest request,@RequestBody PayDto dto); }