From 982be46985d82e8fc5e5e4bd58a4f46c974fdb3c Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Wed, 14 Aug 2024 18:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=9E=90=E9=A1=B5=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=EF=BC=9Ax=E8=BD=B4=E9=95=BF=E5=BA=A6=E7=BC=A9=E7=9F=AD?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/plan/PlanMapper.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plan/PlanMapper.xml b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plan/PlanMapper.xml index d25b0150d..dbcc2eae8 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plan/PlanMapper.xml +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/resources/mapper/plan/PlanMapper.xml @@ -128,16 +128,16 @@ select count(p.id) as count - ,QUARTER(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', QUARTER(p.create_time)) as date - ,MONTH(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time)) as date - ,FLOOR((DayOfMonth(p.create_time)-1)/7)+1 AS date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', FLOOR((DayOfMonth(p.create_time)-1)/7)+1) AS date - ,DAY(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', DAY(p.create_time)) as date from order_plan p where p.organ_id = #{req.organId} @@ -150,16 +150,16 @@ resultType="com.cf.imes.module.executor.controller.admin.plan.vo.OrderPlanStatisticsAreaRespVO"> select sum(op.area) areaSum - ,QUARTER(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', QUARTER(p.create_time)) as date - ,MONTH(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time)) as date - ,FLOOR((DayOfMonth(p.create_time)-1)/7)+1 AS date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', FLOOR((DayOfMonth(p.create_time)-1)/7)+1) AS date - ,DAY(p.create_time) as date + ,CONCAT(YEAR(p.create_time), '-', MONTH(p.create_time), '-', DAY(p.create_time)) as date from order_plan p join order_plan_item opi on p.id = opi.plan_id and opi.organ_id = #{req.organId}