whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.fgkj.mapper.impl;
 
import java.util.List;
 
import com.fgkj.dto.BattInf;
import com.fgkj.dto.Cmcc_Power_Data;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
public interface Cmcc_Power_DataMapper{
 
    public boolean add(Object obj);
 
    public boolean update(Object obj);
 
    public boolean del(Object obj);
 
    public List searchAll();
    //根据电池组id查询cmcc实时表中的实时电流画柱状图
    @Select("SELECT (binary curr1) as curr1,(binary curr2) as curr2,(binary curr3) as curr3,(binary curr4) as curr4,(binary curr5) as curr5 " +
            "FROM db_ram_db.cmcc_power_data  WHERE dev_id IN(SELECT DISTINCT(fbsdeviceid) FROM db_battinf.tb_battinf where stationid=#{stationId} )  LIMIT 1 ")
    public List<Cmcc_Power_Data> serchByCondition(BattInf obj);
 
    public List serchByInfo(Object obj);
 
}