liusheng
2024-02-05 22f2171b2f5a5cd594ea027860207bf3646f1f9d
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonationwitnessController.java
@@ -124,11 +124,11 @@
    @ApiOperation("新增捐献见证")
    //@PreAuthorize("@ss.hasPermi('project:donationwitness:add')")
    @Log(title = "捐献见证", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    @RepeatSubmit
    public AjaxResult add(@RequestBody ServiceDonationwitness serviceDonationwitness) {
        return toAjax(serviceDonationwitnessService.save(serviceDonationwitness));
        boolean save = serviceDonationwitnessService.save(serviceDonationwitness);
        return AjaxResult.success(serviceDonationwitness);
    }
    /**
@@ -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", "□");
        }