Explorar o código

补录订单编辑回显null 修复

wanghao hai 2 meses
pai
achega
6311b978d1

+ 3 - 3
commons/src/main/java/com/jzg/commons/entity/vo/PtlAgreementCostRatioVo.java

@@ -132,7 +132,7 @@ public class PtlAgreementCostRatioVo {
         this.orderNo = insFeeOrders.getOrderNo();
 
         // 交强险比例
-        if(insFeeOrders.getJqPremium().compareTo(BigDecimal.ZERO) == 0){
+        if(insFeeOrders.getJqPremium() == null || insFeeOrders.getJqPremium().compareTo(BigDecimal.ZERO) == 0){
             this.jqCommissionRatio = BigDecimal.ZERO;
             this.jqInletRatio = BigDecimal.ZERO;
             this.jqFollowRatio =  BigDecimal.ZERO;
@@ -153,7 +153,7 @@ public class PtlAgreementCostRatioVo {
 
 
         // 商业险比例
-        if(insFeeOrders.getSyPremium().compareTo(BigDecimal.ZERO) == 0){
+        if(insFeeOrders.getSyPremium() == null || insFeeOrders.getSyPremium().compareTo(BigDecimal.ZERO) == 0){
             this.syCommissionRatio = BigDecimal.ZERO;
             this.syInletRatio = BigDecimal.ZERO;
             this.syFollowRatio = BigDecimal.ZERO;
@@ -174,7 +174,7 @@ public class PtlAgreementCostRatioVo {
         }
 
         // 驾意险比例
-        if(insFeeOrders.getJyPremium().compareTo(BigDecimal.ZERO) == 0){
+        if(insFeeOrders.getJyPremium() == null || insFeeOrders.getJyPremium().compareTo(BigDecimal.ZERO) == 0){
             this.jyCommissionRatio = BigDecimal.ZERO;
             this.jyInletRatio =  BigDecimal.ZERO;
             this.jyFollowRatio = BigDecimal.ZERO;