From d7541941e2878674226c8c98cf5796ef0b33d3c4 Mon Sep 17 00:00:00 2001 From: sh Date: Thu, 12 Feb 2026 17:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B1=87=E6=80=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1,=E5=8F=AA=E6=9F=A5=E8=AF=A2=E5=96=80=E4=BB=80?= =?UTF-8?q?=E7=9A=84=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/app/StaticsMapper.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ruoyi-bussiness/src/main/resources/mapper/app/StaticsMapper.xml b/ruoyi-bussiness/src/main/resources/mapper/app/StaticsMapper.xml index 16eec33..153f298 100644 --- a/ruoyi-bussiness/src/main/resources/mapper/app/StaticsMapper.xml +++ b/ruoyi-bussiness/src/main/resources/mapper/app/StaticsMapper.xml @@ -12,12 +12,12 @@ job_stats AS ( SELECT COUNT(*) AS 归集岗位合计,sum(case when type='4' then 1 else 0 end) 零工岗位数量, sum(case when type='4' then COALESCE(vacancies,0) else 0 end) 零工招聘人数 FROM job, time_params tp - WHERE del_flag='0' and (tp.start_time IS NULL OR posting_date >= tp.start_time) + WHERE del_flag='0' and region_code like '6531%' and (tp.start_time IS NULL OR posting_date >= tp.start_time) AND (tp.end_time IS NULL OR posting_date < tp.end_time) ), company_stats AS ( SELECT COUNT(company_id) AS 注册企业数 FROM company, time_params tp - WHERE del_flag='0' + WHERE del_flag='0' and region_code like '6531%' AND (tp.start_time IS NULL OR create_time >= tp.start_time) AND (tp.end_time IS NULL OR create_time < tp.end_time) ), @@ -45,8 +45,9 @@ cm.map_key, cm.code, COUNT(company_id) AS zcqys, SUM(CASE - WHEN = CAST(#{startTime} AS timestamp) ]]> - + = CAST(#{startTime} AS timestamp) + AND create_time <= CAST(#{endTime} AS timestamp) ]]> THEN 1 ELSE 0 END) AS xzcqys FROM company c LEFT JOIN area_code_mapping cm ON SUBSTRING(c.region_code, 1, 6) = cm.code