From 4fccc05e9c0fe16e25f5c2b636946b7df72b62ba Mon Sep 17 00:00:00 2001 From: zhaoqifeng Date: Wed, 2 Nov 2022 16:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=AF=BC=E5=87=BA=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ScreenDeptEventStatServiceImpl.java | 14 ++++++-------- .../mapper/screen/ScreenDeptEventEfficiencyDao.xml | 8 ++++++++ .../mapper/screen/ScreenDeptEventStatDao.xml | 2 ++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenDeptEventStatServiceImpl.java b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenDeptEventStatServiceImpl.java index 694543d1f..f09645694 100644 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenDeptEventStatServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenDeptEventStatServiceImpl.java @@ -20,12 +20,9 @@ package com.elink.esua.epdc.modules.screen.service.impl; import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; import com.elink.esua.epdc.commons.tools.constant.NumConstant; import com.elink.esua.epdc.commons.tools.utils.DateUtils; -import com.elink.esua.epdc.commons.tools.utils.Result; -import com.elink.esua.epdc.dto.SysDeptDTO; import com.elink.esua.epdc.dto.screen.form.DataStatisticsFormDTO; import com.elink.esua.epdc.dto.screen.form.EventStatisticsFormDTO; import com.elink.esua.epdc.dto.screen.result.*; -import com.elink.esua.epdc.modules.feign.AdminFeignClient; import com.elink.esua.epdc.modules.screen.dao.ScreenDeptEventStatDao; import com.elink.esua.epdc.modules.screen.entity.ScreenDeptEventStatEntity; import com.elink.esua.epdc.modules.screen.service.ScreenDeptEventStatService; @@ -33,7 +30,6 @@ import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; -import javax.annotation.Resource; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; @@ -62,12 +58,12 @@ public class ScreenDeptEventStatServiceImpl extends BaseServiceImpl list = baseDao.getEventStat("all", statDate); @@ -226,9 +222,11 @@ public class ScreenDeptEventStatServiceImpl extends BaseServiceImpl AND DATE_FORMAT(a.CREATED_TIME, '%Y-%m') = #{statDate} + AND DATE_FORMAT(a.CREATED_TIME, '%Y-%m-%d') <= #{startDate} AND DATE_FORMAT(a.CREATED_TIME, '%Y') = #{statDate} + AND DATE_FORMAT(a.CREATED_TIME, '%Y-%m-%d') <= #{startDate} AND DATE_FORMAT(a.CREATED_TIME, '%Y-%m-%d') >= #{startDate}