| | |
| | | import com.whyc.dto.AlmHis.PwrAlmPar; |
| | | import com.whyc.dto.AnalysisAlm.ResAnalysis; |
| | | import com.whyc.dto.Real.*; |
| | | import com.whyc.dto.Statistic.ComPareChart; |
| | | import com.whyc.dto.Statistic.QuarterPwr7Res; |
| | | import com.whyc.mapper.CallBack; |
| | | import com.whyc.pojo.db_alarm.BattalarmDataHistory; |
| | |
| | | } |
| | | //获取内阻数据 |
| | | public List<QuarterDto> getBattResInfData(Integer battgroupId,Integer testRecordCount) { |
| | | String sql="select distinct mon_num,test_starttime,mon_res, from db_batt_testdata.tb_battresdata_"+battgroupId |
| | | String sql="select distinct mon_num,test_starttime,mon_res from db_batt_testdata.tb_battresdata_"+battgroupId |
| | | +" where test_record_count="+testRecordCount+" order by mon_num asc"; |
| | | List<QuarterDto> list = sqlExecuteService.executeQuery_call(sql, new CallBack() { |
| | | @Override |
| | |
| | | } |
| | | }); |
| | | return list; |
| | | } |
| | | //取内阻测试的最大内阻和单体编号 |
| | | public List<QuarterDto> getMaxResInInfData(Integer battgroupId, Integer testRecordCount) { |
| | | String sql="select distinct mon_num,test_starttime,mon_res from db_batt_testdata.tb_battresdata_"+battgroupId |
| | | +" where test_record_count="+testRecordCount+" order by mon_num asc"; |
| | | List<QuarterDto> list = sqlExecuteService.executeQuery_call(sql, new CallBack() { |
| | | @Override |
| | | public List getResults(ResultSet rs) throws SQLException { |
| | | List<QuarterDto> list=new ArrayList<>(); |
| | | while (rs.next()){ |
| | | QuarterDto data=new QuarterDto(); |
| | | data.setMonNum(rs.getInt("mon_num")); |
| | | data.setNumValue(rs.getFloat("mon_res")); |
| | | data.setRecordTime(rs.getTimestamp("test_starttime")); |
| | | list.add(data); |
| | | } |
| | | return list; |
| | | } |
| | | }); |
| | | return list; |
| | | } |
| | | //找这次放电的指定一笔数据 |
| | | public List<BatttestdataId> getLastDataByBattgroupId(Integer battgroupId, Integer testRecordCount, Integer recordNum) { |
| | |
| | | }); |
| | | return list; |
| | | } |
| | | |
| | | } |