From 601d2f9df6efa3de3bbc261d5f63628d8e8be6a9 Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期一, 10 一月 2022 11:20:14 +0800 Subject: [PATCH] bug --- xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/CustomerMapper.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/CustomerMapper.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/CustomerMapper.java index ce1a54e..70f48e6 100644 --- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/CustomerMapper.java +++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/mapper/CustomerMapper.java @@ -16,18 +16,18 @@ int count(); @Select("select \n" + - "sum(case when create_time < '${year}-01' then 1 else 0 end) as january,\n" + - "sum(case when create_time < '${year}-02' then 1 else 0 end) as february,\n" + - "sum(case when create_time < '${year}-03' then 1 else 0 end) as march,\n" + - "sum(case when create_time < '${year}-04' then 1 else 0 end) as april,\n" + - "sum(case when create_time < '${year}-05' then 1 else 0 end) as may,\n" + - "sum(case when create_time < '${year}-06' then 1 else 0 end) as june,\n" + - "sum(case when create_time < '${year}-07' then 1 else 0 end) as july,\n" + - "sum(case when create_time < '${year}-08' then 1 else 0 end) as august,\n" + - "sum(case when create_time < '${year}-09' then 1 else 0 end) as september,\n" + - "sum(case when create_time < '${year}-10' then 1 else 0 end) as october,\n" + - "sum(case when create_time < '${year}-11' then 1 else 0 end) as november,\n" + - "sum(case when create_time < '${year}-12' then 1 else 0 end) as december\n" + + "sum(case when create_time < '${year}-02' then 1 else 0 end) as january,\n" + + "sum(case when create_time < '${year}-03' then 1 else 0 end) as february,\n" + + "sum(case when create_time < '${year}-04' then 1 else 0 end) as march,\n" + + "sum(case when create_time < '${year}-05' then 1 else 0 end) as april,\n" + + "sum(case when create_time < '${year}-06' then 1 else 0 end) as may,\n" + + "sum(case when create_time < '${year}-07' then 1 else 0 end) as june,\n" + + "sum(case when create_time < '${year}-08' then 1 else 0 end) as july,\n" + + "sum(case when create_time < '${year}-09' then 1 else 0 end) as august,\n" + + "sum(case when create_time < '${year}-10' then 1 else 0 end) as september,\n" + + "sum(case when create_time < '${year}-11' then 1 else 0 end) as october,\n" + + "sum(case when create_time < '${year}-12' then 1 else 0 end) as november,\n" + + "sum(case when create_time < '${year}-13' then 1 else 0 end) as december\n" + "from t_customer") Month getCustomerCount(@Param("year")Integer year); -- Gitblit v1.9.1