Browse Source

提交订单编辑报错的bug

hxl13994548489 2 years ago
parent
commit
708b94109a

+ 6 - 5
src/main/java/com/ydtech/modules/order/entity/vo/InsOrdersEditingVo.java

@@ -160,11 +160,11 @@ public class InsOrdersEditingVo extends InsOrders implements Serializable {
             this.inscompany = insAreaCompany.getInscompany();
             this.kindList = ObjectUtils.isEmpty(insAreaCompany.getKindinfo()) ? new ArrayList<>() :
                     insAreaCompany.getKindinfo().toJavaList(QuoteKindRespVo.class);
-            this.jqPremium = insAreaCompany.getJqpremium().doubleValue();
-            this.syPremium = insAreaCompany.getSypremium().doubleValue();
-            this.jyPremium = insAreaCompany.getJypremium().doubleValue();
-            this.taxAmount = insAreaCompany.getTaxamount().doubleValue();
-            this.sumPermium = insAreaCompany.getSumpremium().doubleValue();
+            this.jqPremium = ObjectUtils.isEmpty(insAreaCompany.getJqpremium()) ? 0.0 :insAreaCompany.getJqpremium().doubleValue();
+            this.syPremium = ObjectUtils.isEmpty(insAreaCompany.getSypremium()) ? 0.0 :insAreaCompany.getSypremium().doubleValue();
+            this.jyPremium = ObjectUtils.isEmpty(insAreaCompany.getJypremium()) ? 0.0 :insAreaCompany.getJypremium().doubleValue();
+            this.taxAmount = ObjectUtils.isEmpty(insAreaCompany.getTaxamount()) ? 0.0 :insAreaCompany.getTaxamount().doubleValue();
+            this.sumPermium = ObjectUtils.isEmpty(insAreaCompany.getSumpremium()) ? 0.0 :insAreaCompany.getSumpremium().doubleValue();
             this.startDateJq = insAreaCompany.getJqStartDate();
             this.endDateJq = insAreaCompany.getJqEndDate();
             this.startDateSy = insAreaCompany.getSyStartDate();
@@ -175,6 +175,7 @@ public class InsOrdersEditingVo extends InsOrders implements Serializable {
             this.lossRation = insAreaCompany.getLossRation();
             this.jqLossRation = insAreaCompany.getJqLossRation();
             this.syLossRation = insAreaCompany.getSyLossRation();
+            this.ubiPredictedInfoScore = insAreaCompany.getUbiPredictedInfoScore();
         }
     }