phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
@@ -40,17 +40,6 @@ /*用户优惠券*/ private String couponNumberId; //-------------------------------------------------------------------- //对应phis表CouponReleaseRecord常量 /**操作人类型-员工*/ 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; } phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java
New file @@ -0,0 +1,44 @@ package com.hz.his.dto.coupon; import lombok.Data; import java.util.List; /** * 订单发放优惠券dto * @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表CouponReleaseRecord常量 /**操作人类型-员工*/ 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; } 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); }