¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.pojo.ManageReviewReport; |
| | | import com.ruoyi.manage.service.ManageReviewReportService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡æ¥å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewReport") |
| | | public class ManageReviewReportController { |
| | | |
| | | @Resource |
| | | private ManageReviewReportService manageReviewReportService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ç®¡çè¯å®¡æ¥å") |
| | | @GetMapping("/getPageReviewReport") |
| | | public Result<IPage<ManageReviewReport>> getPageReviewReport(Page page, String startTime, String endTime, String place) { |
| | | IPage<ManageReviewReport> ipage = manageReviewReportService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/addReviewReport") |
| | | public Result addReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.save(manageReviewReport)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾ç®¡çè¯å®¡æ¥å") |
| | | @PutMapping("/modifyReviewReport") |
| | | public Result modifyReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.updateById(manageReviewReport)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ç®¡çè¯å®¡æ¥å") |
| | | @DeleteMapping("/deleteReviewReport") |
| | | public Result deleteReviewReport(Integer id){ |
| | | return Result.success(manageReviewReportService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¸è½½ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/exportReviewReport") |
| | | public void exportReviewReport(Integer id , HttpServletResponse response){ |
| | | manageReviewReportService.exportReviewReport(id,response); |
| | | } |
| | | } |