Przeglądaj źródła

update:
1.非车无法获取的问题

wks 1 rok temu
rodzic
commit
6483841c56

+ 7 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -49,6 +49,7 @@ import org.springframework.beans.factory.annotation.Value;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.transaction.annotation.Transactional;
+import org.springframework.util.CollectionUtils;
 import org.springframework.util.ObjectUtils;
 import org.springframework.util.ObjectUtils;
 
 
 import javax.imageio.ImageIO;
 import javax.imageio.ImageIO;
@@ -854,6 +855,12 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
                 .isEmpty()) ? vo.getJyxInfoList()
                 .isEmpty()) ? vo.getJyxInfoList()
                 .get(0)
                 .get(0)
                 .getJyxPolicyUrl() : null;
                 .getJyxPolicyUrl() : null;
+
+        if(!CollectionUtils.isEmpty(vo.getJyxInfoList())){
+            CrawlerPolicyPrintVo.JyxInfoListDTO jyxInfoListDTO = vo.getJyxInfoList().get(0);
+            insAreaCompany.setJyPolicyNo(jyxInfoListDTO.getApplication());
+        }
+
         InsAreaCompanyExternalPolicy insAreaCompanyExternalPolicy = new InsAreaCompanyExternalPolicy(insAreaCompany.getId(), vo.getJqxPolicyUrl(), vo.getSyxPolicyUrl(), jyPath, vo.getJqxFlagUrl());
         InsAreaCompanyExternalPolicy insAreaCompanyExternalPolicy = new InsAreaCompanyExternalPolicy(insAreaCompany.getId(), vo.getJqxPolicyUrl(), vo.getSyxPolicyUrl(), jyPath, vo.getJqxFlagUrl());
         return new ReadPdfUrlListDto(insAreaCompanyExternalPolicy, insAreaCompany, null);
         return new ReadPdfUrlListDto(insAreaCompanyExternalPolicy, insAreaCompany, null);
     }
     }