From b02d40fe80d242206cbddf7bcf7197d004d53016 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Sat, 25 Mar 2023 22:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=9A=84=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../universitiesCollegesJurisdictionCurriculumResources.md | 4 ++-- .../jlw/universitiesCollegesJurisdictionExperimentalSystem.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionCurriculumResources.md b/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionCurriculumResources.md index 03ef9a91..60283743 100644 --- a/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionCurriculumResources.md +++ b/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionCurriculumResources.md @@ -430,5 +430,5 @@ getAllOverdueAuthByBeforeAndAfterDays from universities_colleges_jurisdiction_curriculum_resources t left join course_info ta on ta.course_info_id = t.course_info_id where 1 = 1 - AND now() between CONCAT(DATE_FORMAT(date_add(t.use_end_time, interval #beforeDays# day), '%Y-%m-%d'), ' 00:00:00') - AND CONCAT(DATE_FORMAT(date_add(t.use_end_time, interval #afterDays# day), '%Y-%m-%d'), ' 23:59:59') + AND now() BETWEEN date_add( t.use_end_time, INTERVAL -#beforeDays# DAY ) + AND date_add( t.use_end_time, INTERVAL #afterDays# DAY ) diff --git a/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionExperimentalSystem.md b/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionExperimentalSystem.md index a1817870..b0689b64 100644 --- a/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionExperimentalSystem.md +++ b/web/src/main/resources/sql/jlw/universitiesCollegesJurisdictionExperimentalSystem.md @@ -237,6 +237,6 @@ getAllOverdueAuthByBeforeAndAfterDays from universities_colleges_jurisdiction_experimental_system t left join resources_application ta on ta.resources_application_id = t.type_id where 1 = 1 - AND now() between CONCAT(DATE_FORMAT(date_add(t.use_end_time, interval -#beforeDays# day), '%Y-%m-%d'), ' 00:00:00') - AND CONCAT(DATE_FORMAT(date_add(t.use_end_time, interval #afterDays# day), '%Y-%m-%d'), ' 23:59:59') + AND now() BETWEEN date_add( t.use_end_time, INTERVAL -#beforeDays# DAY ) + AND date_add( t.use_end_time, INTERVAL #afterDays# DAY )