wzh
2022-08-02 0937f189411323679bd7810a32551b0bf1dcf9a0
移除依赖,更换接收类
5个文件已添加
2个文件已修改
221 ■■■■■ 已修改文件
phis-feign/pom.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/pom.xml
@@ -38,12 +38,6 @@
            <artifactId>spring-cloud-starter-loadbalancer</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hx.gitee</groupId>
            <artifactId>phi_platform_common</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
    </dependencies>
    <build>
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,10 +1,10 @@
package com.hz.his.feign.service.platform;
import com.hx.phiappt.model.order.OrdersTotal;
import com.hx.phip.dto.order.OrderCreateDto;
import com.hx.phip.dto.order.OrderPayDto;
import com.hx.phip.dto.order.OrderRefundDto;
import com.hx.resultTool.Result;
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;
@@ -25,7 +25,7 @@
     * 开放平台-新-订单状态更新至phis
     */
    @PostMapping(value = "/newSync/order/orderUpdate")
    Result updateOrderStatus(@RequestBody OrdersTotal params);
    Result updateOrderStatus(@RequestBody OrdersTotalDto params);
    /**
     * 开放平台-新-订单结账更新至phis