数据补召优化

This commit is contained in:
xy
2024-11-04 20:45:58 +08:00
parent e2f46ebcde
commit 851404f62d
9 changed files with 279 additions and 67 deletions

View File

@@ -6,7 +6,7 @@ import com.njcn.mq.message.AppFileMessage;
import com.njcn.zlevent.api.fallback.FileClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author xy
@@ -19,4 +19,7 @@ public interface FileFeignClient {
@PostMapping("/fileStream")
HttpResult<String> fileStream(AppFileMessage appFileMessage);
@PostMapping("/downloadMakeUpFile")
HttpResult<String> downloadMakeUpFile(@RequestParam("nDid") String nDid);
}

View File

@@ -36,6 +36,12 @@ public class FileClientFallbackFactory implements FallbackFactory<FileFeignClien
log.error("{}异常,降级处理,异常为:{}","解析文件流",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<String> downloadMakeUpFile(String nDid) {
log.error("{}异常,降级处理,异常为:{}","下载补召文件",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}