| | |
| | | @Autowired |
| | | private SummarizeService summarizeService; |
| | | @GetMapping("/getSummarize") |
| | | public ResponseResult<FlyInfo> getSummarize(@RequestParam String itemId){ |
| | | FlyInfo summarize=summarizeService.findData(itemId); |
| | | public ResponseResult<FlyInfo> getSummarize(@RequestParam String workspaceId){ |
| | | FlyInfo summarize=summarizeService.findData(workspaceId); |
| | | return ResponseResult.success(summarize); |
| | | } |
| | | @PutMapping("/upSummarize") |
| | | public ResponseResult upSummarize(@RequestBody FlyInfo summarize){ |
| | | FlyInfo flyInfo= FlyInfo.builder() |
| | | .id(summarize.getId()) |
| | | .itemId(summarize.getItemId()) |
| | | .workspaceId(summarize.getWorkspaceId()) |
| | | .hour(summarize.getHour()) |
| | | .min(summarize.getMin()) |
| | | .flyCount(summarize.getFlyCount()) |