wangrenhuang
2022-10-13 067cfbcefb1af1ef92578ac7f186d931bf0fbdfc
我的项目优化
2个文件已添加
58 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/dto/deduction/DeductionDto.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipDeductionService.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/deduction/DeductionDto.java
New file
@@ -0,0 +1,23 @@
package com.hz.his.dto.deduction;
import lombok.Data;
/**
 * @ClassName DeductionDto
 * @Description 划扣
 * @Author Wrh
 * @Date 2022/10/13 10:37
 * @Version 1.0
 */
@Data
public class DeductionDto {
    /**划扣id*/
    private String deductionSingleId;
    /**用户id*/
    private String userId;
    /**是否客户确认(0:否,1:是)*/
    private Integer isCustomerConfirm;
}
phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipDeductionService.java
New file
@@ -0,0 +1,35 @@
package com.hz.his.feign.service.platform;
import com.hx.resultTool.Result;
import com.hz.his.dto.deduction.DeductionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
 */
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-deduction")
public interface SPhipDeductionService {
    /**
     * 客户全部确认划扣
     */
    @PostMapping(value = "/deduction/customer/confirm")
    Result customerConfirm(@RequestBody DeductionDto dto);
    /**
     * 客户全部确认划扣
     */
    @PostMapping(value = "/deduction/customer/confirm/all")
    Result customerConfirmAll(@RequestBody DeductionDto dto);
    /**
     * 客户确认划扣之前页面数据
     */
    @PostMapping(value = "/deduction/customer/confirm/before")
    Result customerConfirmBefore(@RequestBody DeductionDto dto);
}