| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | |
| | | import java.io.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | //import javafx.scene.input.DataFormat; |
| | | |
| | | |
| | | /** |
| | |
| | | * 查询捐献基础列表 |
| | | */ |
| | | @ApiOperation("潜在捐献信息列表") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:list')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | | log.info("潜在捐献信息列表:{}", serviceDonatebaseinfo); |
| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出捐献基础列表 |
| | | */ |
| | | @ApiOperation("导出潜在捐献信息列表") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:export')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:export')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(ServiceDonatebaseinfo serviceDonatebaseinfo) { |
| | |
| | | * 获取捐献基础详细信息 |
| | | */ |
| | | @ApiOperation("通过id获得潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:query')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | log.info("通过id获得潜在捐献信息:{}", id); |
| | |
| | | * 新增捐献基础 |
| | | */ |
| | | @ApiOperation("新增潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:add')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:add')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | |
| | | * 修改捐献基础 |
| | | */ |
| | | @ApiOperation("修改潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:edit')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:edit')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | |
| | | * 删除捐献基础 |
| | | */ |
| | | @ApiOperation("删除潜在捐献信息") |
| | | //@PreAuthorize("@ss.hasPermi('project:donatebaseinfo:remove')") |
| | | //// @PreAuthorize("@ss.hasPermi('project:donatebaseinfo:remove')") |
| | | @Log(title = "捐献基础", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |