From 00e066b1b6c1f2c5e94adfcf50b49cf2a3d682d0 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 12 九月 2023 13:43:02 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
index e563bbb..982ecc3 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -156,10 +156,16 @@
             list = list.stream().filter(obj -> obj.getDonorname().contains(spFinancialExpensesIn.getDonorname())).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());
+
+        }
+
         Collections.sort(list, new Comparator<SpFinancialExpensesFundOut>() {
             @Override
             public int compare(SpFinancialExpensesFundOut o1, SpFinancialExpensesFundOut o2) {
-                return o2.getCreateTime().compareTo(o1.getCreateTime());
+                return o1.getCreateTime().compareTo(o2.getCreateTime());
             }
         });
         return getCustomDataTable(list, pageNum, pageSize);
@@ -1108,10 +1114,18 @@
                 bz += f.getDepositbank() == null ? "" : f.getDepositbank() + ": ";
                 bz += f.getBankcardno() == null ? "" : f.getBankcardno() + "锛�";
                 bz += "閲戦 : " + f.getAmount() + "鍏�";
-                bz += System.lineSeparator();
+                bz += "<w:br/>";
+            }
+            if (serviceFund.getApplytype().equals("4")) {
+                i = i + 1;
+                bz += f.getBeneficiaryname() == null ? "(" + i + ")" : "(" + i + ")" + f.getBeneficiaryname() + "锛�";
+                bz += f.getDepositbank() == null ? "" : f.getDepositbank() + ": ";
+                bz += f.getBankcardno() == null ? "" : f.getBankcardno() + "锛�";
+                bz += "閲戦 : " + f.getAmount() + "鍏�";
+                bz += "<w:br/>";
             }
 
-            String fyxm = f.getItemname() == null ? "" : f.getItemname();
+            String fyxm = "";
             fyxm += f.getItemname() == null ? "" : f.getItemname();
             fyxm += f.getAmount() + "鍏�";
             map.put("FYXM", fyxm);
@@ -1127,7 +1141,7 @@
 //        dataMap.put("JEDS", convert(serviceFund.getAmountrequested()) + "鏁�");
         //澶囨敞閲屾斁鐨勬槸缁忓姙浜虹殑閾惰鍗′俊鎭�
 
-        dataMap.put("BXBZ", serviceFund.getApplytype().equals("3") ? bz : infoByUserNo == null ? "" : infoByUserNo.getBranchbankname() + "  " + infoByUserNo.getBankcardno());
+        dataMap.put("BXBZ", serviceFund.getApplytype().equals("3") || serviceFund.getApplytype().equals("4") ? bz : infoByUserNo == null ? "" : infoByUserNo.getBranchbankname() + "  " + infoByUserNo.getBankcardno());
         dataMap.put("YZ", serviceFund.getPresident() == null ? "" : serviceFund.getPresident());
         dataMap.put("CWFYZ", serviceFund.getFinvicepresident() == null ? "" : serviceFund.getFinvicepresident());
         dataMap.put("YWFYZ", serviceFund.getBusvicepresident() == null ? "" : serviceFund.getBusvicepresident());

--
Gitblit v1.9.3