Browse Source

危险作业导出

wangbo 2 months ago
parent
commit
7455002b26

+ 16 - 0
js-common/src/main/java/com/rongwei/safecommon/fegin/WFFeginClient.java

@@ -0,0 +1,16 @@
+package com.rongwei.safecommon.fegin;
+
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+
+import java.util.List;
+import java.util.Map;
+
+@FeignClient(value = "rw-workflow-server", fallback = WFFeginClientImpl.class)
+
+public interface WFFeginClient {
+    @GetMapping("comment/getCommentsByProcInstId/{procInstId}")
+    List<Map<String, Object>> getCommentsByProcInstId(@PathVariable("procInstId") String procInstId);
+
+}

+ 22 - 0
js-common/src/main/java/com/rongwei/safecommon/fegin/WFFeginClientImpl.java

@@ -0,0 +1,22 @@
+package com.rongwei.safecommon.fegin;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Component;
+
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+//@Component
+public class WFFeginClientImpl implements WFFeginClient{
+    private final Logger log = LoggerFactory.getLogger(this.getClass().getName());
+    @Override
+    public List<Map<String, Object>> getCommentsByProcInstId(String procInstId) {
+        log.error("{查询流程信息失败:{}}", procInstId);
+        return Collections.emptyList();
+    }
+
+
+
+
+}