From 1b0f36a7b1daec2d724a910a67cef38483a838e2 Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期二, 27 六月 2023 15:42:34 +0800 Subject: [PATCH] 1.新增订单发送优惠券dto 2.新增订单发送优惠券接口 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java | 7 +++ phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java | 13 ------ phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java | 44 ++++++++++++++++++++++ 3 files changed, 52 insertions(+), 12 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java index 3dab28a..a751cd0 100644 --- a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java +++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java @@ -40,17 +40,6 @@ /*鐢ㄦ埛浼樻儬鍒�*/ private String couponNumberId; - //-------------------------------------------------------------------- - //瀵瑰簲phis琛–ouponReleaseRecord甯搁噺 - /**鎿嶄綔浜虹被鍨�-鍛樺伐*/ - public static Integer OPERATOR_TYPE_EMPLOYEES = 0; - /**鎿嶄綔浜虹被鍨�-绠$悊鍛�*/ - public static Integer OPERATOR_TYPE_ADMIN = 1; - /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛鑷*/ - public static Integer OPERATOR_TYPE_USER = 2; - /**鎿嶄綔浜虹被鍨�-绯荤粺*/ - public static Integer OPERATOR_TYPE_SYSTEM = 3; - /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛璁㈠崟璐拱*/ - public static Integer OPERATOR_TYPE_USER_ORDER = 4; + } diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java new file mode 100644 index 0000000..8c33864 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java @@ -0,0 +1,44 @@ +package com.hz.his.dto.coupon; + +import lombok.Data; + +import java.util.List; + +/** + * 璁㈠崟鍙戞斁浼樻儬鍒竏to + * @USER: fhx + * @DATE: 2023/6/27 + **/ +@Data +public class OrderSendCouponDto { + + /**鐢ㄦ埛淇℃伅*/ + UserArrDto userArrDto; + + /** 浼樻儬鍒镐俊鎭垪琛� */ + private List<CouponItemDto> itemDtoList; + + /**鏉ユ簮缂栫爜,鍟嗘埛鑷畾涔夋湇鍔℃潵婧愭爣璇�*/ + private String appIdCode; + /**鎿嶄綔浜烘爣璇�*/ + private String operatorId; + /**鎿嶄綔浜哄悕绉�*/ + private String operatorName; + /**鎿嶄綔浜虹被鍨�*/ + private Integer operatorType; + + + //-------------------------------------------------------------------- + //瀵瑰簲phis琛–ouponReleaseRecord甯搁噺 + /**鎿嶄綔浜虹被鍨�-鍛樺伐*/ + public static Integer OPERATOR_TYPE_EMPLOYEES = 0; + /**鎿嶄綔浜虹被鍨�-绠$悊鍛�*/ + public static Integer OPERATOR_TYPE_ADMIN = 1; + /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛鑷*/ + public static Integer OPERATOR_TYPE_USER = 2; + /**鎿嶄綔浜虹被鍨�-绯荤粺*/ + public static Integer OPERATOR_TYPE_SYSTEM = 3; + /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛璁㈠崟璐拱*/ + public static Integer OPERATOR_TYPE_USER_ORDER = 4; + +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java index edd3c19..2c16814 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java @@ -2,6 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.coupon.CouponDto; +import com.hz.his.dto.coupon.OrderSendCouponDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -49,4 +50,10 @@ */ @PostMapping(value = "/coupon/check/coupon") Result checkCoupon(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-璁㈠崟鍙戞斁浼樻儬鍒� + */ + @PostMapping(value = "/coupon/order/send/coupon") + Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); } \ No newline at end of file -- Gitblit v1.8.0