From 6b6bb27969ff1043d2876d763a76fc7b76cc2338 Mon Sep 17 00:00:00 2001 From: zhangyue Date: Wed, 1 Apr 2026 13:45:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9F=B9=E8=AE=AD=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E8=AF=A2=E7=9A=84=E6=97=B6=E9=97=B4=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E8=BF=87=E6=BB=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/TrainingUserMapper.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web-infrastructure/src/main/resources/mapper/TrainingUserMapper.xml b/web-infrastructure/src/main/resources/mapper/TrainingUserMapper.xml index 46b1e1a..e13adf1 100644 --- a/web-infrastructure/src/main/resources/mapper/TrainingUserMapper.xml +++ b/web-infrastructure/src/main/resources/mapper/TrainingUserMapper.xml @@ -87,13 +87,15 @@ u.org_id, u.env, u.open_id, - tu.phone, - case when tu.start_time < now() and tu.end_time > now() then 1 else 0 end stateFlag + tu.phone +-- case when tu.start_time < now() and tu.end_time > now() then 1 else 0 end stateFlag from user u left join training_user tu on tu.phone = u.username and tu.delete_enum = 'FALSE' and u.delete_enum = 'FALSE' + and tu.start_time < now() + and tu.end_time > now() and u.id != u.corpinfo_id @@ -170,13 +172,15 @@ u.org_id, u.env, u.open_id, - tu.phone, - case when tu.start_time < now() and tu.end_time > now() then 1 else 0 end stateFlag + tu.phone +-- case when tu.start_time < now() and tu.end_time > now() then 1 else 0 end stateFlag from user u left join training_user tu on tu.phone = u.username and tu.delete_enum = 'FALSE' and u.delete_enum = 'FALSE' + and tu.start_time < now() + and tu.end_time > now() and u.id != u.corpinfo_id