From 4fbc8cc38671ca8779e82a7271525237ba169cbb Mon Sep 17 00:00:00 2001 From: TS-QD1 Date: Tue, 8 Aug 2023 16:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/cm/bigdata/dao/kpi/IKpiKhxzDdyDao.java | 2 +- .../service/kpi/task/sub/KpiKhxzDdyEFNRunnable.java | 7 +------ .../resources/mybatis/mapper/kpi/kpi-khxz-ddy-mapper.xml | 5 ++--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/cm/bigdata/dao/kpi/IKpiKhxzDdyDao.java b/src/main/java/com/cm/bigdata/dao/kpi/IKpiKhxzDdyDao.java index 6632b86..ee5458e 100644 --- a/src/main/java/com/cm/bigdata/dao/kpi/IKpiKhxzDdyDao.java +++ b/src/main/java/com/cm/bigdata/dao/kpi/IKpiKhxzDdyDao.java @@ -17,7 +17,7 @@ public interface IKpiKhxzDdyDao { void updateC(Map updateParams); - void updateEFN(Map updateParams); + void updateEF(Map updateParams); List list(Map params); diff --git a/src/main/java/com/cm/bigdata/service/kpi/task/sub/KpiKhxzDdyEFNRunnable.java b/src/main/java/com/cm/bigdata/service/kpi/task/sub/KpiKhxzDdyEFNRunnable.java index 74158ac..1757521 100644 --- a/src/main/java/com/cm/bigdata/service/kpi/task/sub/KpiKhxzDdyEFNRunnable.java +++ b/src/main/java/com/cm/bigdata/service/kpi/task/sub/KpiKhxzDdyEFNRunnable.java @@ -4,10 +4,6 @@ import com.cm.bigdata.dao.kpi.IKpiDao; import com.cm.bigdata.dao.kpi.IKpiKhxzDdyDao; import com.cm.bigdata.monitor.KpiUpdateMonitor; import com.cm.bigdata.pojo.pos.kpi.CasePO; -import com.cm.common.constants.ISystemConstant; -import org.joda.time.Hours; -import org.joda.time.LocalDateTime; -import org.joda.time.format.DateTimeFormat; import java.util.HashMap; import java.util.List; @@ -60,8 +56,7 @@ public class KpiKhxzDdyEFNRunnable implements Runnable { updateParams.put("timelyCount", assignIn24HoursCount); updateParams.put("E", notAssignIn24HoursCount); updateParams.put("F", notAssignIn24HoursCount * 10); - updateParams.put("N", handleCasePOS.size()); - kpiKhxzDdyDao.updateEFN(updateParams); + kpiKhxzDdyDao.updateEF(updateParams); } catch (Exception e) { e.printStackTrace(); } diff --git a/src/main/resources/mybatis/mapper/kpi/kpi-khxz-ddy-mapper.xml b/src/main/resources/mybatis/mapper/kpi/kpi-khxz-ddy-mapper.xml index 68fd840..884644b 100644 --- a/src/main/resources/mybatis/mapper/kpi/kpi-khxz-ddy-mapper.xml +++ b/src/main/resources/mybatis/mapper/kpi/kpi-khxz-ddy-mapper.xml @@ -76,14 +76,13 @@ user_id = #{userId} - + UPDATE kpi_khxz_ddy SET timely_count = #{timelyCount}, E = #{E}, - F = #{F}, - N = #{N} + F = #{F} WHERE kh_year = #{khYear} AND