领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
stop_type:
2-放电时间到终止
3-放电容量到终止
4-单体电压下限到终止
6-组端电压下限到终止
4个文件已修改
54 ■■■■■ 已修改文件
src/main/java/com/whyc/mapper/BatttestdataInfMapper.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BattInfService.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BatttestdataInfService.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BatttestdataInfMapper.xml 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/mapper/BatttestdataInfMapper.java
@@ -43,6 +43,15 @@
    //本年度核容放电电池组(testdate_inf中test_type=3,test_startType=3)
    int getHrQuarter(int userId);
    /* 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
    stop_type:
            2-放电时间到终止
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
    int getHrQuarterZC(int userId);
    //获取本年已核容电池组
    List<Battinf> getHrYeardisBatt(String userId);
src/main/java/com/whyc/service/BattInfService.java
@@ -620,8 +620,15 @@
            int battStationNum = battInfMapper.geStationCount(userId);
            //总机房
            int stationNum = stationInfService.getStation(userId);
            //本年度已核容放电电池组(testdate_inf中test_type=3,test_startType=3)
            int hrDisNum = testInfService.getHrQuarter(userId);
            /*本年度已核容放电电池组(testdate_inf中test_type=3,test_startType=3)
             int hrDisNum = testInfService.getHrQuarter(userId);
            * 修改为:领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
                stop_type:
                2-放电时间到终止
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
            int hrDisNum = testInfService.getHrQuarterZC(userId);
            //map.put("monNum", monNum);//单体
            map.put("battStationNum", battStationNum);//站点
            map.put("battGroupCount", battGroupCount);//电池组
src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -376,6 +376,17 @@
        return hrQuarter;
    }
    /*领导层本年度已放数 仅需要统计放电正常停止的 正常停止的条件如下:
                stop_type:
                2-放电时间到终止
                3-放电容量到终止
                4-单体电压下限到终止
                6-组端电压下限到终止*/
    public int getHrQuarterZC(int userId) {
        int hrQuarter = mapper.getHrQuarterZC(userId);
        return hrQuarter;
    }
    //蓄电池组优劣分析(用蓄电池组组后评估的统计)
    public Response getGroupAnalysis(int userId) {
        try {
src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -323,6 +323,29 @@
      and db_user.tb_user_inf.uid = db_user.tb_user_battgroup_baojigroup_usr.uid
      and db_user.tb_user_inf.uid = #{userId})
  </select>
  <select id="getHrQuarterZC" resultType="java.lang.Integer">
    SELECT count(distinct BattGroupId)
    From db_batt_testdata.tb_batttestdata_inf
    where YEAR (test_starttime) = YEAR (NOW())
      and test_type=3
      and test_starttype=3
      and test_stoptype in (2
        , 3
        , 4
        , 6)
      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
      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})
  </select>
  <select id="getHrYeardisBatt" resultType="battinf">
    SELECT distinct tb_batttestdata_inf.BattGroupId,
                    battGroupName,