zhangxu
2022-08-09 dd0a3f9a6612d0c419e36260836b87f57a9bd2d3
Merge remote-tracking branch 'origin/master'
1个文件已删除
1个文件已添加
76 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/feign/service/phis/SActivityController.java 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/phis/SActivityService.java 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/phis/SActivityController.java
File was deleted
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/list")
    Result getActivityList(@RequestParam("shoId") String shoId);
    /**
     * 校验用户是否符合活动规则
     * @param userId 用户标识
     * @param id 活动标识
     * @param ordersTotal 订单总金额
     * @return Result
     */
    @PostMapping(value = "/activity/list")
    Result getActivityList(@RequestParam("userId") String userId,@RequestParam("id") String id,@RequestParam("ordersTotal") BigDecimal ordersTotal);
}