فهرست منبع

修改费用为空的情况

wks 2 سال پیش
والد
کامیت
6a28071c2b

+ 3 - 2
src/main/java/com/ydtech/modules/fee/service/impl/FeeRuleSchemeServiceNewImpl.java

@@ -33,6 +33,7 @@ import com.ydtech.modules.protocol.service.PtlNewCarJudgeRulesService;
 import com.ydtech.modules.protocols.entity.po.*;
 import com.ydtech.modules.protocols.entity.vo.AgreementProductCosts;
 import com.ydtech.modules.protocols.service.*;
+import com.ydtech.utils.BigDecimalUtils;
 import com.ydtech.utils.idgen.IdGenerate;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -294,7 +295,7 @@ public class FeeRuleSchemeServiceNewImpl implements FeeRuleSchemeNewService {
         //查找入口与出口费用比例
         //入口配置
         PtlAgreementProductCostsNew ptlAgreementProductCostsNew = ptlAgreementProductCostsNewService.getById(costsId);
-
+        ptlAgreementProductCostsNew.blank();
         //出口配置
         PtlAgreementProductCostsExport ptlAgreementProductCostsExport =
                 ptlAgreementProductCostsExportService.getOne(new LambdaQueryWrapper<PtlAgreementProductCostsExport>().eq(PtlAgreementProductCostsExport::getCostsId, costsId));
@@ -340,7 +341,7 @@ public class FeeRuleSchemeServiceNewImpl implements FeeRuleSchemeNewService {
 
         //商业入口信息
         FeeOrderNewVo.EntranceFee syEntranceFee = feeRuleSchemeService.calcEntranceFee(insFeeOrderNew.getSyPremium(),
-                new BigDecimal(ptlAgreementProductCostsNew.getSyCarCostsProportion()),
+                new BigDecimal(ptlAgreementProductCostsNew.getSyCarCostsProportion()) ,
                 new BigDecimal(ptlAgreementProductCostsNew.getSyCarOtherCostsProportion()), taxRadio);
         insFeeOrderNew.setSyCostsProportion(syEntranceFee.getTotalProportion());
         insFeeOrderNew.setSySuperviseCostsProportion(syEntranceFee.getSuperviseCosts());

+ 11 - 0
src/main/java/com/ydtech/modules/protocols/entity/po/PtlAgreementProductCostsNew.java

@@ -260,6 +260,17 @@ public class PtlAgreementProductCostsNew {
             this.noCarOtherCostsProportion = "0";
         }
 
+        if (this.jqCostsExportProportion == null || this.jqCostsExportProportion.equals("")) {
+            this.jqCostsExportProportion = "0";
+        }
+        if (this.syCostsExportProportion == null || this.syCostsExportProportion.equals("")) {
+            this.syCostsExportProportion = "0";
+        }
+        if (this.noCostsExportProportion == null || this.noCostsExportProportion.equals("")) {
+            this.noCostsExportProportion = "0";
+        }
+
+
     }
 
 }