| | |
| | | import org.springblade.mdm.gkw.programnode.vo.MachineFileChangeHisQueryVO; |
| | | import org.springblade.mdm.gkw.programnode.vo.MachineFileChangeHisVO; |
| | | import org.springblade.mdm.gkw.programnode.vo.MachineFileQueryVO; |
| | | import org.springblade.mdm.program.vo.CompareDataVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | public R<IPage<MachineFileChangeHisVO>> changeHisPage(MachineFileChangeHisQueryVO query) { |
| | | return R.data(machineFileChangeHisService.pageQuery(query)); |
| | | } |
| | | |
| | | @GetMapping("/his-compare") |
| | | @Operation(summary = "对比历史文件内容", description = "对比历史文件内容") |
| | | public R<CompareDataVO> machineFileSave(Long id) { |
| | | try { |
| | | CompareDataVO vo =machineFileService.queryHisContentForCompare(id); |
| | | return R.data(vo); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage()); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |