From c0d52001041cd7806cac800611489172b335e4b0 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 23 一月 2024 16:35:20 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java index 5121488..39c7e8d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java @@ -207,6 +207,7 @@ } Map<String, Object> map = new HashMap<>(); map.put("downloadUrl", "/profile/download/wordtemplate/" + name + ".doc"); + map.put("downloadName", name + ".doc"); return map; } @@ -310,18 +311,18 @@ dataMap.put("ZDMCG", donationWitness.getAortacannulatime() == null ? "" : sformat.format(donationWitness.getAortacannulatime())); dataMap.put("ZDMGZ", donationWitness.getAortaperfusiontime() == null ? "" : sformat.format(donationWitness.getAortaperfusiontime())); - if (donationWitness.getIsrestoreremains() == 0) { + if (donationWitness.getIsrestoreremains() != null && donationWitness.getIsrestoreremains() == 0) { dataMap.put("HFYT", "鈻�"); dataMap.put("BHFYT", (char) 8730); - } else if (donationWitness.getIsrestoreremains() == 1) { + } else if (donationWitness.getIsrestoreremains() != null && donationWitness.getIsrestoreremains() == 1) { dataMap.put("HFYT", (char) 8730); dataMap.put("BHFYT", "鈻�"); } - if (donationWitness.getIsspendremember() == 0) { + if (donationWitness.getIsspendremember() != null && donationWitness.getIsspendremember() == 0) { dataMap.put("MA", "鈻�"); dataMap.put("BMA", (char) 8730); - } else if (donationWitness.getIsspendremember() == 1) { + } else if (donationWitness.getIsspendremember() != null && donationWitness.getIsspendremember() == 1) { dataMap.put("MA", (char) 8730); dataMap.put("BMA", "鈻�"); } -- Gitblit v1.9.3