| | |
| | | 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, " + |
| | |
| | | " )"; |
| | | 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() { |
| | |
| | | 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()+" " + |
| | |
| | | }); |
| | | 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"; |
| | |
| | | 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()+" " + |
| | |
| | | |
| | | } |
| | | |
| | | // |
| | | //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 " + |
| | |
| | | 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 " + |
| | |
| | | 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 " + |
| | |
| | | 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 " + |
| | |
| | | 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"; |
| | |
| | | return list; |
| | | } |
| | | |
| | | // |
| | | //78-BattResDataMapper.xml;24行 |
| | | public List serchCurrent( int battGroupId){ |
| | | String sql=" select * from db_batt_testdata.tb_battresdata_"+battGroupId+" " + |
| | | " where test_starttime=( " + |