| | |
| | | if (StringUtils.isNotEmpty(spFinancialExpensesIn.getDonorname())) { |
| | | list = list.stream().filter(obj -> obj.getDonorname().contains(spFinancialExpensesIn.getDonorname())).collect(Collectors.toList()); |
| | | } |
| | | |
| | | //通过业务组过滤 |
| | | if (StringUtils.isNotEmpty(spFinancialExpensesIn.getDeptnos())) { |
| | | list = list.stream().filter(obj -> obj.getDeptmentno().contains(spFinancialExpensesIn.getDeptnos())).collect(Collectors.toList()); |
| | | } |
| | | //通过金额过滤 |
| | | if (spFinancialExpensesIn.getMoney() != null) { |
| | | list = list.stream().filter(reimbursementOut -> new BigDecimal(reimbursementOut.getPretaxcost()).compareTo(new BigDecimal(spFinancialExpensesIn.getMoney())) == 0).collect(Collectors.toList()); |
| | |
| | | if (APPLICATIONENDTIME == null) { |
| | | APPLICATIONENDTIME = ""; |
| | | } |
| | | |
| | | //startPage(); |
| | | List<SpFinancialExpensesReimbursementOut> list = serviceReimbursementService.getListBypower(loginUser.getUsername(), 1, APPLICANT, APPLICATIONBEGTIME, APPLICATIONENDTIME, loginUser.getDeptId().toString(), CHECKFLAG, APPLYTYPE, checkstatus, donorname); |
| | | //根据经办人筛选 |
| | |
| | | list = list.stream().filter(reimbursementOut -> new BigDecimal(reimbursementOut.getAmountrequested()).compareTo(new BigDecimal(spFinancialExpensesIn.getMoney())) == 0).collect(Collectors.toList()); |
| | | |
| | | } |
| | | //根据业务组筛选 |
| | | if (StringUtils.isNotBlank(spFinancialExpensesIn.getDeptnos())) { |
| | | list = list.stream().filter(reimbursementOut -> reimbursementOut.getDeptmentno().contains(spFinancialExpensesIn.getDeptnos())).collect(Collectors.toList()); // 按name字段过滤 |
| | | } |
| | | //根据创建时间排序 |
| | | Collections.sort(list, new Comparator<SpFinancialExpensesReimbursementOut>() { |
| | | @Override |
| | |
| | | package com.ruoyi.project.domain.vo; |
| | | |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.page.PageDomain; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | public class SpFinancialExpensesIn extends PageDomain { |
| | |
| | | private Double money; |
| | | |
| | | /** |
| | | * 金额 |
| | | * 预审状态 |
| | | */ |
| | | @ApiModelProperty("金额") |
| | | @ApiModelProperty("预审状态") |
| | | private Integer checkstatus; |
| | | /** |
| | | * 业务组 |
| | | */ |
| | | @ApiModelProperty("业务组") |
| | | private String deptnos; |
| | | } |