| | |
| | | @Autowired |
| | | private MybatisSqlExecuteService sqlExecuteService; |
| | | //根据充放电记录查询单体放电历史详情 |
| | | public List<BattTestInfData> getTDataHis(int binfId, int testRecordCount) { |
| | | String sql="select * from db_dis_batt.batt_test_inf_"+binfId+" " + |
| | | " where binf_id="+binfId+" " + |
| | | public List<BattTestInfData> getByBattGroupIdAndTestRecordCount(int battGroupId, int testRecordCount) { |
| | | String sql="select * from db_dis_batt.batt_test_inf_"+battGroupId+" " + |
| | | " where binf_id="+battGroupId+" " + |
| | | " and test_record_count="+testRecordCount+ |
| | | " order by test_starttime asc "; |
| | | List<BattTestInfData> list=sqlExecuteService.executeQuery_call(sql, new CallBack() { |
| | |
| | | data.setAlmId(rs.getInt("alm_id")); |
| | | data.setAlmLevel(rs.getInt("alm_level")); |
| | | data.setAlmValue(rs.getInt("alm_value")); |
| | | data.setAlmConfirm(rs.getInt("alm_confirm")); |
| | | data.setAlmConfirmTime(rs.getTimestamp("alm_confirm_time")); |
| | | data.setAlmType(rs.getInt("alm_type")); |
| | | data.setPowerName(rs.getString("power_name")); |
| | | data.setBattGroupName(rs.getString("battGroupName")); |
| | | list.add(data); |