Explorar o código

1.非车手续费编辑调整

wuhp %!s(int64=2) %!d(string=hai) anos
pai
achega
de56e756d7

+ 5 - 3
src/main/java/com/ydtech/modules/fnc/service/impl/InsPlyIncomeServiceImpl.java

@@ -1204,14 +1204,16 @@ handlingProportion,
     @Override
     public void updateNoHand(InsPlyIncomeVo insPlyIncomeVo) {
         //        根据协议   如果是含增值税结算   用保费 *   如果是  不含税保费
-        InsPlyIncome insPlyIncome = new InsPlyIncome();
+        InsPlyIncome insPlyIncome = baseMapper.getById(insPlyIncomeVo.getId());
         BeanUtils.copyProperties(insPlyIncomeVo, insPlyIncome);
-        insPlyIncome.setCommissionFeevalue(insPlyIncomeVo.getNoSuperviseCostsPremiums());
+        BigDecimal bigDecimal = this.getBigDecimal(insPlyIncomeVo.getNoPremium(), insPlyIncomeVo.getNoSuperviseCostsProportion());
+        insPlyIncome.setCommissionFeevalue(bigDecimal);
         insPlyIncome.setCommissionFeerate(insPlyIncomeVo.getNoSuperviseCostsProportion());
+        insPlyIncome.setNoSuperviseCostsPremiums(bigDecimal);
+        insPlyIncome.setAllFeeValue(bigDecimal);
         insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
         baseMapper.updateById(insPlyIncome);
         insPlyIncomeVo.setOtherFeevalue(insPlyIncomeVo.getNoSuperviseCostsPremiums());
-
         insPlyIncomeVo.setCrudStatus("2");
         this.saveLog(insPlyIncomeVo);
     }