From 562cb4e9395a900348e872202bb46fcf45901f07 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期一, 24 十月 2022 18:47:33 +0800
Subject: [PATCH] 营销助手微服务接口

---
 phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java |   34 +++++++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java           |   24 ++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java             |   16 ++++++++
 phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java               |   32 ++++++++++++++++
 4 files changed, 106 insertions(+), 0 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java
new file mode 100644
index 0000000..2248508
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java
@@ -0,0 +1,32 @@
+package com.hz.his.dto.marketing;
+
+import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
+import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
+import com.hx.common.annotations.MysqlHexAes;
+import lombok.Data;
+
+/**
+ * 钀ラ攢鍔╂墜璇锋眰鍏叡鍙傛暟
+ * @author fwq
+ */
+@Data
+public class MarketingDto{
+
+    /*******************蹇呭~椤�*************************/
+    /**鎿嶄綔浜烘爣璇�(鍛樺伐)*/
+    private String operatorId;
+    /**鎿嶄綔浜哄悕绉�*/
+    private String opName;
+    /**鎿嶄綔浜洪棬搴楁爣璇�*/
+    private String shopId;
+    /**鎿嶄綔浜洪棬搴楀悕绉�*/
+    private String shopName;
+    /**鎿嶄綔浜鸿鑹叉爣璇�(employee_role_type)*/
+    private String roleId;
+    /**鎿嶄綔浜鸿鑹插敮涓�鏍囪瘑*/
+    private String roleUniqueStr;
+    /**瀹㈡埛鏍囪瘑*/
+    private String userId;
+    /**鐢宠澶囨敞淇℃伅*/
+    private String remark;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java
new file mode 100644
index 0000000..dea20b9
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java
@@ -0,0 +1,16 @@
+package com.hz.his.dto.marketing;
+
+import lombok.Data;
+
+/**
+ * 钀ラ攢鍔╂墜鍙栨秷璁㈠崟鐢宠鍏ュ弬
+ * @author fwq
+ */
+@Data
+public class OrderCancelDto extends MarketingDto{
+    /*******************蹇呭~椤�(娉ㄦ剰缁ф壙鐨勫叕鍏辩被MarketingDto)*************************/
+    /**璁㈠崟鏍囪瘑*/
+    private String orderId;
+    /**璁㈠崟鍙�*/
+    private String orderNo;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java
new file mode 100644
index 0000000..69014ae
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java
@@ -0,0 +1,24 @@
+package com.hz.his.dto.marketing;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * 钀ラ攢鍔╂墜璁㈠崟鎶樻墸鐢宠鍏ュ弬
+ * @author fwq
+ */
+@Data
+public class OrderDiscountDto extends MarketingDto{
+    /*******************蹇呭~椤�(娉ㄦ剰缁ф壙鐨勫叕鍏辩被MarketingDto)*************************/
+    /**璁㈠崟鏍囪瘑*/
+    private String orderId;
+    /**璁㈠崟鍙�*/
+    private String orderNo;
+    /**鍘熻鍗曟�婚噾棰�*/
+    private BigDecimal totalPrice;
+    /**璁㈠崟鎶樻墸(鍗曚綅:鐧惧垎姣�)*/
+    private BigDecimal discountNum;
+
+
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java b/phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java
new file mode 100644
index 0000000..147f424
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java
@@ -0,0 +1,34 @@
+package com.hz.his.feign.service.marketing;
+
+import com.hx.resultTool.Result;
+import com.hz.his.dto.marketing.OrderCancelDto;
+import com.hz.his.dto.marketing.OrderDiscountDto;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.math.BigDecimal;
+
+/**
+ * 钀ラ攢鍔╂墜
+ */
+@FeignClient(name="marketing-assistant-user",path = "/m_assistant",contextId = "m_order")
+public interface SActivityService {
+
+    /**
+     * 璁㈠崟鎶樻墸鐢宠
+     */
+    @PostMapping(value = "/order/apply/discount")
+    Result applyOrderDiscount(@RequestBody OrderDiscountDto orderDiscountDto);
+
+
+    /**
+     * 璁㈠崟鍙栨秷鐢宠
+     */
+    @PostMapping(value = "/order/apply/cancel")
+    Result applyOrderCancel(@RequestBody OrderCancelDto orderCancelDto);
+
+
+
+}

--
Gitblit v1.8.0