|
|
@@ -0,0 +1,86 @@
|
|
|
+package com.ydtech.modules.order.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.ydtech.aop.request.RequestSingleParam;
|
|
|
+import com.ydtech.core.page.HttpResult;
|
|
|
+import com.ydtech.modules.ins.model.vo.QuoteRespVo;
|
|
|
+import com.ydtech.modules.order.aop.QuoteVerification;
|
|
|
+import com.ydtech.modules.order.components.InsOrdersComponents;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.BoHaiEncrypted;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.request.ManualReviewRequest;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.request.PaymentCallbackRequest;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.request.PolicyResultCallbackRequest;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.response.NonAutomotiveProductsDetailsResponse;
|
|
|
+import com.ydtech.modules.order.entity.api.bohai.response.NonAutomotiveProductsResponse;
|
|
|
+import com.ydtech.modules.order.entity.crawler.vo.CrawlerPolicyPrintVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.bohai.BoHaiQuoteAccidentVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.bohai.ProductDetailsQueryVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.bohai.ProductQueryVo;
|
|
|
+import com.ydtech.modules.order.service.PingAnOrderApiService;
|
|
|
+import com.ydtech.modules.order.utils.SignatureUtils;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+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 java.util.List;
|
|
|
+
|
|
|
+@Api(tags = "平安财险 API ")
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+@RequestMapping("/order/pingAnApi")
|
|
|
+@RequiredArgsConstructor
|
|
|
+public class PingAnOrderApiController {
|
|
|
+
|
|
|
+ private final PingAnOrderApiService pingAnOrderApiService;
|
|
|
+
|
|
|
+ private final InsOrdersComponents insOrdersComponents;
|
|
|
+
|
|
|
+
|
|
|
+ @QuoteVerification("报价授权")
|
|
|
+ @PostMapping("/quote")
|
|
|
+ @ApiOperation("报价")
|
|
|
+ public HttpResult<QuoteRespVo> quote(@RequestBody BaseQuoteVo<List<BoHaiQuoteAccidentVo>> quoteVo) throws Exception {
|
|
|
+ BaseQuoteInfoVo quoteInfo = this.insOrdersComponents.getQuoteInfo(quoteVo.getOrderNo(), quoteVo.getAgreementId());
|
|
|
+ return this.pingAnOrderApiService.quote(quoteInfo, quoteVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/submitImage")
|
|
|
+ @ApiOperation(value = "提交影像信息")
|
|
|
+ public HttpResult<Object> submitImage(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
|
|
|
+ return this.pingAnOrderApiService.submitImage(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/audit")
|
|
|
+ @ApiOperation(value = "提交核保")
|
|
|
+ public HttpResult<Object> audit(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
|
|
|
+ return this.pingAnOrderApiService.audit(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getPolicyPrint")
|
|
|
+ @ApiOperation(value = "电子保单")
|
|
|
+ public HttpResult<CrawlerPolicyPrintVo> getPolicyPrint(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
|
|
|
+ return this.pingAnOrderApiService.getPolicyPrint(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getOrderDetail")
|
|
|
+ @ApiOperation(value = "订单状态查询")
|
|
|
+ public HttpResult<Object> getOrderDetail(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
|
|
|
+ return this.pingAnOrderApiService.getOrderDetail(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/auditStatusQuery")
|
|
|
+ @ApiOperation(value = "核保状态查询")
|
|
|
+ public HttpResult<Object> auditStatusQuery(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
|
|
|
+ return this.pingAnOrderApiService.auditStatusQuery(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|