Quellcode durchsuchen

1.处理渤海非车险核保不通过

wks vor 1 Jahr
Ursprung
Commit
e4f9d7794c

+ 4 - 0
src/main/java/com/ydtech/modules/order/entity/api/bohai/response/UnderwritingResponse.java

@@ -186,6 +186,10 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
             private static final String MESSAGES = "核保成功";
 
             public DrivingInsuranceDto toDrivingInsuranceDto() {
+                if (StringUtils.isEmpty(this.getApplicationNo())) {
+                    throw new SystemException(this.getResultMsg());
+                }
+
                 DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
                 drivingInsuranceDto.setCode(this.getProductCode());
                 drivingInsuranceDto.setName(this.getPackageCode());