From 5d7b0a0bbcae6844e2296ef53c3f4c88293dacfe Mon Sep 17 00:00:00 2001 From: jinquanOu <1511349576@qq.com> Date: 星期二, 11 六月 2024 18:18:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/MeetingStatisticController.java | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/MeetingStatisticController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/MeetingStatisticController.java new file mode 100644 index 0000000..027836c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/MeetingStatisticController.java @@ -0,0 +1,72 @@ +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.core.text.Convert; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.domain.MeetingStatistic; +import com.ruoyi.service.MeetingStatisticService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; +import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; + +@RestController +@RequestMapping("/zMeetingStatistic") +public class MeetingStatisticController extends BaseController { + @Autowired + private MeetingStatisticService meetingStatisticService; + + /** + * 鍏ㄩ儴鏁版嵁 + */ + @GetMapping("/all") + public AjaxResult listAll(MeetingStatistic meetingStatistic){ + Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); + Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); + return meetingStatisticService.selectDataList(meetingStatistic, pageNum, pageSize); + } + /** + * 鏍规嵁id,鑾峰彇浼氳璁板綍璇︾粏淇℃伅 + */ + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return success(meetingStatisticService.getById(id)); + } + + /** + * 鍙緭鍑哄搴彿鍜屽垱寤烘椂闂� + */ + @GetMapping("/one") + public AjaxResult listOne(MeetingStatistic meetingStatistic){ + return meetingStatisticService.DataList(meetingStatistic); + } + /** + * 淇敼浼氳缁熻 + */ + @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); } +} -- Gitblit v1.9.1