HengbangController.java 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //package com.ydtech.modules.ins.controller;
  2. //
  3. //import com.fasterxml.jackson.core.JsonProcessingException;
  4. //import com.ydtech.aop.request.RequestSingleParam;
  5. //import com.ydtech.core.page.HttpResult;
  6. //import com.ydtech.exception.SystemException;
  7. //import com.ydtech.modules.ins.model.InsOrder;
  8. //import com.ydtech.modules.ins.model.hb.HengbangPolicyPrintResponse;
  9. //import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
  10. //import com.ydtech.modules.ins.service.InsHengbangService;
  11. //import io.swagger.annotations.Api;
  12. //import io.swagger.annotations.ApiOperation;
  13. //import org.springframework.web.bind.annotation.PostMapping;
  14. //import org.springframework.web.bind.annotation.RequestBody;
  15. //import org.springframework.web.bind.annotation.RequestMapping;
  16. //import org.springframework.web.bind.annotation.RestController;
  17. //import org.springframework.web.client.RestClientException;
  18. //
  19. //import java.io.IOException;
  20. //
  21. //@Api(tags = "恒邦财险")
  22. //@RestController
  23. //@RequestMapping("/ins/hengbang")
  24. //public class HengbangController {
  25. // private final InsHengbangService insHengbangService;
  26. //
  27. // public HengbangController(InsHengbangService insHengbangService) {
  28. // this.insHengbangService = insHengbangService;
  29. // }
  30. //
  31. // @PostMapping("/quote")
  32. // @ApiOperation(value = "报价")
  33. //// @MethodLogAnnotation(title = "恒邦-报价")
  34. // public HttpResult quote(@RequestBody YaQuoteInfoVo yaQuoteInfoVo) throws JsonProcessingException {
  35. // try {
  36. // return insHengbangService.quote(yaQuoteInfoVo);
  37. // } catch (RestClientException e) {
  38. // throw new SystemException("恒邦接口调用失败");
  39. // }
  40. // }
  41. //
  42. // @PostMapping("/audit")
  43. // @ApiOperation(value = "核保")
  44. //// @MethodLogAnnotation(title = "恒邦-核保")
  45. // public HttpResult audit(@RequestSingleParam(value = "orderno") String orderno) throws IOException {
  46. // try {
  47. // return insHengbangService.audit(orderno);
  48. // } catch (RestClientException e) {
  49. // throw new SystemException("恒邦接口调用失败");
  50. // }
  51. // }
  52. //
  53. // @PostMapping(value = "/submitImage")
  54. // @ApiOperation(value = "提交影像信息")
  55. // public HttpResult submitImage(@RequestSingleParam(value = "orderno") String orderno) {
  56. // try {
  57. // return insHengbangService.submitImage(orderno);
  58. // } catch (Exception e) {
  59. // throw new SystemException("提交影像失败");
  60. // }
  61. // }
  62. //
  63. // @PostMapping(value = "/getPolicyPrint")
  64. // @ApiOperation(value = "获取电子保单")
  65. // public HengbangPolicyPrintResponse getPolicyPrint(@RequestSingleParam(value = "orderno") String orderno) {
  66. // try {
  67. // return insHengbangService.getPolicyPrint(orderno);
  68. // } catch (Exception e) {
  69. // throw new SystemException("获取电子保单失败");
  70. // }
  71. // }
  72. //
  73. //}