|
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.jzg.quotation.commons.entity.vo.image.InsuranceImageVo;
|
|
import com.jzg.quotation.commons.entity.vo.image.InsuranceImageVo;
|
|
|
import com.jzg.quote.bohai.api.constant.enums.DocumentClass;
|
|
import com.jzg.quote.bohai.api.constant.enums.DocumentClass;
|
|
|
import com.jzg.quote.bohai.api.entity.BoHaiConfigureParameters;
|
|
import com.jzg.quote.bohai.api.entity.BoHaiConfigureParameters;
|
|
|
-import com.jzg.quote.bohai.api.entity.po.InsTaskImagesBase64;
|
|
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
@@ -13,7 +12,6 @@ import java.io.Serial;
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @description: 渤海财险 上传影像 请求
|
|
* @description: 渤海财险 上传影像 请求
|
|
@@ -72,21 +70,6 @@ public class ImageUploadRequest extends BoHaiBaseRequest {
|
|
|
@JsonProperty("fileName")
|
|
@JsonProperty("fileName")
|
|
|
private String 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){
|
|
private static List<FileInfosDTO> toFileInfosDTOs(List<InsuranceImageVo> imageVoList){
|
|
|
List<FileInfosDTO> fileInfosDTOS = new ArrayList<>();
|
|
List<FileInfosDTO> fileInfosDTOS = new ArrayList<>();
|
|
|
imageVoList.forEach(imageVo -> {
|
|
imageVoList.forEach(imageVo -> {
|