修改SQL

This commit is contained in:
TS-QD1 2023-08-08 16:53:32 +08:00
parent 363a8d3f72
commit 4fbc8cc386
3 changed files with 4 additions and 10 deletions

View File

@ -17,7 +17,7 @@ public interface IKpiKhxzDdyDao {
void updateC(Map<String, Object> updateParams); void updateC(Map<String, Object> updateParams);
void updateEFN(Map<String, Object> updateParams); void updateEF(Map<String, Object> updateParams);
List<KpiKhxzDdyDTO> list(Map<String, Object> params); List<KpiKhxzDdyDTO> list(Map<String, Object> params);

View File

@ -4,10 +4,6 @@ import com.cm.bigdata.dao.kpi.IKpiDao;
import com.cm.bigdata.dao.kpi.IKpiKhxzDdyDao; import com.cm.bigdata.dao.kpi.IKpiKhxzDdyDao;
import com.cm.bigdata.monitor.KpiUpdateMonitor; import com.cm.bigdata.monitor.KpiUpdateMonitor;
import com.cm.bigdata.pojo.pos.kpi.CasePO; 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.HashMap;
import java.util.List; import java.util.List;
@ -60,8 +56,7 @@ public class KpiKhxzDdyEFNRunnable implements Runnable {
updateParams.put("timelyCount", assignIn24HoursCount); updateParams.put("timelyCount", assignIn24HoursCount);
updateParams.put("E", notAssignIn24HoursCount); updateParams.put("E", notAssignIn24HoursCount);
updateParams.put("F", notAssignIn24HoursCount * 10); updateParams.put("F", notAssignIn24HoursCount * 10);
updateParams.put("N", handleCasePOS.size()); kpiKhxzDdyDao.updateEF(updateParams);
kpiKhxzDdyDao.updateEFN(updateParams);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -76,14 +76,13 @@
user_id = #{userId} user_id = #{userId}
</update> </update>
<update id="updateEFN" parameterType="map"> <update id="updateEF" parameterType="map">
UPDATE UPDATE
kpi_khxz_ddy kpi_khxz_ddy
SET SET
timely_count = #{timelyCount}, timely_count = #{timelyCount},
E = #{E}, E = #{E},
F = #{F}, F = #{F}
N = #{N}
WHERE WHERE
kh_year = #{khYear} kh_year = #{khYear}
AND AND