lxw
2023-07-25 937ad76d944adc4606c42c05df474a84c8f5a9ea
本年度蓄电池优劣分析修改
4个文件已修改
25 ■■■■ 已修改文件
src/main/java/com/whyc/mapper/BatttestdataInfMapper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BattInfService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BatttestdataInfService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BatttestdataInfMapper.xml 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/mapper/BatttestdataInfMapper.java
@@ -45,11 +45,11 @@
    /* 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
    stop_type:
                2-放电时间到终止
                2-放电时间到终止并且放电时间超过2小时
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止
                并且放电时间超过2小时*/
                */
    int getHrQuarterZC(int userId);
src/main/java/com/whyc/service/BattInfService.java
@@ -641,7 +641,7 @@
             int hrDisNum = testInfService.getHrQuarter(userId);
            * 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
                stop_type:
                2-放电时间到终止
                2-放电时间到终止并且放电时间超过2小时
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -449,7 +449,7 @@
             int hrDisNum = testInfService.getHrQuarter(userId);
            * 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
                stop_type:
                2-放电时间到终止
                2-放电时间到终止并且放电时间超过2小时
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -306,26 +306,25 @@
  <select id="getHrQuarterZC" resultType="java.lang.Integer">
    SELECT count(distinct BattGroupId)
    From db_batt_testdata.tb_batttestdata_inf
    where YEAR (test_starttime) = YEAR (NOW())
    <where>
      YEAR (test_starttime) = YEAR (NOW())
      and test_type=3
      and test_starttype=3
      and test_stoptype in (2
        , 3
        , 4
        , 6)
      and test_timelong>=7200
      and test_stoptype in (3, 4, 6)
      or (test_stoptype=2 and test_timelong>=7200 )
      and BattGroupId in (
      select distinct db_battinf.tb_battinf.BattGroupId
      from db_battinf.tb_battinf
        , db_user.tb_user_battgroup_baojigroup_battgroup
        , db_user.tb_user_battgroup_baojigroup_usr
        , db_user.tb_user_inf
      , db_user.tb_user_battgroup_baojigroup_battgroup
      , db_user.tb_user_battgroup_baojigroup_usr
      , db_user.tb_user_inf
      where db_user.tb_user_battgroup_baojigroup_battgroup.BattGroupId =
      db_battinf.tb_battinf.BattGroupId
      and db_user.tb_user_battgroup_baojigroup_usr.baoji_group_id =
      db_user.tb_user_battgroup_baojigroup_battgroup.baoji_group_id
      and db_user.tb_user_inf.uid = db_user.tb_user_battgroup_baojigroup_usr.uid
      and db_user.tb_user_inf.uid = #{userId})
    </where>
  </select>
  <select id="getHrYeardisBatt" resultType="battinf">
    SELECT distinct tb_batttestdata_inf.BattGroupId,