ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -144,6 +144,11 @@ //startPage(); List<SpFinancialExpensesFundOut> list = serviceFundService.getListBypower(loginUser.getUsername(), 2, APPLICANT, APPLICATIONBEGTIME, APPLICATIONENDTIME, loginUser.getDeptId().toString(), CHECKFLAG, APPLYTYPE); //通过捐献者过滤 if (StringUtils.isNotEmpty(spFinancialExpensesIn.getDonorname())) { list = list.stream().filter(obj -> obj.getDonorname().contains(spFinancialExpensesIn.getDonorname())).collect(Collectors.toList()); } Collections.sort(list, new Comparator<SpFinancialExpensesFundOut>() { @Override public int compare(SpFinancialExpensesFundOut o1, SpFinancialExpensesFundOut o2) { @@ -1928,4 +1933,22 @@ } /** * 根据税前求税后 */ @ApiOperation("根据税前求税后") @GetMapping(value = "/taxAfterByTaxBefore") public AjaxResult taxAfterByTaxBefore(@PathVariable BigDecimal taxBefore) { log.info("税前的值为:{}", taxBefore); BigDecimal taxAfter = new BigDecimal(0.0); if (taxBefore != null) { String taxation = TaxtUtils.getTaxation(taxBefore); taxAfter = taxBefore.subtract(new BigDecimal(taxation)); log.info("税前的值为:{}", taxBefore); } return AjaxResult.success(taxAfter); } } ruoyi-project/src/main/java/com/ruoyi/project/domain/vo/SpFinancialExpensesIn.java
@@ -13,29 +13,46 @@ @Data public class SpFinancialExpensesIn extends PageDomain { /** 申请人姓名支持模糊 */ /** * 申请人姓名支持模糊 */ @ApiModelProperty("申请人姓名支持模糊") @Excel(name = "申请人姓名") private String APPLICANT; /** 申请开始日期 */ /** * 申请开始日期 */ @ApiModelProperty("申请开始日期") @Excel(name = "申请开始日期") private String APPLICATIONBEGTIME; /** 申请结束日期 */ /** * 申请结束日期 */ @ApiModelProperty("申请结束日期") @Excel(name = "申请结束日期") private String APPLICATIONENDTIME; /** 审核状态 0:审核; 1:待审; 2:全部; */ /** * 审核状态 0:审核; 1:待审; 2:全部; */ @ApiModelProperty("审核状态") @Excel(name = "审核状态") private int CHECKFLAG; /** 费用类型 0:全部; 其余为具体费用类型 */ /** * 费用类型 0:全部; 其余为具体费用类型 */ @ApiModelProperty("费用类型") @Excel(name = "费用类型") private int APPLYTYPE; /** * 捐献者姓名 */ @ApiModelProperty("捐献者姓名") private String donorname; }