段飞宇
1 year ago
13 changed files with 189 additions and 136 deletions
@ -1,4 +1,4 @@
|
||||
package com.hnac.hzims.middle.processflow.constant; |
||||
package com.hnac.hzims.common.logs.constant; |
||||
|
||||
/** |
||||
* 开票常量类 |
@ -0,0 +1,43 @@
|
||||
package com.hnac.hzims.common.logs.fegin; |
||||
|
||||
import com.hnac.hzims.common.logs.fegin.fallback.ProcessDictFeignServiceFallback; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.stereotype.Repository; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 15:16 |
||||
*/ |
||||
@Repository |
||||
@FeignClient(value = "hzims-middle", fallback = ProcessDictFeignServiceFallback.class) |
||||
public interface ProcessDictFeignService { |
||||
|
||||
/** |
||||
* 获取工作票工作票唯一ID |
||||
* |
||||
* @param staff |
||||
* @param typeInstrument |
||||
* @param createTime |
||||
* @return |
||||
*/ |
||||
@GetMapping("/process-dict/getTicketByCode") |
||||
public String getTicketByCode(@RequestParam("staff") String staff, |
||||
@RequestParam("typeInstrument") String typeInstrument, |
||||
@RequestParam("createTime") LocalDateTime createTime); |
||||
|
||||
|
||||
/** |
||||
* 根据工作流key获取工作流value |
||||
* |
||||
* @param dictKey |
||||
* @return |
||||
*/ |
||||
@GetMapping("/process-dict/selectDictValueByKey") |
||||
public String selectDictValueByKey(@RequestParam("dictKey") String dictKey); |
||||
} |
@ -0,0 +1,43 @@
|
||||
package com.hnac.hzims.common.logs.fegin.fallback; |
||||
|
||||
import com.hnac.hzims.common.logs.fegin.ProcessDictFeignService; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @Author WL |
||||
* @Version v1.0 |
||||
* @Serial 1.0 |
||||
* @Date 2023/6/15 15:17 |
||||
*/ |
||||
@Slf4j |
||||
@Service |
||||
public class ProcessDictFeignServiceFallback implements ProcessDictFeignService { |
||||
/** |
||||
* 获取工作票工作票唯一ID |
||||
* |
||||
* @param staff |
||||
* @param typeInstrument |
||||
* @param createTime |
||||
* @return |
||||
*/ |
||||
@Override |
||||
public String getTicketByCode(String staff, String typeInstrument, LocalDateTime createTime) { |
||||
log.error("获取工作票工作票唯一ID 熔断措施"); |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* 根据工作流key获取工作流value |
||||
* |
||||
* @param dictKey |
||||
* @return |
||||
*/ |
||||
@Override |
||||
public String selectDictValueByKey(String dictKey) { |
||||
log.error("根据工作流key获取工作流value 熔断措施"); |
||||
return null; |
||||
} |
||||
} |
Loading…
Reference in new issue