From 0937f189411323679bd7810a32551b0bf1dcf9a0 Mon Sep 17 00:00:00 2001 From: wzh <zhuhaow@phiskin.com> Date: 星期二, 02 八月 2022 16:19:15 +0800 Subject: [PATCH] 移除依赖,更换接收类 --- phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java | 29 +++++++ phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java | 24 ++++++ phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java | 24 ++++++ phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java | 27 ++++++ phis-feign/pom.xml | 6 - phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java | 10 +- phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java | 101 +++++++++++++++++++++++++ 7 files changed, 210 insertions(+), 11 deletions(-) diff --git a/phis-feign/pom.xml b/phis-feign/pom.xml index e62d639..2e714af 100644 --- a/phis-feign/pom.xml +++ b/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> diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java new file mode 100644 index 0000000..e204f8f --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCreateDto.java @@ -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; + +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java new file mode 100644 index 0000000..1e77c83 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderDeveloperDto.java @@ -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锛圤rdersTotal锛� */ + 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; + } +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java new file mode 100644 index 0000000..034edb7 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayDto.java @@ -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; + /** 浼樻儬鍒竔d */ + private String userCouponId; + /** 鐢ㄦ埛璧勯噾淇℃伅 */ + private String userMoney; + +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java new file mode 100644 index 0000000..e68ba2b --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderCanUseCouponDto.java @@ -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; +} diff --git a/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java new file mode 100644 index 0000000..9db72be --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/OrderItemCouponDto.java @@ -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; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java index e3819b6..5827a98 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java +++ b/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); /** * 寮�鏀惧钩鍙�-鏂�-璁㈠崟缁撹处鏇存柊鑷硃his -- Gitblit v1.8.0