¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.ManageReviewProgram; |
| | | import com.ruoyi.manage.service.ManageReviewProgramService; |
| | | 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-09 03:05:42 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡è®¡å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewProgram") |
| | | public class ManageReviewProgramController { |
| | | @Resource |
| | | private ManageReviewProgramService manageReviewProgramService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢è¯å®¡è®¡å") |
| | | @GetMapping("/getPageReviewProgram") |
| | | public Result<IPage<ManageReviewProgram>> getPageReviewProgram(Page page, String startTime,String endTime, String judgingLocation) throws Exception { |
| | | IPage<ManageReviewProgram> ipage = manageReviewProgramService.page(page,startTime,endTime,judgingLocation); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ°å¢è¯å®¡è®¡å") |
| | | @PostMapping("/addReviewProgram") |
| | | public Result addReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.addReviewProgram(manageReviewProgram)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾è¯å®¡è®¡å") |
| | | @PutMapping("/modifyReviewProgram") |
| | | public Result modifyReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.updateById(manageReviewProgram)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤è¯å®¡è®¡å") |
| | | @DeleteMapping("/deleteReviewProgram") |
| | | public Result deleteReviewProgram( Integer id){ |
| | | return Result.success(manageReviewProgramService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¸è½½è¯å®¡è®¡å") |
| | | @PostMapping("/exportReviewProgram") |
| | | public void exportReviewProgram(Integer id, HttpServletResponse response){ |
| | | manageReviewProgramService.exportReviewProgram(id,response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |