¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | 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.ManageRecordCancel; |
| | | import com.ruoyi.manage.service.ManageRecordCancelService; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | @Api(tags = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordCancel") |
| | | public class ManageRecordCancelController { |
| | | |
| | | @Resource |
| | | private ManageRecordCancelService manageRecordCancelService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/pageManageRecordCancel") |
| | | public Result pageManageRecordCancel(Page page,ManageRecordCancel manageRecordCancel) throws Exception { |
| | | return Result.success(manageRecordCancelService.pageManageRecordCancel(page, manageRecordCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/addManageRecordCancel") |
| | | public Result addManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | manageRecordCancel.setCreateTime(LocalDate.now()); |
| | | return Result.success(manageRecordCancelService.save(manageRecordCancel)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ç¼è¾ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/doManageRecordCancel") |
| | | public Result doManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | return Result.success(manageRecordCancelService.updateById(manageRecordCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/delManageRecordCancel") |
| | | public Result delManageRecordCancel(Integer id){ |
| | | return Result.success(manageRecordCancelService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹åä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/ratifyManageRecordCancel") |
| | | public Result ratifyManageRecordCancel(Integer id,String ratifyState){ |
| | | return Result.success(manageRecordCancelService.ratifyManageRecordCancel(id,ratifyState)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导åºä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/exportOutManageRecordCancel") |
| | | public Result exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCancelService.exportOutManageRecordCancel(manageRecordCancel,response)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/exportInManageRecordCancel") |
| | | public Result exportInManageRecordCancel(MultipartFile file){ |
| | | return Result.success(manageRecordCancelService.exportInManageRecordCancel(file)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |