CdssHystrix.java 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. package com.diagbot.client.hystrix;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.diagbot.client.CdssClient;
  4. import com.diagbot.dto.RespDTO;
  5. import com.diagbot.entity.MappingConfig;
  6. import com.diagbot.entity.wrapper.MappingConfigWrapper;
  7. import com.diagbot.vo.IdListVO;
  8. import com.diagbot.vo.IdVO;
  9. import com.diagbot.vo.MappingConfigPageVO;
  10. import com.diagbot.vo.MappingConfigVO;
  11. import feign.FeignException;
  12. import lombok.extern.slf4j.Slf4j;
  13. import org.springframework.http.MediaType;
  14. import org.springframework.stereotype.Component;
  15. import org.springframework.web.bind.annotation.PostMapping;
  16. import org.springframework.web.bind.annotation.RequestBody;
  17. import org.springframework.web.bind.annotation.RequestParam;
  18. import org.springframework.web.bind.annotation.RequestPart;
  19. import org.springframework.web.multipart.MultipartFile;
  20. import javax.servlet.http.HttpServletResponse;
  21. import javax.validation.Valid;
  22. import java.util.List;
  23. /**
  24. * @Description:
  25. * @Author:zhaops
  26. * @time: 2021/6/21 15:33
  27. */
  28. @Component
  29. @Slf4j
  30. public class CdssHystrix implements CdssClient {
  31. @Override
  32. public void exportExcelModule(@Valid MappingConfigVO mappingConfigVO) {
  33. log.error("【hystrix】调用{}异常", "exportExcelModule");
  34. }
  35. @Override
  36. public RespDTO<Boolean> dataVerify(@RequestParam("file") MultipartFile file,
  37. @RequestParam("type") Integer type) {
  38. log.error("【hystrix】调用{}异常", "dataVerify");
  39. return null;
  40. }
  41. @Override
  42. public void precDataMatch(MultipartFile file, HttpServletResponse response, Integer type) {
  43. log.error("【hystrix】调用{}异常", "precDataMatch");
  44. }
  45. @Override
  46. public RespDTO<List<MappingConfigWrapper>> precDataMatch_remote(@RequestPart("file") MultipartFile file,
  47. @RequestParam("type") Integer type) throws FeignException {
  48. log.error("【hystrix】调用{}异常", "precDataMatch_remote");
  49. return null;
  50. }
  51. @Override
  52. public RespDTO<Boolean> importExcelDataVerify(@RequestPart("file") MultipartFile file,
  53. @RequestParam("hospitalId") Long hospitalId,
  54. @RequestParam("type") Integer type,
  55. @RequestParam("uesrId") String userId){
  56. log.error("【hystrix】调用{}异常", "importExcelDataVerify");
  57. return null;
  58. }
  59. @Override
  60. public RespDTO<Boolean> importExcel(@RequestPart("file") MultipartFile file,
  61. @RequestParam("hospitalId") Long hospitalId,
  62. @RequestParam("type") Integer type,
  63. @RequestParam("uesrId") String userId) {
  64. log.error("【hystrix】调用{}异常", "importExcel");
  65. return null;
  66. }
  67. /**
  68. * 数据导入
  69. *
  70. * @param file
  71. * @param hospitalId
  72. * @param type
  73. * @param userId
  74. */
  75. @Override
  76. public RespDTO<List<MappingConfigWrapper>> importExcel_remote(@RequestPart("file") MultipartFile file,
  77. @RequestParam("hospitalId") Long hospitalId,
  78. @RequestParam("type") Integer type,
  79. @RequestParam("uesrId") String userId){
  80. log.error("【hystrix】调用{}异常", "importExcel_remote");
  81. return null;
  82. }
  83. @Override
  84. public RespDTO<List<MappingConfigWrapper>> exportExcel_remote(@RequestBody @Valid MappingConfigPageVO mappingConfigPageVO) {
  85. log.error("【hystrix】调用{}异常", "exportExcel_remote");
  86. return null;
  87. }
  88. @Override
  89. public RespDTO<Page<MappingConfigWrapper>> getPage(@Valid MappingConfigPageVO mappingConfigPageVO) {
  90. log.error("【hystrix】调用{}异常", "getPage");
  91. return null;
  92. }
  93. @Override
  94. public RespDTO<MappingConfigWrapper> getRecord(@Valid IdVO idVO) {
  95. log.error("【hystrix】调用{}异常", "getRecord");
  96. return null;
  97. }
  98. @Override
  99. public RespDTO<Boolean> isExistRecord(@Valid MappingConfig mappingConfig) {
  100. log.error("【hystrix】调用{}异常", "isExistRecord");
  101. return null;
  102. }
  103. @Override
  104. public RespDTO<List<MappingConfigWrapper>> getRelatedMapping(@Valid MappingConfigVO mappingConfigVO) {
  105. log.error("【hystrix】调用{}异常", "getRelatedMapping");
  106. return null;
  107. }
  108. @Override
  109. public RespDTO<Boolean> saveOrUpdateRecord(@Valid MappingConfig mappingConfig) {
  110. log.error("【hystrix】调用{}异常", "saveOrUpdateRecord");
  111. return null;
  112. }
  113. @Override
  114. public RespDTO<Boolean> deleteRecord(@Valid IdVO idVO) {
  115. log.error("【hystrix】调用{}异常", "deleteRecord");
  116. return null;
  117. }
  118. @Override
  119. public RespDTO<Boolean> deleteRecords(@Valid IdListVO idListVO) {
  120. log.error("【hystrix】调用{}异常", "deleteRecords");
  121. return null;
  122. }
  123. }