liusheng
2024-03-20 c642194fc7764a59787ac937239f26b27e0dcbad
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceDonateorganstaticsController.java
@@ -20,15 +20,14 @@
/**
 * 捐献案例器官列Controller
 *
 *
 * @author ruoyi
 * @date 2023-12-27
 */
@Api("捐献案例器官列")
@RestController
@RequestMapping("/project/donateorganstatics")
public class ServiceDonateorganstaticsController extends BaseController
{
public class ServiceDonateorganstaticsController extends BaseController {
    @Autowired
    private IServiceDonateorganstaticsService serviceDonateorganstaticsService;
@@ -38,8 +37,7 @@
    @ApiOperation("查询捐献案例器官列列表")
    @PreAuthorize("@ss.hasPermi('project:donateorganstatics:list')")
    @GetMapping("/list")
    public TableDataInfo list(ServiceDonateorganstatics serviceDonateorganstatics)
    {
    public TableDataInfo list(ServiceDonateorganstatics serviceDonateorganstatics) {
        startPage();
        List<ServiceDonateorganstatics> list = serviceDonateorganstaticsService.queryList(serviceDonateorganstatics);
        return getDataTable(list);
@@ -52,8 +50,7 @@
    @PreAuthorize("@ss.hasPermi('project:donateorganstatics:export')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.EXPORT)
    @GetMapping("/export")
    public AjaxResult export(ServiceDonateorganstatics serviceDonateorganstatics)
    {
    public AjaxResult export(ServiceDonateorganstatics serviceDonateorganstatics) {
        List<ServiceDonateorganstatics> list = serviceDonateorganstaticsService.queryList(serviceDonateorganstatics);
        ExcelUtil<ServiceDonateorganstatics> util = new ExcelUtil<ServiceDonateorganstatics>(ServiceDonateorganstatics.class);
        return util.exportExcel(list, "捐献案例器官列数据");
@@ -65,8 +62,7 @@
    @ApiOperation("获取捐献案例器官列详细信息")
    @PreAuthorize("@ss.hasPermi('project:donateorganstatics:query')")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return AjaxResult.success(serviceDonateorganstaticsService.getById(id));
    }
@@ -78,9 +74,9 @@
    @Log(title = "捐献案例器官列", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    @RepeatSubmit
    public AjaxResult add(@RequestBody ServiceDonateorganstatics serviceDonateorganstatics)
    {
        return toAjax(serviceDonateorganstaticsService.save(serviceDonateorganstatics));
    public AjaxResult add(@RequestBody ServiceDonateorganstatics serviceDonateorganstatics) {
        boolean save = serviceDonateorganstaticsService.save(serviceDonateorganstatics);
        return AjaxResult.success(serviceDonateorganstatics);
    }
    /**
@@ -90,9 +86,8 @@
    @PreAuthorize("@ss.hasPermi('project:donateorganstatics:edit')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    @RepeatSubmit
    public AjaxResult edit(@RequestBody ServiceDonateorganstatics serviceDonateorganstatics)
    {
    @RepeatSubmit
    public AjaxResult edit(@RequestBody ServiceDonateorganstatics serviceDonateorganstatics) {
        return toAjax(serviceDonateorganstaticsService.updateById(serviceDonateorganstatics));
    }
@@ -103,8 +98,7 @@
    @PreAuthorize("@ss.hasPermi('project:donateorganstatics:remove')")
    @Log(title = "捐献案例器官列", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(serviceDonateorganstaticsService.removeByIds(Arrays.asList(ids)));
    }
}