phis-feign/src/main/java/com/hz/his/dto/activity/ActivityDto.java
@@ -12,5 +12,10 @@ public class ActivityDto extends PageDto { /**门店标识 */ private String shopId; /**团购商品类型标识 */ private String typeId; /**团购活动标识 */ private String groupBuyId; } phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
@@ -18,12 +18,14 @@ private String operatorId; /**操作人名称*/ private String operatorName; /**活动标识*/ private String groupBuyId; /**发送记录*/ private CouponRecordDto couponReleaseRecordItem; /**用户详情*/ private List<UserArrDto> userArr; private List<CouponItemDto> itemDtoList; /**修改时间*/ private String updateTime; phis-feign/src/main/java/com/hz/his/dto/coupon/CouponGoodsDto.java
@@ -10,12 +10,14 @@ * 商品优惠券扩展 * */ @Data public class CouponGoodsDto { public class CouponGoodsDto { /**用户标识*/ private String userId; /**标识*/ private String commonId; /**优惠券标识*/ private String couponId; /**总金额*/ phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java
New file @@ -0,0 +1,18 @@ package com.hz.his.dto.coupon; import lombok.Data; /** * @author fwq * 发送优惠券dto */ @Data public class CouponItemDto { /**优惠券标识*/ private String couponId; /**标识父标识字符串逗号分隔*/ private Integer num; } phis-feign/src/main/java/com/hz/his/dto/employee/EmpDocDto.java
@@ -15,4 +15,6 @@ private String shopId; /**字典资质编码*/ private String qualificationNo; /**是否上架展示*/ private Integer isUp; } phis-feign/src/main/java/com/hz/his/dto/user/project/UserPackageDto.java
@@ -12,12 +12,14 @@ @Data public class UserPackageDto extends PageDto { /**标签标识集合*/ private List<String> labelIdList; /**标签名称集合*/ private List<String> labelNameList; /**项目标识集合*/ private List<String> projectIdList; /**会员等级名称集合*/ private List<String> memberLevelList; /**id集合*/ private List<String> idList; /**用户创建时间开始*/ private String createStartTime; phis-feign/src/main/java/com/hz/his/feign/service/phis/SActivityService.java
New file @@ -0,0 +1,50 @@ package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import java.math.BigDecimal; /** * @ClassName SActivityController * @Description 活动规则 * @Author Wrh * @Date 2022/8/8 17:36 * @Version 1.0 */ @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "activity") public interface SActivityService { /** * 活动规则详情 * @param id 活动标识 * @return Result */ @PostMapping(value = "/activity/detail") Result getActivityDetail(@RequestParam("id") String id); /** * 活动规则列表 * @param shoId 门店标识 * @return Result */ @PostMapping(value = "/activity/shopId/list") Result getActivityList(@RequestParam("shoId") String shoId); /** * 校验用户是否符合活动规则 * @param userId 用户标识 * @param id 活动标识 * @param ordersTotal 订单总金额 * @return Result */ @PostMapping(value = "/activity/list") Result check(@RequestParam("userId") String userId,@RequestParam("id") String id,@RequestParam("ordersTotal") BigDecimal ordersTotal); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
@@ -50,4 +50,12 @@ @PostMapping(value = "/goods/canUsed/coupon") Result goodsCanUsedCoupon(@RequestBody CouponGoodsDto couponGoodsDto); /** * 用户是否领取过团购活动优惠券 */ @PostMapping(value = "/check/group/coupon") Result checkGroupCoupon(@RequestBody CouponGoodsDto couponGoodsDto); } phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java
@@ -223,7 +223,7 @@ Result userAppearanceInfo(@RequestParam("appearanceId") String appearanceId); /** * 获取人群包列表(可传筛选的参数:会员等级,做过的项目,拥有的标签,会员创建时间,最后一次消费时间,最后一次到店时间) * 获取人群包列表(可传筛选的参数:会员等级,做过的项目,会员创建时间,最后一次消费时间,最后一次到店时间) * */ @PostMapping(value = "/user/package/list") Result userPackageList(@RequestBody UserPackageDto userPackageDto); phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipMeiTuanOrderService.java
New file @@ -0,0 +1,24 @@ package com.hz.his.feign.service.platform; import com.alibaba.fastjson.JSONObject; import com.hx.resultTool.Result; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * @Author */ @FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-meituan") public interface SPhipMeiTuanOrderService { /** * 美团订单推送crm验证 * @param jsonObject * orderId 美团订单id * phone 手机号 * @return */ @PostMapping(value = "/meituan/order/sendCrm") Result sendCrm(@RequestBody JSONObject jsonObject); }