shenweidong 1 год назад
Родитель
Сommit
a45f39300f

+ 0 - 48
tenant/insurance/quotation-bohai/src/main/java/com/jzg/quote/bohai/api/entity/dto/InsUploadImagesDTO.java

@@ -1,48 +0,0 @@
-package com.jzg.quote.bohai.api.entity.dto;
-
-import lombok.Data;
-
-import java.io.Serial;
-import java.io.Serializable;
-
-/**
- * @description: todo
- * @author: shenwd
- * @date: 2025/3/3 18:02
- **/
-@Data
-public class InsUploadImagesDTO implements Serializable {
-
-    @Serial
-    private static final long serialVersionUID = -8929969203446159196L;
-    /**
-     * 报价号
-     */
-    private String quoteNo;
-    /**
-     * 图片类型(C01车辆影像,C02车主身份证,C03投保人身份证,C04被保人身份证,C05验车照)
-     */
-    private String imageType;
-    /**
-     * 文件名称
-     */
-    private String fileName;
-    /**
-     * 文件路劲
-     */
-    private String filePath;
-    /**
-     * 文件存储ID
-     */
-    private String imageId;
-
-    /**
-     * 平安key
-     */
-    private String pinganKey;
-
-    /**
-     * id
-     */
-    private String id;
-}

+ 0 - 60
tenant/insurance/quotation-bohai/src/main/java/com/jzg/quote/bohai/api/entity/po/InsTaskImagesBase64.java

@@ -1,60 +0,0 @@
-package com.jzg.quote.bohai.api.entity.po;
-
-import com.jzg.quote.bohai.api.entity.dto.InsUploadImagesDTO;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-import java.util.Map;
-
-/**
- * @description: 图片转base64
- * @author: shenwd
- * @date: 2025/3/3 18:00
- **/
-@Data
-@NoArgsConstructor
-public class InsTaskImagesBase64 {
-
-    /**
-     * 图片id
-     */
-    private String imageId;
-    /**
-     * 报价单号
-     */
-    private String quoteNo;
-    /**
-     * 图片类型(C01车辆影像,C02车主身份证,C03投保人身份证,C04被保人身份证,C05验车照)
-     */
-    private String imageType;
-    /**
-     * 文件名称
-     */
-    private String fileName;
-    /**
-     * 图片转base64 文件
-     */
-    private String base64String;
-
-
-    public InsTaskImagesBase64(InsUploadImagesDTO insUploadImagesDto, Map<String, String> map) {
-        this.imageId = insUploadImagesDto.getImageId();
-        this.quoteNo = insUploadImagesDto.getQuoteNo();
-        this.imageType = insUploadImagesDto.getImageType();
-        this.fileName = insUploadImagesDto.getFileName();
-        this.base64String = map.get(insUploadImagesDto.getImageId());
-        this.id=insUploadImagesDto.getId();
-        this.pinganKey =insUploadImagesDto.getPinganKey();
-    }
-
-    /***
-     *  平安上传的key
-     */
-    private String pinganKey;
-
-    /***
-     *  id
-     */
-    private String id;
-
-}

+ 0 - 17
tenant/insurance/quotation-bohai/src/main/java/com/jzg/quote/bohai/api/entity/request/ImageUploadRequest.java

@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 import com.jzg.quotation.commons.entity.vo.image.InsuranceImageVo;
 import com.jzg.quote.bohai.api.constant.enums.DocumentClass;
 import com.jzg.quote.bohai.api.entity.BoHaiConfigureParameters;
-import com.jzg.quote.bohai.api.entity.po.InsTaskImagesBase64;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
@@ -13,7 +12,6 @@ import java.io.Serial;
 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.stream.Collectors;
 
 /**
  * @description: 渤海财险 上传影像 请求
@@ -72,21 +70,6 @@ public class ImageUploadRequest extends BoHaiBaseRequest {
         @JsonProperty("fileName")
         private String fileName;
 
-
-        public static List<FileInfosDTO> toFileInfosDTOList(List<InsTaskImagesBase64> imagesBase64){
-            return imagesBase64.stream().map(FileInfosDTO::toFileInfosDTO).collect(Collectors.toList());
-        }
-
-        private static FileInfosDTO toFileInfosDTO(InsTaskImagesBase64 imagesBase64){
-            FileInfosDTO fileInfosDTO = new FileInfosDTO();
-            DocumentClass document = DocumentClass.valueOf(imagesBase64.getImageType());
-            fileInfosDTO.setDocumentType(document.getDocumentType());
-            fileInfosDTO.setDocumentClass(document.getDocument());
-            fileInfosDTO.setFileName(imagesBase64.getFileName());
-            fileInfosDTO.setBase64(imagesBase64.getBase64String());
-            return fileInfosDTO;
-        }
-
         private static List<FileInfosDTO> toFileInfosDTOs(List<InsuranceImageVo> imageVoList){
             List<FileInfosDTO> fileInfosDTOS = new ArrayList<>();
             imageVoList.forEach(imageVo -> {

+ 1 - 1
tenant/insurance/quotation-huatai/src/main/java/com/jzg/quote/huatai/api/service/Impl/HuaTaiApiRequestImpl.java

@@ -309,7 +309,7 @@ public class HuaTaiApiRequestImpl implements HuaTaiApiRequest {
      * 提交核保或核保查询接口
      * @param huaTaiApiOrder
      * @param huaTaiConfigureParameters
-     * @param operateType               1为提交 2为查询
+     * @param operateType    1为提交核保 2为查询核保状态
      * @return
      */
     private HuaTaiSubmitStatusQueryResponse submitStatus(HuaTaiApiOrder huaTaiApiOrder, HuaTaiConfigureParameters huaTaiConfigureParameters, String operateType) {