|
@@ -28,7 +28,6 @@ import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
|
import com.ydtech.modules.order.entity.vo.PolicyPrintVo;
|
|
import com.ydtech.modules.order.entity.vo.PolicyPrintVo;
|
|
|
import com.ydtech.modules.order.entity.vo.SpecialAuditVo;
|
|
import com.ydtech.modules.order.entity.vo.SpecialAuditVo;
|
|
|
import com.ydtech.modules.order.entity.vo.zj.ZjVehicleProductsQueryVo;
|
|
import com.ydtech.modules.order.entity.vo.zj.ZjVehicleProductsQueryVo;
|
|
|
-import com.ydtech.modules.order.entity.vo.zj.ZjVehicleProductsVo;
|
|
|
|
|
import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
import com.ydtech.modules.order.service.InsOrdersService;
|
|
import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
import com.ydtech.modules.order.service.InsTaskImagesService;
|
|
import com.ydtech.modules.order.service.InsTaskImagesService;
|
|
@@ -40,7 +39,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -75,14 +73,14 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<List<ZjVehicleProductsVo>> queryVehicleProducts(ZjVehicleProductsQueryVo zjVehicleProductsQueryVo) {
|
|
|
|
|
|
|
+ public HttpResult<List<QueryVehicProductsResponse.ProductDtoListDTO>> queryVehicleProducts(ZjVehicleProductsQueryVo zjVehicleProductsQueryVo) {
|
|
|
// 1 通过 协议id获取配置实体
|
|
// 1 通过 协议id获取配置实体
|
|
|
ZjConfigureParameters zjConfigureParameters = configureParametersComponents.toEntity(ZjConfigureParameters.class, zjVehicleProductsQueryVo.getAgreementId());
|
|
ZjConfigureParameters zjConfigureParameters = configureParametersComponents.toEntity(ZjConfigureParameters.class, zjVehicleProductsQueryVo.getAgreementId());
|
|
|
HttpHeaders httpHeaders = zijinRequestApiComponents.getHttpHeaders(zjVehicleProductsQueryVo.getAgreementId());
|
|
HttpHeaders httpHeaders = zijinRequestApiComponents.getHttpHeaders(zjVehicleProductsQueryVo.getAgreementId());
|
|
|
// 2. 请求驾意险
|
|
// 2. 请求驾意险
|
|
|
QueryVehicProductsRequest queryVehicProductsRequest = new QueryVehicProductsRequest(zjVehicleProductsQueryVo.getSeatCount(), zjConfigureParameters.getAppKey(), zjConfigureParameters.getProposalCityCode());
|
|
QueryVehicProductsRequest queryVehicProductsRequest = new QueryVehicProductsRequest(zjVehicleProductsQueryVo.getSeatCount(), zjConfigureParameters.getAppKey(), zjConfigureParameters.getProposalCityCode());
|
|
|
QueryVehicProductsResponse queryVehicProductsResponse = zijinRequestApiComponents.queryVehicleProducts(queryVehicProductsRequest, httpHeaders);
|
|
QueryVehicProductsResponse queryVehicProductsResponse = zijinRequestApiComponents.queryVehicleProducts(queryVehicProductsRequest, httpHeaders);
|
|
|
- return HttpResult.ok(ZjVehicleProductsVo.toZjVehicleProductsVoList(queryVehicProductsResponse.getProductDtoList()));
|
|
|
|
|
|
|
+ return HttpResult.ok(queryVehicProductsResponse.getProductDtoList());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -152,7 +150,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public HttpResult<Object> audit(SpecialAuditVo<SubmitVerifyRequest.EngageListDTO> specialAudit ) {
|
|
|
|
|
|
|
+ public HttpResult<Object> audit(SpecialAuditVo<SubmitVerifyRequest.EngageListDTO> specialAudit) {
|
|
|
|
|
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(specialAudit.getCompanyId());
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getByIdIsExist(specialAudit.getCompanyId());
|
|
|
InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|