phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.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/OrderCreateDto.java
New file @@ -0,0 +1,27 @@ package com.hz.his.dto.order; import lombok.Data; import java.util.List; /** * @author wzh * 订单创建扩展 */ @Data public class OrderCreateDto { private OrdersTotalDto orderTotal; private List<OrderItemDto> orderItem; private List<OrderDeveloperDto> orderDeveloper; private List<String> cardItemInfoIds; private String operatorId; private String shopId; } phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java
New file @@ -0,0 +1,101 @@ package com.hz.his.dto.order; import java.util.Date; /** * 订单与开发人关联表(默认:用户绑定的所属顾问) */ public class OrderDeveloperDto { private String id; private Date createTime; private Date editTime; /** 订单id(OrdersTotal) */ private String orderId; /** 开单人门店标识(默认:用户绑定的所属顾问) */ private String shopId; /** 开单人门店名称(默认:用户绑定的所属顾问)*/ private String shopName; /** 开单人员工标识(默认:用户绑定的所属顾问)*/ private String employeeId; /** 开单人员工名称(默认:用户绑定的所属顾问)*/ private String employeeName; /** 类型(美容师/医生)*/ private String type; public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getShopId() { return shopId; } public void setShopId(String shopId) { this.shopId = shopId; } public String getShopName() { return shopName; } public void setShopName(String shopName) { this.shopName = shopName; } public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public String getEmployeeName() { return employeeName; } public void setEmployeeName(String employeeName) { this.employeeName = employeeName; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getId() { return id; } public void setId(String id) { this.id = id; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getEditTime() { return editTime; } public void setEditTime(Date editTime) { this.editTime = editTime; } } phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java
New file @@ -0,0 +1,29 @@ package com.hz.his.dto.order; import lombok.Data; /** * @author wzh * 订单结账扩展 */ @Data public class OrderPayDto { /** 是否是按项目付款,0:否,1:是 */ private Integer type; /** 订单id */ private String orderId; /** 应付的总金额 */ private String total; /** 用户真正支付的金额集合 */ private String amount; /** 操作人员信息json */ private String operator; /** 操作人员id */ private String operatorId; /** 优惠券id */ private String userCouponId; /** 用户资金信息 */ private String userMoney; } phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.user.coupon; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * @author wzh * 判断订单是否可用该优惠券的订单信息 * */ @Data public class OrderCanUseCouponDto { /**用户标识*/ private String userId; /**优惠券标识*/ private String couponId; /**订单金额*/ private BigDecimal total; /**购买件数*/ private Integer itemNum; /**子订单商品信息列表*/ private List<OrderItemCouponDto> itemList; } phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java
New file @@ -0,0 +1,24 @@ package com.hz.his.dto.user.coupon; import lombok.Data; import java.math.BigDecimal; /** * @author wzh * 判断订单是否可用该优惠券的订单信息 * */ @Data public class OrderItemCouponDto { /**商品类型*/ private Integer goodsType; /**商品标识*/ private String goodsId; /**sku标识*/ private String goodsSkuId; /**购买商品数量*/ private Integer goodsNum; /**订单金额*/ private BigDecimal total; } phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
@@ -1,11 +1,13 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; import com.hz.his.dto.card.CardQueryDto; import com.hz.his.dto.order.OrderCreateDto; import com.hz.his.dto.order.OrderPayDto; import com.hz.his.dto.order.OrderRefundDto; import com.hz.his.dto.order.OrdersTotalDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; /** * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 @@ -17,30 +19,30 @@ * 开放平台-新-新增订单更新至phis */ @PostMapping(value = "/newSync/order/add") Result createOrder(@RequestParam("params") String params); Result createOrder(@RequestBody OrderCreateDto params); /** * 开放平台-新-订单状态更新至phis */ @PostMapping(value = "/newSync/order/orderUpdate") Result updateOrderStatus(@RequestParam("params") String params); Result updateOrderStatus(@RequestBody OrdersTotalDto params); /** * 开放平台-新-订单结账更新至phis */ @PostMapping(value = "/newSync/order/pay") Result payOrderSuc(@RequestParam("params") String params); Result payOrderSuc(@RequestBody OrderPayDto params); /** * 开放平台-新-订单退款更新至phis */ @PostMapping(value = "/newSync/order/refund") Result refundOrder(@RequestParam("params") String params); Result refundOrder(@RequestBody OrderRefundDto params); /** * 开放平台-新-取消订单更新至phis */ @PostMapping(value = "/newSync/order/cancel") Result cancelOrder(@RequestParam("params") String params); Result cancelOrder(@RequestBody OrderRefundDto params); }