¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.InternalReport; |
| | | import com.ruoyi.manage.service.InternalReportService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Api(tags = "å
审æ¥å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalReport") |
| | | public class InternalReportController { |
| | | |
| | | private InternalReportService internalReportService; |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
审æ¥åå页æ¥è¯¢") |
| | | @PostMapping("/pageInternalReport") |
| | | public Result<IPage<InternalReport>> pageInternalReport(Page page,InternalReport internalReport) throws Exception { |
| | | return Result.success(internalReportService.pageInternalReport(page, internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
审æ¥åæ°å¢") |
| | | @PostMapping("/addInternalReport") |
| | | public Result addInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.save(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
审æ¥åä¿®æ¹") |
| | | @PostMapping("/updateInternalReport") |
| | | public Result updateInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.updateById(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åå é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
审æ¥åå é¤") |
| | | @GetMapping("/delInternalReport") |
| | | public Result delInternalReport(Integer reportId){ |
| | | return Result.success(internalReportService.removeById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
审æ¥åæ¥ç详æ
") |
| | | @GetMapping("/getInternalReportOne") |
| | | public Result<InternalReport> getInternalReportOne(Integer reportId){ |
| | | return Result.success(internalReportService.getById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å®¡æ ¸ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å®¡æ ¸") |
| | | @PostMapping("/examineInternalReport") |
| | | public Result examineInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.ratifyInternalCheck(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åè´¨éè´è´£äººå¡«å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åè´¨éè´è´£äººå¡«å") |
| | | @PostMapping("/qualityInternalReport") |
| | | public Result qualityInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.qualityInternalReport(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审æ¥å |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "导åºå
审æ¥å") |
| | | @GetMapping("/exportInternalReport") |
| | | public void exportInternalReport(Integer reportId, HttpServletResponse response){ |
| | | internalReportService.exportInternalReport(reportId, response); |
| | | } |
| | | |
| | | } |
| | | |