//package com.ydtech.modules.ins.controller; // //import com.fasterxml.jackson.core.JsonProcessingException; //import com.ydtech.aop.request.RequestSingleParam; //import com.ydtech.core.page.HttpResult; //import com.ydtech.exception.SystemException; //import com.ydtech.modules.ins.model.InsOrder; //import com.ydtech.modules.ins.model.hb.HengbangPolicyPrintResponse; //import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo; //import com.ydtech.modules.ins.service.InsHengbangService; //import io.swagger.annotations.Api; //import io.swagger.annotations.ApiOperation; //import org.springframework.web.bind.annotation.PostMapping; //import org.springframework.web.bind.annotation.RequestBody; //import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RestController; //import org.springframework.web.client.RestClientException; // //import java.io.IOException; // //@Api(tags = "恒邦财险") //@RestController //@RequestMapping("/ins/hengbang") //public class HengbangController { // private final InsHengbangService insHengbangService; // // public HengbangController(InsHengbangService insHengbangService) { // this.insHengbangService = insHengbangService; // } // // @PostMapping("/quote") // @ApiOperation(value = "报价") //// @MethodLogAnnotation(title = "恒邦-报价") // public HttpResult quote(@RequestBody YaQuoteInfoVo yaQuoteInfoVo) throws JsonProcessingException { // try { // return insHengbangService.quote(yaQuoteInfoVo); // } catch (RestClientException e) { // throw new SystemException("恒邦接口调用失败"); // } // } // // @PostMapping("/audit") // @ApiOperation(value = "核保") //// @MethodLogAnnotation(title = "恒邦-核保") // public HttpResult audit(@RequestSingleParam(value = "orderno") String orderno) throws IOException { // try { // return insHengbangService.audit(orderno); // } catch (RestClientException e) { // throw new SystemException("恒邦接口调用失败"); // } // } // // @PostMapping(value = "/submitImage") // @ApiOperation(value = "提交影像信息") // public HttpResult submitImage(@RequestSingleParam(value = "orderno") String orderno) { // try { // return insHengbangService.submitImage(orderno); // } catch (Exception e) { // throw new SystemException("提交影像失败"); // } // } // // @PostMapping(value = "/getPolicyPrint") // @ApiOperation(value = "获取电子保单") // public HengbangPolicyPrintResponse getPolicyPrint(@RequestSingleParam(value = "orderno") String orderno) { // try { // return insHengbangService.getPolicyPrint(orderno); // } catch (Exception e) { // throw new SystemException("获取电子保单失败"); // } // } // //}