phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java
New file @@ -0,0 +1,25 @@ package com.hz.his.dto.coupon; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 优惠券校验扩展 * @author fwq */ @Data public class CouponCheckDto { /**用户优惠券码标识集合*/ private List<String> couponNumberIdList; /**商品总金额*/ private BigDecimal total; /**商品总件数*/ private Integer itemNum; /**商品信息*/ private List<CouponCheckItemDto> goodsList; } phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java
New file @@ -0,0 +1,49 @@ package com.hz.his.dto.coupon; import lombok.Data; import java.math.BigDecimal; import java.util.List; /** * 优惠券校验-商品信息 */ @Data public class CouponCheckItemDto{ /**商品sku标识*/ private String skuId; /**商品类型*/ private Integer goodsType; /**商品所属分类标识集合*/ private List<String> typeIdList; /**商品phis标识*/ private String hisId; /**商品phis类型*/ private String hisType; /**单个商品金额*/ private BigDecimal price; /**购买数量*/ private Integer buyNum; /**类型-项目*/ public static final String TYPE_PROJECT = "project"; /**类型-商品/药品*/ public static final String TYPE_RETAIL = "retail"; /**类型-卡项*/ public static final String TYPE_CARD = "card"; /**类型-促销*/ public static final String TYPE_PROMOTION = "promotion"; /**类型-增值金*/ public static final String TYPE_INCREMENT = "increment"; /**类型-储值金*/ public static final String TYPE_STORED = "stored"; /**类型-积分*/ public static final String TYPE_INTEGRAL = "integral"; /**类型-团购商品*/ public static final String TYPE_COMMODITY = "commodity"; /**类型-积分商品*/ public static final String TYPE_GOODS_INTEGRAL = "goods_integral"; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
@@ -2,10 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.coupon.CouponDetailDto; import com.hz.his.dto.coupon.CouponDto; import com.hz.his.dto.coupon.CouponGoodsDto; import com.hz.his.dto.coupon.CouponListDetailDto; import com.hz.his.dto.coupon.*; import com.hz.his.dto.dictionaries.DictionariesDto; import com.hz.phis.dt.marketingCoupon.MarketingCouponDto; import org.springframework.cloud.openfeign.FeignClient; @@ -102,4 +99,11 @@ */ @PostMapping(value = "/marketing/data") Result marketingData(@RequestBody(required = false) MarketingCouponDto marketingCouponDto); /** * 优惠券统一校验接口 */ @PostMapping(value = "/coupon/unify/check") Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto); }