| | |
| | | id = saveFund(serviceFundVO); |
| | | |
| | | List<ServiceFunddetailVO> serviceFunddetails = serviceFundVO.getServiceFunddetails(); |
| | | if (CollectionUtils.isEmpty(serviceFunddetails)) { |
| | | throw new BaseException("serviceFunddetails为空喽"); |
| | | } |
| | | |
| | | BigDecimal bigDecimal = new BigDecimal(0.0); |
| | | if (!CollectionUtils.isEmpty(serviceFunddetails)) { |
| | | |
| | | // 保存详情数据 |
| | | for (ServiceFunddetailVO serviceFunddetailVO : serviceFunddetails) { |
| | | //去掉身份证的首尾空格 |
| | |
| | | |
| | | bigDecimal = bigDecimal.add(BigDecimal.valueOf(serviceFunddetailVO.getAmount())); |
| | | |
| | | |
| | | } |
| | | } |
| | | serviceFundVO.setPretaxcost(bigDecimal.doubleValue()); |
| | | serviceFundMapper.updateById(serviceFundVO); |