New file |
| | |
| | | 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); }
|
| | | }
|