|  |  | 
 |  |  | import com.ruoyi.common.enums.BusinessType; | 
 |  |  | import com.ruoyi.common.enums.OrganEnum; | 
 |  |  | import com.ruoyi.common.exception.base.BaseException; | 
 |  |  | import com.ruoyi.common.utils.bean.DtoConversionUtils; | 
 |  |  | import com.ruoyi.common.utils.poi.ExcelUtil; | 
 |  |  | import com.ruoyi.project.domain.ServiceDonatecompletioninfo; | 
 |  |  | import com.ruoyi.project.domain.ServiceDonateorgan; | 
 |  |  | 
 |  |  |      * 查询捐献完成列表 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("查询捐献完成列表") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:list')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:list')") | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     public TableDataInfo list(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { | 
 |  |  |         log.info("查询捐献完成列表:{}", serviceDonatecompletioninfo); | 
 |  |  | 
 |  |  |      * 导出捐献完成列表 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("导出捐献完成列表") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:export')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:export')") | 
 |  |  |     @Log(title = "捐献完成", businessType = BusinessType.EXPORT) | 
 |  |  |     @GetMapping("/export") | 
 |  |  |     public AjaxResult export(ServiceDonatecompletioninfo serviceDonatecompletioninfo) { | 
 |  |  | 
 |  |  |      * 获取捐献完成详细信息 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("通过id获取某一条捐献完成信息") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:query')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:query')") | 
 |  |  |     @GetMapping(value = "/{id}") | 
 |  |  |     public AjaxResult getInfo(@PathVariable("id") Long id) { | 
 |  |  |         log.info("通过id获取某一条捐献完成信息:{}", id); | 
 |  |  | 
 |  |  |      * 新增捐献完成 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("新增捐献完成") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:add')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:add')") | 
 |  |  |     @Log(title = "捐献完成", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @RepeatSubmit(interval = 5000) | 
 |  |  |     public AjaxResult add(@RequestBody ServiceDonatecompletioninfo serviceDonatecompletioninfo) { | 
 |  |  |         log.info("新增捐献完成:{}", serviceDonatecompletioninfo); | 
 |  |  |         serviceDonatecompletioninfoService.delDuplicateDonateCompletioninfo(serviceDonatecompletioninfo.getInfoid(), serviceDonatecompletioninfo.getCreateBy()); | 
 |  |  |         return toAjax(serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo)); | 
 |  |  |         boolean save = serviceDonatecompletioninfoService.save(serviceDonatecompletioninfo); | 
 |  |  |         log.info("新增捐献完成serviceDonatecompletioninfo的ID:{}", serviceDonatecompletioninfo.getId()); | 
 |  |  |         return AjaxResult.success(serviceDonatecompletioninfo); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    /** | 
 |  |  | //     * 新增捐献完成详情 | 
 |  |  | //     */ | 
 |  |  | //    @ApiOperation("新增捐献完成详情") | 
 |  |  | //    //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:add')") | 
 |  |  | //    //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:add')") | 
 |  |  | //    @Log(title = "新增捐献完成详情", businessType = BusinessType.INSERT) | 
 |  |  | //    @PostMapping | 
 |  |  | //    @RepeatSubmit(interval = 5000) | 
 |  |  | 
 |  |  |  | 
 |  |  |     @RepeatSubmit | 
 |  |  |     @ApiOperation("新增或修改捐献完成") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:edit')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:edit')") | 
 |  |  |     @Log(title = "捐献完成", businessType = BusinessType.UPDATE) | 
 |  |  |     @PostMapping("/saveOrUpdateDonatecompletioninfo") | 
 |  |  |     public AjaxResult saveOrUpdateDonatecompletioninfo(@RequestBody List<ServiceDonatecompletioninfo> serviceDonatecompletioninfoList) { | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @RepeatSubmit | 
 |  |  |     @ApiOperation("修改捐献完成") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:edit')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:edit')") | 
 |  |  |     @Log(title = "捐献完成", businessType = BusinessType.UPDATE) | 
 |  |  |     @PostMapping("/edit") | 
 |  |  |     public AjaxResult edit(@RequestBody ServiceDonatecompletioninfo serviceDonatecompletioninfo) { | 
 |  |  | 
 |  |  |      * 删除捐献完成 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("删除捐献完成") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:remove')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:donatecompletioninfo:remove')") | 
 |  |  |     @Log(title = "捐献完成", businessType = BusinessType.DELETE) | 
 |  |  |     @GetMapping("/remove/{ids}") | 
 |  |  |     public AjaxResult remove(@PathVariable Long[] ids) { | 
 |  |  | 
 |  |  |         } | 
 |  |  |         Map<String, Object> map = new HashMap<>(); | 
 |  |  |         map.put("downloadUrl", "/profile/download/wordtemplate/" + name + ".doc"); | 
 |  |  |         map.put("downloadName", name + ".doc"); | 
 |  |  |         return map; | 
 |  |  |     } | 
 |  |  |  |