From e786382e19c697c72c2b519d0acaa4085599e4cc Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期日, 09 三月 2025 19:52:33 +0800 Subject: [PATCH] 增加班次管理 --- app/user/controller/Api.php | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/app/user/controller/Api.php b/app/user/controller/Api.php index 956c6e0..61c6bfe 100644 --- a/app/user/controller/Api.php +++ b/app/user/controller/Api.php @@ -29,4 +29,15 @@ } } + //鍒犻櫎鐝鑰冨嫟鏃堕棿 + public function del_work_plan_time() + { + $id = get_params("id"); + if (Db::name('AttendanceWorkTime')->where('id', $id)->update(['is_del'=>1]) !== false) { + return to_assign(0, "鍒犻櫎鎴愬姛"); + } else { + return to_assign(1, "鍒犻櫎澶辫触"); + } + } + } -- Gitblit v1.9.1