Commit 95b0820e by 谢海旭

新增重推工单信息到包活干系统抽象方法

1 parent 40d06ab5
...@@ -4,8 +4,10 @@ import cn.com.glsx.stdinterface.dto.*; ...@@ -4,8 +4,10 @@ import cn.com.glsx.stdinterface.dto.*;
import cn.com.glsx.stdinterface.factory.WorkOrderFallbackFactory; import cn.com.glsx.stdinterface.factory.WorkOrderFallbackFactory;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
...@@ -110,4 +112,13 @@ public interface WorkOrderClient { ...@@ -110,4 +112,13 @@ public interface WorkOrderClient {
*/ */
@PostMapping(value = "/syncZhongLiData") @PostMapping(value = "/syncZhongLiData")
R syncZhongLiData(@RequestBody WorkOrderDetailDTO workOrderDTO); R syncZhongLiData(@RequestBody WorkOrderDetailDTO workOrderDTO);
/**
* 重推工单信息到包活干系统
*
* @param id 工单id
* @return
*/
@GetMapping(value = "/repushToBhg")
R repushToBhg(@RequestParam("id") Long id);
} }
...@@ -81,4 +81,10 @@ public class WorkOrderFallbackImpl implements WorkOrderClient { ...@@ -81,4 +81,10 @@ public class WorkOrderFallbackImpl implements WorkOrderClient {
log.warn("syncZhongLiData 熔断啦 {}", cause.getMessage()); log.warn("syncZhongLiData 熔断啦 {}", cause.getMessage());
return R.ok("服务异常"); return R.ok("服务异常");
} }
@Override
public R repushToBhg(Long id) {
log.warn("repushToBhg 熔断啦 {}", cause.getMessage());
return R.ok("服务异常");
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!