| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.ruoyi.common.tax.TaxtUtils; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.vo.TaxMoneyVO; |
| | |
| | | ServiceFunddetail serviceFunddetail = serviceFunddetailMapper.selectById(id); |
| | | Long fundid = serviceFunddetail.getFundid(); |
| | | ServiceFund serviceFund = serviceFundMapper.selectById(fundid); |
| | | if (ObjectUtils.isNotEmpty(serviceFund)) { |
| | | Double pretax = serviceFund.getPretaxcost(); |
| | | Double aftertax = serviceFund.getTaxedcost(); |
| | | pretax = pretax - serviceFunddetail.getAmount(); |
| | | aftertax = aftertax - serviceFunddetail.getTaxedamount(); |
| | | Double amount = pretax + aftertax; |
| | | |
| | | Double pretax = serviceFund.getPretaxcost(); |
| | | Double aftertax = serviceFund.getTaxedcost(); |
| | | pretax = pretax - serviceFunddetail.getAmount(); |
| | | aftertax = aftertax - serviceFunddetail.getTaxedamount(); |
| | | Double amount = pretax + aftertax; |
| | | |
| | | serviceFund.setPretaxcost(pretax); |
| | | serviceFund.setTaxedcost(aftertax); |
| | | serviceFund.setAmountrequested(amount); |
| | | int updateAmount = serviceFundMapper.updateById(serviceFund); |
| | | |
| | | serviceFund.setPretaxcost(pretax); |
| | | serviceFund.setTaxedcost(aftertax); |
| | | serviceFund.setAmountrequested(amount); |
| | | int updateAmount = serviceFundMapper.updateById(serviceFund); |
| | | } |
| | | return serviceFunddetailMapper.deleteById(id); |
| | | } |
| | | |