¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.service.InternalCheckService; |
| | | 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 zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Api(tags = "å
å®¡æ£æ¥") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalCheck") |
| | | public class InternalCheckController { |
| | | |
| | | private InternalCheckService internalCheckService; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å页æ¥è¯¢") |
| | | @PostMapping("/pageInternalCheck") |
| | | public Result<IPage<InternalCheckDto>> pageInternalCheck(Page page,InternalCheck internalCheck) throws Exception { |
| | | return Result.success(internalCheckService.pageInternalCheck(page, internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ°å¢ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ°å¢") |
| | | @PostMapping("/addInternalCheck") |
| | | public Result addInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.addInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
å®¡æ£æ¥ä¿®æ¹") |
| | | @PostMapping("/updateInternalCheck") |
| | | public Result updateInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.updateInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å é¤ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å é¤") |
| | | @GetMapping("/delInternalCheck") |
| | | public Result delInternalCheck(Integer checkId){ |
| | | return Result.success(internalCheckService.delInternalCheck(checkId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ¥ç详æ
") |
| | | @GetMapping("/getInternalCheckOne") |
| | | public Result<InternalCheckDto> getInternalCheckOne(Integer checkId){ |
| | | return Result.success(internalCheckService.getInternalCheckOne(checkId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¹å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ¹å") |
| | | @PostMapping("/ratifyInternalCheck") |
| | | public Result ratifyInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.ratifyInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
å®¡æ£æ¥ |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "导åºå
å®¡æ£æ¥") |
| | | @GetMapping("/exportInternalCheck") |
| | | public void exportInternalCheck(Integer checkId, HttpServletResponse response){ |
| | | internalCheckService.exportInternalCheck(checkId, response); |
| | | } |
| | | |
| | | } |
| | | |