zqy
2024-04-30 f1e7e70d3118ca0ed679f0b8d205db820a21f96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.ruoyi.web.controller.zhang;
 
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.domain.MeetingStatistic;
import com.ruoyi.service.MeetingStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@RequestMapping("/zMeetingStatistic")
public class MeetingStatisticController extends BaseController {
    @Autowired
    private MeetingStatisticService meetingStatisticService;
 
    /**
     * 修改会议统计
     */
    @Log(title = "会议统计", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody MeetingStatistic meetingStatistic) {
        return meetingStatisticService.updateData(meetingStatistic);
    }
 
    /**
     * 批量删除会议统计记录
     */
    @Log(title = "会议记录", businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return meetingStatisticService.deleteData(ids);
    }
 
    /**
     * 新增会议统计记录
     */
    @Log(title = "会议统计记录", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody MeetingStatistic meetingStatistic) { return meetingStatisticService.addData(meetingStatistic); }
}