package com.fgkj.mapper.impl.Ld9;
|
|
import com.fgkj.dto.Ld9testdata_inf;
|
import org.apache.ibatis.annotations.Select;
|
|
import java.util.List;
|
|
public interface Ld9testdata_infMapper{
|
|
//历史数据查询
|
@Select("select num,BattGroupId,test_record_count,test_record_count_ex,test_type,record_time_interval," +
|
"record_num,test_starttime,test_starttime_ex,record_time,test_timelong,test_stoptype," +
|
"test_stopreason,group_vol,test_curr,test_cap,mon_num,mon_vol,max_monvol,min_monvol " +
|
"from db_ld9_testdata.tb_ld9testdata_inf where BattGroupId=#{battGroupId} " +
|
"order by test_starttime desc ")
|
public List<Ld9testdata_inf> serchByCondition(Ld9testdata_inf ld9_inf);
|
|
//历史数据查询(根据电池组id查询所有的放电单体)
|
@Select("select distinct BattGroupId,mon_num,count(test_record_count) as nums " +
|
"from db_ld9_testdata.tb_ld9testdata_inf " +
|
"where BattGroupId=#{battGroupId} " +
|
"group BY mon_num " +
|
"order by mon_num asc ")
|
public List<Ld9testdata_inf> serchByInfo(Ld9testdata_inf ld9_inf);
|
|
}
|