| | |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | } |
| | | /* |
| | | @Operation(summary = "dnc回传数据分页", description = "dnc回传数据分页") |
| | | @GetMapping("/page") |
| | | public R<IPage<DncSendBackData>> page(Query query) { |
| | | IPage<DncSendBackData> pages = ncProgramExchangeService.dncSendBackPageQuery(query); |
| | | return R.data(pages); |
| | | @GetMapping("/back-file-content") |
| | | @Operation(summary = "获取回传文件内容", description = "查看工控网回传文件内容") |
| | | public R<String> fileContent(@Parameter(description = "文件的entryName") String entryName) { |
| | | try { |
| | | return R.data(dncSendBackService.getEntryFileContent(entryName)); |
| | | }catch(Exception e) { |
| | | log.error("删除文件失败",e); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | } |
| | | */ |
| | | @PostMapping("accept") |
| | | @ApiOperationSupport(order = 2) |
| | | @Operation(summary = "DNC回传数据入库", description = "入库,同时启动固化流程,入参为上传是解析的数据列表") |