| | |
| | | |
| | | @Override |
| | | public int saveTmsFinanceDetail(TmsFinanceDetail tmsFinanceDetail) { |
| | | if (StringUtils.isNotEmpty(tmsFinanceDetail.getFeeType() ) && |
| | | tmsFinanceDetail.getActualFeeAmount() != null){ |
| | | insertTmsFinanceDetail(tmsFinanceDetail); |
| | | |
| | | } |
| | | List<FinanceDetailRow> rowItems = tmsFinanceDetail.getRowItems(); |
| | | if (rowItems != null && !rowItems.isEmpty()){ |
| | | |
| | |
| | | if (rowItem.getIsYF() != null && rowItem.getIsYF() == 0){ |
| | | rowItem.setYfPrice(null); |
| | | rowItem.setYfCurrency(null); |
| | | rowItem.setYfServiceProviderId(null); |
| | | rowItem.setYfServiceProviderType(null); |
| | | rowItem.setYfServiceProviderIdType(null); |
| | | rowItem.setYfServiceProviderName(null); |
| | | } |
| | | TmsFinanceDetail tmsFinanceDetailNew = BeanUtil.copyProperties(rowItem, TmsFinanceDetail.class); |
| | | tmsFinanceDetailMapper.updateTmsFinanceDetail(tmsFinanceDetailNew); |