|
|
@@ -0,0 +1,51 @@
|
|
|
+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.vo.BaseQuoteInfoVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
|
+import com.ydtech.modules.order.service.DaJiaOrderService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+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;
|
|
|
+
|
|
|
+@Api(tags = "大家财险 API")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/dajia")
|
|
|
+@RequiredArgsConstructor
|
|
|
+public class DaJiaOrderController {
|
|
|
+
|
|
|
+ private final DaJiaOrderService daJiaOrderService;
|
|
|
+
|
|
|
+ private final InsOrdersComponents insOrdersComponents;
|
|
|
+
|
|
|
+
|
|
|
+ @QuoteVerification("报价授权")
|
|
|
+ @PostMapping("/quote")
|
|
|
+ @ApiOperation("报价")
|
|
|
+ public HttpResult<QuoteRespVo> quote(@RequestBody BaseQuoteVo<Object> quoteVo) {
|
|
|
+ BaseQuoteInfoVo quoteInfo = this.insOrdersComponents.getQuoteInfo(quoteVo.getOrderNo(), quoteVo.getAgreementId());
|
|
|
+ return this.daJiaOrderService.quote(quoteInfo, quoteVo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/submitImage")
|
|
|
+ @ApiOperation(value = "提交影像信息")
|
|
|
+ public HttpResult<Object> submitImage(@RequestSingleParam(value = "companyId") String companyId) {
|
|
|
+ return this.daJiaOrderService.submitImage(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/audit")
|
|
|
+ @ApiOperation(value = "提交核保")
|
|
|
+ public HttpResult<Object> audit(@RequestSingleParam(value = "companyId") String companyId) {
|
|
|
+ return this.daJiaOrderService.audit(companyId);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|