From af61da8b525487eb12813762bc7480bcf8c9b65b Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 29 五月 2025 09:48:13 +0800 Subject: [PATCH] 添加oa流程地址 --- performance-server/src/main/java/com/ruoyi/performance/controller/PerformanceShiftController.java | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/performance-server/src/main/java/com/ruoyi/performance/controller/PerformanceShiftController.java b/performance-server/src/main/java/com/ruoyi/performance/controller/PerformanceShiftController.java index ecdabdb..b49c9f8 100644 --- a/performance-server/src/main/java/com/ruoyi/performance/controller/PerformanceShiftController.java +++ b/performance-server/src/main/java/com/ruoyi/performance/controller/PerformanceShiftController.java @@ -63,19 +63,19 @@ } @ApiOperation(value = "鏈堜唤鍒嗛〉鏌ヨ") - @PostMapping("page") + @GetMapping("page") public Result<?> performanceShiftPage(Integer size, Integer current, String time, String userName, String laboratory) { return Result.success(performanceShiftService.performanceShiftPage(new Page<>(current, size), time, userName, laboratory)); } @ApiOperation(value = "骞翠唤鍒嗛〉鏌ヨ") - @PostMapping("pageYear") + @GetMapping("pageYear") public Result<?> performanceShiftPageYear(Integer size, Integer current, String time, String userName, String laboratory) { return Result.success(performanceShiftService.performanceShiftPageYear(new Page<>(current, size), time, userName, laboratory)); } @ApiOperation(value = "鐝鐘舵�佷慨鏀�") - @PutMapping("update") + @PostMapping("update") public Result<?> performanceShiftUpdate(@RequestBody PerformanceShift performanceShift) { performanceShiftService.performanceShiftUpdate(performanceShift); return Result.success(); @@ -114,7 +114,6 @@ @ApiOperation(value = "涓存椂鎺ュ彛-娣诲姞7鏈堜唤8鏈堜唤鐨勬暟鎹�") @GetMapping("temporaryInterface") public void temporaryInterface() { - System.out.println("寮�濮嬬粰姣忎釜浜鸿繘琛屾帓鐝�,榛樿鏃╃彮======start"); // TODO 缁欐瘡涓汉閮借繘琛屾帓鐝�(榛樿鏃╃彮) PerformanceShiftAddDto performanceShiftAddDto = new PerformanceShiftAddDto(); //鐝--鏃�(鏌ヨ瀛楀吀) @@ -140,13 +139,11 @@ endOfWeek = startOfWeek.plusDays(6); LocalDateTime startDateTime = LocalDateTime.of(startOfWeek, LocalTime.MIDNIGHT); LocalDateTime endDateTime = LocalDateTime.of(endOfWeek, LocalTime.MIDNIGHT); - System.out.println("Week starts on " + startDateTime + " and ends on " + endDateTime); performanceShiftAddDto.setStartWeek(startDateTime); performanceShiftAddDto.setEndWeek(endDateTime); performanceShiftService.performanceShiftAdd(performanceShiftAddDto); startOfWeek = startOfWeek.plusWeeks(1); } - System.out.println("鎺掔彮缁撴潫======end"); } } -- Gitblit v1.9.3