Bladeren bron

1.查看投保信息时,如果投保单不存在则返回异常。

tomatozq 5 jaren geleden
bovenliggende
commit
7037cb393a

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

@@ -161,6 +161,10 @@ public class InsuranceApplicationController {
 
             if (StringUtils.isNotEmpty(applicationId)) {
                 insuranceApplication = insuranceApplicationService.get(applicationId);
+
+                if(insuranceApplication==null){
+                    throw new Exception("投保单不存在!");
+                }
             }
 
             if (insuranceApplication != null) {