소스 검색

1.营业执照修改。

tomatozq 5 년 전
부모
커밋
09fff040ad
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      picc-enterprise-server/src/main/java/com/jpsoft/picc/modules/auth/controller/InsurancePolicyController.java

+ 6 - 4
picc-enterprise-server/src/main/java/com/jpsoft/picc/modules/auth/controller/InsurancePolicyController.java

@@ -101,11 +101,13 @@ public class InsurancePolicyController {
 
             String url = company.getUsccFiles();
 
-            map1.put("type","营业执照");
-            map1.put("title", "营业执照" + url.substring(url.lastIndexOf(".")));
-            map1.put("url", url);
+            if(StringUtils.isNotEmpty(url)) {
+                map1.put("type", "营业执照");
+                map1.put("title", "营业执照" + url.substring(url.lastIndexOf(".")));
+                map1.put("url", url);
 
-            mapList.add(map1);
+                mapList.add(map1);
+            }
 
             Map<String,String> map2 = new HashMap<>();
             map2.put("type","身份证");