| | |
| | | Collections.sort(list, new Comparator<SpFinancialExpensesFundOut>() { |
| | | @Override |
| | | public int compare(SpFinancialExpensesFundOut o1, SpFinancialExpensesFundOut o2) { |
| | | return o1.getApplyTime().compareTo(o2.getApplyTime()); |
| | | return o2.getApplyTime().compareTo(o1.getApplyTime()); |
| | | } |
| | | }); |
| | | return getCustomDataTable(list, pageNum, pageSize); |
| | |
| | | import com.ruoyi.project.domain.ServiceFund; |
| | | import com.ruoyi.project.domain.ServiceFundtax; |
| | | import com.ruoyi.project.domain.vo.FundTaxVO; |
| | | import com.ruoyi.project.domain.vo.SpFinancialExpensesFundOut; |
| | | import com.ruoyi.project.service.IServiceFundService; |
| | | import com.ruoyi.project.service.IServiceFundtaxService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | public TableDataInfo list(ServiceFundtax serviceFundtax) { |
| | | startPage(); |
| | | List<ServiceFundtax> list = serviceFundtaxService.queryList(serviceFundtax); |
| | | Collections.sort(list, (sft1, sft2) -> { |
| | | Long i = sft2.getId() - sft1.getId(); |
| | | return i.intValue(); |
| | | }); |
| | | // list.sort(Comparator.comparing(ServiceFundtax::getCreateTime, Comparator.nullsLast(Comparator.reverseOrder()))); |
| | | return getDataTable(list); |
| | | } |
| | | // |
| | |
| | | Collections.sort(list, new Comparator<SpFinancialExpensesReimbursementOut>() { |
| | | @Override |
| | | public int compare(SpFinancialExpensesReimbursementOut o1, SpFinancialExpensesReimbursementOut o2) { |
| | | return o1.getApplyTime().compareTo(o2.getApplyTime()); |
| | | return o2.getApplyTime().compareTo(o1.getApplyTime()); |
| | | } |
| | | }); |
| | | return getCustomDataTable(list, pageNum, pageSize); |
| | |
| | | if (StringUtils.isNotBlank(serviceFundtax.getUpdownremark())) { |
| | | wrappers.eq(ServiceFundtax::getUpdownremark, serviceFundtax.getUpdownremark()); |
| | | } |
| | | wrappers.orderByDesc(ServiceFundtax::getCreateTime); |
| | | return this.list(wrappers); |
| | | } |
| | | |
| | |
| | | wrappers.between(ServiceReimbursement::getCreateTime ,serviceReimbursement.getStarttime(),serviceReimbursement.getEndtime()); |
| | | }*/ |
| | | |
| | | wrappers.orderByDesc(ServiceReimbursement::getApplyTime); |
| | | return this.list(wrappers); |
| | | } |
| | | |