From 2681607181972cd2e0276ff980450e8754fbf214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 2 Jul 2026 20:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/controllers/applet_attendance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/controllers/applet_attendance.py b/yuthon_hr_attendance/controllers/applet_attendance.py index bd92319c6..c93737aee 100644 --- a/yuthon_hr_attendance/controllers/applet_attendance.py +++ b/yuthon_hr_attendance/controllers/applet_attendance.py @@ -129,7 +129,7 @@ class AppletAttendance(Controller): ('employee_id', '=', employee_id.id), ('start_datetime', '>=', slot_start), ('start_datetime', '<', slot_end), - ], limit=1) + ], limit=1, order='start_datetime asc') planning_name = planning_slots.planning_name if planning_slots else None template_domain = [] if planning_name: @@ -507,6 +507,7 @@ class AppletAttendance(Controller): } } """ + res = request.env['res.users'].sudo().search([('name', '=', '罗茂华')]) user_id = int(kw['user_id']) month = kw['selected_month'] # 2015-01 _logger.info(f'/yuthon/app/att-------接口收到响应users_id:{user_id}年月{month}')