| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- package com.ydtech.modules.order.controller;
- import com.ydtech.aop.request.RequestSingleParam;
- import com.ydtech.core.page.HttpResult;
- import com.ydtech.exception.SystemException;
- 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.pingan.request.*;
- import com.ydtech.modules.order.entity.api.pingan.response.UnAutoProductDetailResponse;
- import com.ydtech.modules.order.entity.api.zijin.request.SubmitVerifyRequest;
- import com.ydtech.modules.order.entity.crawler.vo.CrawlerPolicyPrintVo;
- import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
- import com.ydtech.modules.order.entity.vo.InsDrivingIntentionInsuranceVo;
- import com.ydtech.modules.order.entity.vo.SpecialAuditVo;
- import com.ydtech.modules.order.entity.vo.bohai.ProductDetailsQueryVo;
- import com.ydtech.modules.order.entity.vo.pingan.*;
- import com.ydtech.modules.order.service.PingAnOrderApiService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import lombok.RequiredArgsConstructor;
- import lombok.extern.slf4j.Slf4j;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.web.bind.annotation.*;
- import java.util.List;
- import java.util.Map;
- @Api(tags = "平安财险 API ")
- @Slf4j
- @RestController
- @RequestMapping("/order/pingAnApi")
- @RequiredArgsConstructor
- public class PingAnOrderApiController {
- private final PingAnOrderApiService pingAnOrderApiService;
- private final InsOrdersComponents insOrdersComponents;
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @QuoteVerification("报价授权")
- @PostMapping("/quote")
- @ApiOperation("1报价-标的查询-车型查询-车辆确认-报价")
- public HttpResult<QuoteRespVo> quote(@RequestBody PingAnQuoteVo<InsDrivingIntentionInsuranceSonVo> quoteVo) throws Exception {
- BaseQuoteInfoVo quoteInfo = this.insOrdersComponents.getQuoteInfo(quoteVo.getOrderNo(), quoteVo.getAgreementId());
- return this.pingAnOrderApiService.quote(quoteInfo, quoteVo);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/productQuery")
- @ApiOperation("1报价-获取财意险险种套餐列表")
- public HttpResult<Map<String,Object>> productQuery(@RequestBody ProductDetailsRequest productDetailsRequest) throws Exception {
- return this.pingAnOrderApiService.productQuery(productDetailsRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/productDetailsQuery")
- @ApiOperation("1报价-获取财意险险种套餐责任信息")
- public HttpResult<List<UnAutoProductDetailResponse.UnAutoProductDetailsDTO>> productDetailsQuery(@RequestBody ProductDetailsQueryVo productDetailsQueryVo) throws Exception {
- return this.pingAnOrderApiService.productDetailsQuery(productDetailsQueryVo);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 可以上传文件
- */
- @PostMapping(value = "/submitImage")
- @ApiOperation(value = "2核保-提交影像信息")
- public HttpResult<Object> submitImage(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
- return this.pingAnOrderApiService.submitImage(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- //@AuditVerification("核保")
- @PostMapping(value = "/audit")
- @ApiOperation(value = "2核保-提交核保")
- public HttpResult<Object> audit(@RequestBody SpecialAuditVo<SubmitVerifyRequest.EngageListDTO> specialAudit) throws Exception {
- return this.pingAnOrderApiService.audit(specialAudit);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 2核保-核保状态查询
- */
- @PostMapping("/auditStatusQuery")
- @ApiOperation(value = "2核保-核保状态查询")
- public HttpResult<Object> auditStatusQuery(String companyId) throws Exception {
- return this.pingAnOrderApiService.auditStatusQuery(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @GetMapping("/signEleApply")
- @ApiOperation(value = "3投保单签署署(缴费前必须调用移动端电子投保单签署)")
- public HttpResult<Object> signEleApply(String companyId) throws Exception {
- return this.pingAnOrderApiService.signEleApply(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @GetMapping("/getApplyVerifyCodeAndRecoverApplyVerifyCode")
- @ApiOperation(value = "4短信发送")
- public HttpResult<Object> getApplyVerifyCodeAnd(String companyId) throws Exception {
- return this.pingAnOrderApiService.getApplyVerifyCode(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/recoverApplyVerifyCode")
- @ApiOperation(value = "5短信回收阅读状态")
- public HttpResult<Object> recoverApplyVerifyCode(@RequestBody RecoverApplyVerifyCodeVo recoverApplyVerifyCodeVo) throws Exception {
- String companyId = recoverApplyVerifyCodeVo.getCompanyId();
- String msgCode = recoverApplyVerifyCodeVo.getMsgCode();
- if(StringUtils.isBlank(companyId)){
- throw new SystemException("子订单id不能为空!!");
- }
- if(StringUtils.isBlank(msgCode)){
- throw new SystemException("短信验证码不能为空!!");
- }
- return this.pingAnOrderApiService.recoverApplyVerifyCode(companyId,msgCode);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/createNotice")
- @ApiOperation(value = "6获取支付通知单号-生成支付链接")
- public HttpResult<Object> createNotice(String companyId) throws Exception {
- return this.pingAnOrderApiService.createNotice(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 无法测试
- */
- @PostMapping("/payReturn")
- @ApiOperation(value = "7支付回调-更新承保状态")
- public HttpResult<Object> payReturn(@RequestBody PayReturnRequest payReturnRequest) throws Exception {
- return this.pingAnOrderApiService.payReturn(payReturnRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 查看电子保单
- */
- @PostMapping("/getPolicyPrint")
- @ApiOperation(value = "8电子保单查看")
- public HttpResult<CrawlerPolicyPrintVo> getPolicyPrint(String companyId) throws Exception {
- return this.pingAnOrderApiService.getPolicyPrint(companyId);
- }
- @PostMapping("/getOrderDetail")
- @ApiOperation(value = "9订单状态查询")
- public HttpResult<Object> getOrderDetail(String companyId) throws Exception {
- return this.pingAnOrderApiService.getDocumentStatusList(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 未跑通
- * @ todo
- */
- @PostMapping("/renewalConfirm")
- @ApiOperation("10续保")
- public HttpResult<Object> renewalConfirm(@RequestBody RenewalConfirmVo renewalConfirmVo) throws Exception {
- return this.pingAnOrderApiService.renewalConfirm(renewalConfirmVo);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/repealDocument")
- @ApiOperation("11撤销单证")
- public HttpResult<Object> repealDocument(String companyId,String documentType) throws Exception {
- return this.pingAnOrderApiService.repealDocument(companyId,documentType);
- }
- //========================================以下接口暂未使用后期可能使用=======================================
- /**
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 9:33
- * @Description: 查询事后未上传资料清单
- * todo
- */
- @PostMapping("/querySupplementMaterial")
- @ApiOperation(value = "查询事后未上传资料清单")
- public HttpResult<Object> querySupplementMaterial(String companyId) throws Exception {
- return this.pingAnOrderApiService.querySupplementMaterial(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 9:33
- * @Description: 获取核保时门店自取信息 未测试
- * @ todo
- */
- @PostMapping("/getStorefrontList")
- @ApiOperation(value = "获取核保时门店自取信息 2 ")
- public HttpResult<Object> getStorefrontList(StorefrontQueryVo storefrontQueryVo) throws Exception {
- return this.pingAnOrderApiService.getStorefrontList(storefrontQueryVo);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 测试通过
- */
- @PostMapping("/queryServiceContract")
- @ApiOperation("服务类特约检索")
- public HttpResult<Object> queryServiceContract(@RequestSingleParam(value = "companyId") String companyId) throws Exception {
- return this.pingAnOrderApiService.queryServiceContract(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/22 18:51
- * @Description: 好车主支付 和二微码支付一样 暂不使用
- */
- @PostMapping("/viewToPay")
- @ApiOperation(value = "获取支付通知单号")
- public HttpResult<Object> viewToPay(String companyId) throws Exception {
- return this.pingAnOrderApiService.viewToPay(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 9:33
- * @Description: 全国短信验证 暂时没用
- */
- @PostMapping("/sendApplyPolicy")
- @ApiOperation(value = "全国短信验证")
- public HttpResult<Object> sendApplyPolicy(String companyId,String moblePhone) throws Exception {
- return this.pingAnOrderApiService.sendApplyPolicy(companyId,moblePhone);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 平安新CPC收银台 7.10 暂时没用
- */
- @PostMapping("/chexianStandardPrePayment")
- @ApiOperation(value = "平安新CPC收银台 7.10")
- public HttpResult<Object> chexianStandardPrePayment(ChexianStandardPrePaymentRequest chexianStandardPrePaymentRequest) throws Exception {
- return this.pingAnOrderApiService.chexianStandardPrePayment(chexianStandardPrePaymentRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 身份验证 暂时没用
- */
- @PostMapping("/beiJingIdAcquisition")
- @ApiOperation(value = "身份验证")
- public HttpResult<Object> beiJingIdAcquisition(String companyId) throws Exception {
- return this.pingAnOrderApiService.beiJingIdAcquisition(companyId);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 支付实名认证建议在noticeDo接口进行 暂时没用
- */
- @PostMapping("/noticeAuth")
- @ApiOperation(value = "支付实名认证建议在noticeDo接口进行 73")
- public HttpResult<Object> noticeAuth(NoticeAuthRequest noticeAuthRequest) throws Exception {
- return this.pingAnOrderApiService.noticeAuth(noticeAuthRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 支付之前查询通知单内容 74 暂时没用
- */
- @PostMapping("/getNoticeInfo")
- @ApiOperation(value = "支付之前查询通知单内容 74")
- public HttpResult<Object> getNoticeInfo(GetNoticeInfoRequest getNoticeInfoRequest) throws Exception {
- return this.pingAnOrderApiService.getNoticeInfo(getNoticeInfoRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 支付到账通知平安 75 暂时没用
- */
- @PostMapping("/noticeDone")
- @ApiOperation(value = "支付到账通知平安 75")
- public HttpResult<Object> noticeDone(NoticeDoneRequest noticeDoneRequest) throws Exception {
- return this.pingAnOrderApiService.noticeDone(noticeDoneRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 14:03
- * @Description: 身份验证 暂时没用
- */
- @PostMapping("/getWechatAuthInfo")
- @ApiOperation(value = "获取微信缴费实名认证结果 79")
- public HttpResult<Object> getWechatAuthInfo(GetWechatAuthInfoRequest getWechatAuthInfoRequest) throws Exception {
- return this.pingAnOrderApiService.getWechatAuthInfo(getWechatAuthInfoRequest);
- }
- /**
- * @version
- * @author: hxl
- * @Date: 2024/7/23 18:46
- * @Description: 上海车辆使用
- */
- @PostMapping("/getDmvehicleInfo")
- @ApiOperation("获取交管车辆验证码")
- public HttpResult<Object> getDmvehicleInfo(@RequestBody PingAnQuoteVo<List<InsDrivingIntentionInsuranceVo>> quoteVo, BaseQuoteInfoVo quoteInfo) throws Exception {
- return this.pingAnOrderApiService.getDmvehicleInfo(quoteVo,quoteInfo);
- }
- }
|