RenbaoController.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //package com.ydtech.modules.ins.controller;
  2. //
  3. //import com.fasterxml.jackson.core.JsonProcessingException;
  4. //import com.ydtech.core.page.HttpResult;
  5. //import com.ydtech.exception.SystemException;
  6. //import com.ydtech.modules.ins.model.InsOrder;
  7. //import com.ydtech.modules.ins.model.ya.CarModel_Req;
  8. //import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
  9. //import com.ydtech.modules.ins.service.InsRenbaoService;
  10. //import io.swagger.annotations.Api;
  11. //import io.swagger.annotations.ApiOperation;
  12. //import org.springframework.web.bind.annotation.*;
  13. //import org.springframework.web.client.RestClientException;
  14. //import org.springframework.web.client.RestTemplate;
  15. //
  16. //import java.io.IOException;
  17. //
  18. //@Api(tags = "人保报价")
  19. //@RestController
  20. //@RequestMapping("/api/insRenbao")
  21. //public class RenbaoController {
  22. //
  23. // private final InsRenbaoService insRenbaoService;
  24. //
  25. // public RenbaoController(InsRenbaoService insRenbaoService) {
  26. // this.insRenbaoService = insRenbaoService;
  27. // }
  28. //
  29. // @GetMapping("/licensePlateQuery")
  30. // @ApiOperation("车牌号查询车辆信息接口")
  31. // public HttpResult licensePlateQuery(@RequestParam(value = "licensePlate") String licensePlate) throws Exception {
  32. // return insRenbaoService.licensePlateQuery(licensePlate);
  33. // }
  34. //
  35. // @PostMapping("/modelsQuery")
  36. // @ApiOperation("车型查询接口")
  37. // public HttpResult modelsQuery(@RequestBody CarModel_Req carModelReq) {
  38. // return insRenbaoService.modelsQuery(carModelReq);
  39. // }
  40. //
  41. // @PostMapping("/quote")
  42. // @ApiOperation(value = "报价")
  43. //// @MethodLogAnnotation(title = "人保-报价")
  44. // public HttpResult quote(@RequestBody YaQuoteInfoVo yaQuoteInfoVo) throws JsonProcessingException {
  45. // try {
  46. // return insRenbaoService.quote(yaQuoteInfoVo);
  47. // } catch (RestClientException e) {
  48. // throw new SystemException("人保接口调用失败");
  49. // }
  50. // }
  51. //
  52. // @PostMapping("/audit")
  53. // @ApiOperation(value = "核保")
  54. //// @MethodLogAnnotation(title = "人保-核保")
  55. // public HttpResult audit(@RequestBody InsOrder orderno) throws IOException {
  56. // try {
  57. // return insRenbaoService.audit(orderno.getOrderno());
  58. // } catch (RestClientException e) {
  59. // throw new SystemException("人保接口调用失败");
  60. // }
  61. // }
  62. //
  63. //
  64. //}