| | |
| | | package com.yuanchu.mom.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.CustomClazzName; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | | import com.yuanchu.mom.vo.Result; |
| | | 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.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * 文件审批记录(含修订后再次审批记录) 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @author |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordCheck") |
| | | @CustomClazzName(name = "体系管理要求", index = 10) |
| | | |
| | | public class ManageRecordCheckController { |
| | | |
| | | @Resource |
| | |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "导出文件审批记录") |
| | | @PostMapping("/exportOutManageRecordCheck") |
| | | public Result exportOutManageRecordCheck(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception { |
| | | ManageRecordCheck manageRecordCheck = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordCheck.class); |
| | | return Result.success(manageRecordCheckService.exportOutManageRecordCheck(manageRecordCheck,response)); |
| | | @GetMapping("/exportOutManageRecordCheck") |
| | | public void exportOutManageRecordCheck(String documentName,String documentCode, HttpServletResponse response) throws Exception { |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | if (ObjectUtils.isNotEmpty(documentName)) { |
| | | manageRecordCheck.setDocumentName(documentName); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(documentCode)) { |
| | | manageRecordCheck.setDocumentCode(documentCode); |
| | | } |
| | | manageRecordCheckService.exportOutManageRecordCheck(manageRecordCheck,response); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |