From bc9d5f232f55ca5a98e140252288f56ae23e6793 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 27 五月 2026 14:16:12 +0800
Subject: [PATCH] 编辑采购台账报错异常

---
 src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java b/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
index 9f5d82c..c48d766 100644
--- a/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
+++ b/src/main/java/com/ruoyi/staff/controller/StaffSchedulingController.java
@@ -14,7 +14,7 @@
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletResponse;
 import java.util.List;
 
 /**
@@ -35,24 +35,35 @@
        return AjaxResult.success(staffSchedulingService.listPage(vo));
     }
 
+    @Log(title = "鍛樺伐鎺掔彮", businessType = BusinessType.INSERT)
     @PostMapping("/save")
     public AjaxResult save(@RequestBody @Validated SaveStaffSchedulingDto saveStaffSchedulingDto){
         staffSchedulingService.saveStaffScheduling(saveStaffSchedulingDto);
         return AjaxResult.success();
     }
 
+    @Log(title = "鍛樺伐鎺掔彮", businessType = BusinessType.DELETE)
     @DeleteMapping("/delByIds")
     public AjaxResult delByIds(@RequestBody List<Integer> ids){
         staffSchedulingService.removeByIds(ids);
         return AjaxResult.success();
     }
 
+    @Log(title = "鍛樺伐鎺掔彮", businessType = BusinessType.DELETE)
     @DeleteMapping("/del/{id}")
     public AjaxResult del(@PathVariable("id") Integer id){
         staffSchedulingService.removeById(id);
         return AjaxResult.success();
     }
 
+    /**
+     * 鑾峰彇褰撳墠鐢ㄦ埛鏈�鏂版帓鐝褰�
+     */
+    @GetMapping("/getCurrentUserLatestScheduling")
+    public AjaxResult getCurrentUserLatestScheduling(){
+        return AjaxResult.success(staffSchedulingService.getCurrentUserLatestScheduling());
+    }
+
     @Log(title = "瀵煎嚭浜哄憳鎺掔彮鍒楄〃", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response ) {

--
Gitblit v1.9.3