| | |
| | | if (serviceFunddetail.getDel_flag() != null) { |
| | | wrappers.eq(ServiceFunddetail::getDel_flag, serviceFunddetail.getDel_flag()); |
| | | } |
| | | if (serviceFunddetail.getDeptId() != null) { |
| | | wrappers.eq(ServiceFunddetail::getDeptId, serviceFunddetail.getDeptId()); |
| | | } |
| | | if (serviceFunddetail.getDeptName() != null) { |
| | | wrappers.eq(ServiceFunddetail::getDeptName, serviceFunddetail.getDeptName()); |
| | | } |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | |
| | | |
| | | //用于临时保存已经算好的"费用详情数据" |
| | | List<ServiceFunddetail> temporarySave = new ArrayList<>(); |
| | | |
| | | //保存总税前金额(用于更新fund表里的) |
| | | BigDecimal pretaxcost = BigDecimal.valueOf(0.00); |
| | | for (ServiceFunddetail serviceFunddetail : serviceFunddetails) { |
| | |
| | | } else { |
| | | serviceFunddetail.setAmount(serviceFunddetail.getTaxedamount()); |
| | | } |
| | | //公司的申请金额也要加进去 |
| | | pretaxcost = pretaxcost.add(BigDecimal.valueOf(serviceFunddetail.getAmount())); |
| | | |
| | | serviceFunddetail.setTaxamount(0.0); |
| | | logger.info("serviceFunddetail更新后的数据 : {}", serviceFunddetail); |
| | | boolean b = this.updateById(serviceFunddetail); |
| | |
| | | return map; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<SpStatBonus> getListBySpStatBonus(SpStatBonusReq spStatBonusReq) { |
| | | return serviceFunddetailMapper.getListBySpStatBonus(spStatBonusReq.getPabegtime(), spStatBonusReq.getPaendtime(), spStatBonusReq.getPadeptno(), spStatBonusReq.getPauserno(), spStatBonusReq.getPabonustype()); |
| | | } |
| | | } |