phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/marketing/MarketingDto.java
New file @@ -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; } phis-feign/src/main/java/com/hz/his/dto/marketing/OrderCancelDto.java
New file @@ -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; } phis-feign/src/main/java/com/hz/his/dto/marketing/OrderDiscountDto.java
New file @@ -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; } phis-feign/src/main/java/com/hz/his/feign/service/marketing/SActivityService.java
New file @@ -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); }