lxw
2023-10-31 00587bf9bf53447bc820b601c7622693a3d78d29
中-62-92
4个文件已修改
36 ■■■■ 已修改文件
src/main/java/com/whyc/service/SubTablePageInfoService.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BattdischargePlanMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BatttestdataMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/PwrdevAlarmHistoryMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/SubTablePageInfoService.java
@@ -2307,12 +2307,12 @@
        return monVol;
    }
    //23-ElePriceMapper.xml;8行
    //64-ElePriceMapper.xml;18行
    public void deleteEleprice(String tableName){
        String sql=" delete from web_site."+tableName+" ";
        sqlExecuteService.execute(sql);
    }
    //
    //23-ElePriceMapper.xml;8行
    public void createEleprice(String tableName){
        String sql="CREATE TABLE IF NOT EXISTS web_site."+tableName+" ( " +
                "        `num` int(11) NOT NULL AUTO_INCREMENT, " +
@@ -2324,7 +2324,7 @@
                "        )";
        sqlExecuteService.execute(sql);
    }
    //
    //75-ElePriceMapper.xml;25行
    public List<ElePrice> getList(String tableName){
        String sql="select * from web_site."+tableName+" order by tmp_starttime asc";
        List<ElePrice> list = sqlExecuteService.executeQuery_call(sql, new CallBack() {
@@ -2409,7 +2409,7 @@
        return list;
    }
     //
     //92-BattRealdataMapper.xml;29行
    public  int searchMaxNum(BattRealdata realdata){
        String sql="select count(*) as maxNum " +
                "        from db_batt_history.tb_batt_realdata_"+realdata.getTableName()+" " +
@@ -2629,7 +2629,7 @@
        });
        return  list;
    }
    //
    //73-Ld9testdataMapper.xml;17行
    public  List<Ld9testdata> getLD9AllGroupByTestRecordCount(Ld9testdataInf ld9inf){
        String sql="select * from db_ld9_testdata.tb_ld9testdata_"+ld9inf.getBattGroupId()+" " +
                "        where test_record_count="+ld9inf.getTestRecordCount()+"  order by mon_num asc";
@@ -2664,7 +2664,7 @@
        return  list;
    }
    //
    //62-Ld9testdataMapper.xml;22行
    public Map getLD9AllGroupTimeLong(Ld9testdataInf ld9inf){
        String sql="select mon_num,max(test_timelong) as max_testTimelong " +
                "        from db_ld9_testdata.tb_ld9testdata_"+ld9inf.getBattGroupId()+" " +
@@ -2722,7 +2722,7 @@
    }
    //
    //65-BattTestDataStopMapper.xml;6行
    public BattTestDataStop findByMonNum(Integer battGroupId,Integer monNum){
        String sql="select stop.battgroupid,stop.test_curr,stop.test_cap,stop.mon_vol,stop.test_record_count,stop.mon_num,stop.group_vol,inf.max_monvol " +
                "        from db_batt_testdata.tb_batttestdatastop_"+battGroupId+" stop,db_batt_testdata.tb_batttestdata_inf inf " +
@@ -2755,7 +2755,7 @@
        return btsp;
    }
    //
    //77-BattTestDataStopMapper.xml;13行
    public Float getRealCap(BattTestDataStop stop){
        String sql=" select test_cap from db_batt_testdata.tb_batttestdata_"+stop.getBattGroupId()+" " +
                "        where test_record_count="+stop.getTestRecordCount()+"  and mon_vol>"+stop.getMonVol()+" and mon_num="+stop.getMonNum()+" and data_available=1 " +
@@ -2777,7 +2777,7 @@
        return test_cap;
    }
    //
    //89-BattTestDataStopMapper.xml;20行
    public List<BattTestDataStop> getTestDataStop(Integer battGroupId, Date testStarttime){
        String sql=" select num,BattGroupId,test_record_count,test_type,data_new,data_available,record_num,test_starttime,record_time,test_timelong,online_vol" +
                ",group_vol,test_curr,test_cap,mon_num,mon_vol,mon_tmp " +
@@ -2814,7 +2814,7 @@
        return list;
    }
    //38-BattMaintDealarmMapper.xml;226行
    //38,67--BattMaintDealarmMapper.xml;226行 210
    public List<ReportBattResultDTO> searchByBattGroupId5(ReportBattDTO dto){
        String sql=" select  distinct(db_battinf.tb_battinf.BattgroupId),moncount,moncapstd,monvolstd,monresstd,monserstd,FloatVolLevel,OfflineVolLevel " +
                "        ,db_batt_testdata.tb_battresdata_inf.battgroupid,db_batt_testdata.tb_battresdata_inf.test_record_count " +
@@ -2903,7 +2903,7 @@
        return list;
    }
    //
    //76-FBOTestDataMapper.xml;27行
    public int getMonCuntBytestRecordCount(int battGroupId, int testRecordCount){
        String sql="select  if(max(mon_num) is null,0,max(mon_num)) as monCount  " +
                "from db_fbo_testdata.tb_fbotestdata_"+battGroupId+" where test_record_count = "+testRecordCount+" limit 1";
@@ -3101,7 +3101,7 @@
        return list;
    }
    //
    //78-BattResDataMapper.xml;24行
    public  List serchCurrent( int battGroupId){
        String sql=" select * from db_batt_testdata.tb_battresdata_"+battGroupId+" " +
                "        where test_starttime=( " +
src/main/resources/mapper/BattdischargePlanMapper.xml
@@ -177,7 +177,7 @@
            plan.battgroupid = baoJiGroupBattGroup.BattGroupId
        AND baoJiGroupBattGroup.baoji_group_id = baoJiGroup.baoji_group_id
        AND baoJiGroup.discharge_plan_flag = 1
        AND plan.discharge_starttime like '${year}%'
        AND plan.discharge_starttime like CONCAT('%',#{year},'%')
        AND plan.BattGroupId in (select distinct db_battinf.tb_battinf.BattGroupId
                          from db_battinf.tb_battinf,
                               db_user.tb_user_battgroup_baojigroup_battgroup,
src/main/resources/mapper/BatttestdataMapper.xml
@@ -3,7 +3,7 @@
<mapper namespace="com.whyc.mapper.BatttestdataMapper">
    <delete id="deleteByTestRecordCount">
        delete
        from db_batt_testdata.tb_batttestdata_${battGroupId}
        from db_batt_testdata.tb_batttestdata_#{battGroupId}
        where test_record_count = #{testRecordCount}
    </delete>
src/main/resources/mapper/PwrdevAlarmHistoryMapper.xml
@@ -171,16 +171,16 @@
        <where>
            alarm.PowerDeviceId = inf.PowerDeviceId
            <if test="stationName1!=null ">
                and stationName1 like '%${stationName1}%'
                and stationName1 like CONCAT('%',#{stationName1},'%')
            </if>
            <if test="stationName2!=null ">
                and stationName2 like '%${stationName2}%'
                and stationName2 like CONCAT('%',#{stationName2},'%')
            </if>
            <if test="stationName5!=null ">
                and stationName5 like '%${stationName5}%'
                and stationName5 like CONCAT('%',#{stationName5},'%')
            </if>
            <if test="stationName3!=null ">
                and stationName3 like '%${stationName3}%'
                and stationName3 like CONCAT('%',#{stationName3},'%')
            </if>
            <if test="almStartTime!=null ">
                and alarm.alm_start_time  >= #{almStartTime}