From d3af5bb2ab45562311b1d5c34c31f955d437ded4 Mon Sep 17 00:00:00 2001 From: rx <auster_i@163.com> Date: 星期二, 24 十月 2023 17:37:25 +0800 Subject: [PATCH] 新增营销助手申请其他类型优惠券 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponQuotaConfigService.java | 22 +++++++++++ phis-feign/src/main/java/com/hz/his/feign/service/phis/SOrganizationDeptService.java | 22 +++++++++++ phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java | 20 ++++++++++ phis-feign/src/main/java/com/hz/his/dto/coupon/CouponAddDto.java | 22 +++++++++++ phis-feign/src/main/java/com/hz/his/dto/coupon/CouponSendItemDto.java | 5 ++ phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java | 8 ++++ phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java | 3 + 7 files changed, 102 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponAddDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponAddDto.java new file mode 100644 index 0000000..5d4edad --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponAddDto.java @@ -0,0 +1,22 @@ +package com.hz.his.dto.coupon; + +import com.hz.his.dto.PageDto; +import lombok.Data; + +import java.util.List; +import java.util.Map; + +/** + * 浼樻儬鍒告柊澧炲弬鏁� + */ +@Data +public class CouponAddDto extends PageDto { + /**浼樻儬鍒告爣棰� */ + private String title; + /**鐢宠绫诲瀷**/ + private Integer type; + /**鎸囧畾椤圭洰 鎴栬�� 閫氱敤椤圭洰 ID,name **/ + private List<Map<String,Object>> serviceIds; + /**闂ㄥ簵ID*/ + private String shopId; +} 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 6ff579f..2e30c02 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 @@ -56,4 +56,7 @@ private String couponTypeId; /** 鍩虹鍒嗙被-浼樻儬鍒�*/ private String type; + + /** 浼樻儬鍒窱D*/ + private List<String> couponIdList; } diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponSendItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponSendItemDto.java index 34912e0..d18fdee 100644 --- a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponSendItemDto.java +++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponSendItemDto.java @@ -25,4 +25,9 @@ private String costDeptName; /**褰掑睘鎴愭湰閮ㄩ棬鍚嶇О -闈炲繀濉� */ private String ascrCostDeptName; + + /**鍙戞斁绫诲瀷 */ + private Integer belongType; + /**鍙戞斁闂ㄥ簵*/ + private String sendShopId; } diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java index dc62742..110943b 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java @@ -149,4 +149,12 @@ */ @PostMapping(value = "/couponType/list") Result couponTypeList(@RequestBody(required = false) CouponTypeDto couponTypeDto); + + + /** + * 鏌ヨ浼樻儬鍒稿墿浣欐暟閲� 澶氫釜 + */ + @PostMapping(value = "/check/coupon/surplus/num") + Result checkCouponSurplusNum(@RequestBody(required = false) CouponDto dto); + } diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SOrganizationDeptService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SOrganizationDeptService.java new file mode 100644 index 0000000..70e3e92 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SOrganizationDeptService.java @@ -0,0 +1,22 @@ +package com.hz.his.feign.service.phis; + +import com.hx.resultTool.Result; +import com.hz.his.dto.PageDto; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "organization") +public interface SOrganizationDeptService { + + + /** + * 鑾峰彇缁勭粐鏋舵瀯瀛楀吀鍒楄〃 + */ + @PostMapping(value = "organization/dept/list") + Result getList(@RequestBody(required = false) PageDto pageDto); + +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponQuotaConfigService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponQuotaConfigService.java new file mode 100644 index 0000000..3584996 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponQuotaConfigService.java @@ -0,0 +1,22 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.coupon.CouponAddDto; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-coupon-quota-config") +public interface SPhipCouponQuotaConfigService { + + /** + * 寮�鏀惧钩鍙�-鏍¢獙浼樻儬鍒告槸鍚﹀瓨鍦� 鍒涘缓鎴栬�呮洿鏂� + */ + @PostMapping(value = "/coupon/quota/config/info") + Result getConfigInfo(@RequestBody CouponAddDto couponAddDto); + + +} \ No newline at end of file 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 d9da89b..7e8b001 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 @@ -1,6 +1,7 @@ package com.hz.his.feign.service.platform; import com.hx.resultTool.Result; +import com.hz.his.dto.coupon.CouponAddDto; import com.hz.his.dto.coupon.CouponDto; import com.hz.his.dto.coupon.CouponSendDto; import com.hz.his.dto.coupon.OrderSendCouponDto; @@ -69,4 +70,23 @@ */ @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); + + /** + * 寮�鏀惧钩鍙�-鏍¢獙浼樻儬鍒告槸鍚﹀瓨鍦� 鍒涘缓鎴栬�呮洿鏂� + */ + @PostMapping(value = "/coupon/check/create") + Result couponCheckCreate(@RequestBody CouponAddDto couponAddDto); + + /** + * 寮�鏀惧钩鍙�-鑾峰彇浼樻儬鍒搁檺棰濋厤缃� 鎬荤殑 + */ + @PostMapping(value = "/coupon/use/quato/info/by/total") + Result couponUseQuotaInfoByTotal(@RequestBody CouponAddDto couponAddDto); + + /** + * 寮�鏀惧钩鍙�-鑾峰彇浼樻儬鍒搁檺棰濋厤缃� 褰撳墠鏈� + */ + @PostMapping(value = "/coupon/use/quato/info/by/month") + Result couponUseQuotaInfoByMonth(@RequestBody CouponAddDto couponAddDto); + } \ No newline at end of file -- Gitblit v1.8.0