From 55f7863d800839c868589b63986f6c61ef8e9815 Mon Sep 17 00:00:00 2001 From: baizonghao <1719256278@qq.com> Date: 星期一, 03 四月 2023 10:08:02 +0800 Subject: [PATCH] 本周,本日统计 --- ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml index 0d6f32d..34339ac 100644 --- a/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml +++ b/ycl-platform/src/main/resources/mapper/caseHandler/BaseCaseMapper.xml @@ -308,12 +308,12 @@ <select id="dayCount" resultType="java.lang.Integer"> SELECT - count( 1 ) + count(1) FROM ums_base_case WHERE - YEARWEEK( - date_format( create_time, '%Y-%m-%d' )) = date_format( now(), '%Y-%m-%d' ); + create_time BETWEEN CONCAT( CURDATE(), ' 00:00:00' ) + AND CONCAT( CURDATE(), ' 23:59:59' ); </select> <select id="weekCount" resultType="java.lang.Integer"> SELECT @@ -322,8 +322,8 @@ ums_base_case WHERE YEARWEEK( - date_format( create_time, '%Y-%m-%d' )) = YEARWEEK( - now()); + date_format( create_time, '%Y-%m-%d' ), 1) = YEARWEEK( + now(), 1); </select> <select id="dispatchCount" resultType="java.lang.Integer"> select count(1) -- Gitblit v1.8.0