phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java
@@ -8,7 +8,7 @@ /** * @author wzh * 商品可用优惠券扩展 * 商品SKU可用优惠券扩展 * */ @Data public class GoodsCanUseCouponDto extends PageDto { @@ -22,4 +22,6 @@ private String hisGoodType; /**商品金额*/ private BigDecimal price; /**数量*/ private Integer num; } phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsUsedCouponDto.java
New file @@ -0,0 +1,25 @@ package com.hz.his.dto.user.coupon; import com.hz.his.dto.PageDto; import lombok.Data; import java.util.List; /** * @author wzh * 商品SPU可用优惠券扩展 * */ @Data public class GoodsUsedCouponDto extends PageDto { /**用户标识*/ private String userId; /**商品类型*/ private Integer goodType; /**his商品类型*/ private String hisGoodType; /**平台*/ private String platform; /**sku标识*/ private List<GoodsCanUseCouponDto> goodsCanUseCouponDtoList; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
@@ -50,12 +50,18 @@ Result couponCount(@RequestParam("couponId") String couponId); /** * 优惠券使用情况 * 优惠券使用情况列表 */ @PostMapping(value = "/coupon/used/detail") Result couponUsedDetail(@RequestBody CouponListDetailDto couponListDetailDto); /** * 用户优惠券情况 */ @PostMapping(value = "/coupon/number/detail") Result couponNumberDetail(@RequestBody CouponListDetailDto couponListDetailDto); /** * 用户是否领取过团购活动优惠券 */ @PostMapping(value = "/check/group/coupon") phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java
@@ -7,10 +7,7 @@ import com.hz.his.dto.user.UserLevelDto; import com.hz.his.dto.user.card.UserCardDto; import com.hz.his.dto.user.card.UserCardUsedDto; import com.hz.his.dto.user.coupon.GoodsCanUseCouponDto; import com.hz.his.dto.user.coupon.OrderCanUseCouponDto; import com.hz.his.dto.user.coupon.UserCanUseCouponDto; import com.hz.his.dto.user.coupon.UserCouponDto; import com.hz.his.dto.user.coupon.*; import com.hz.his.dto.user.money.*; import com.hz.his.dto.user.label.UserLabelDto; import com.hz.his.dto.user.packages.UserPackageDto; @@ -120,7 +117,7 @@ * 获取商品可用优惠券 * */ @PostMapping(value = "/goods/can/use/coupon") Result goodsCanUseCoupon(@RequestBody GoodsCanUseCouponDto goodsCanUseCouponDto); Result goodsCanUseCoupon(@RequestBody GoodsUsedCouponDto goodsUsedCouponDto); /** * 判断订单是否可用该优惠券 phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java
@@ -38,4 +38,10 @@ @PostMapping(value = "/coupon/get/Coupon") Result getCoupon(@RequestBody CouponDto dto); /** * 开放平台-作废用户优惠券 */ @PostMapping(value = "/coupon/invalid/user/coupon") Result invalidCouponNumber(@RequestBody CouponDto couponDto); }