File was renamed from src/main/java/com/whyc/service/BattRtDataService.java |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattRtDataMapper; |
| | | import com.whyc.pojo.db_lithium_ram_db.BattRtdata; |
| | | import com.whyc.mapper.BattLithiumRtDataMapper; |
| | | import com.whyc.pojo.db_lithium_ram_db.BattLithiumRtData; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class BattRtDataService { |
| | | public class BattLithiumRtDataService { |
| | | |
| | | @Autowired(required = false) |
| | | private BattRtDataMapper mapper; |
| | | private BattLithiumRtDataMapper mapper; |
| | | |
| | | |
| | | //获取a200电池组数据 |
| | |
| | | wrapper.eq("dev_id",devId); |
| | | wrapper.orderByAsc("batt_idx"); |
| | | wrapper.orderByAsc("mon_num"); |
| | | List<BattRtdata> list=mapper.selectList(wrapper); |
| | | List<BattLithiumRtData> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null,list,"获取电池组数据"); |
| | | } |
| | | |
| | |
| | | wrapper.eq("batt_idx",index); |
| | | wrapper.orderByAsc("batt_idx"); |
| | | wrapper.orderByAsc("mon_num"); |
| | | List<BattRtdata> list=mapper.selectList(wrapper); |
| | | List<BattLithiumRtData> list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null,list,"获取电池组数据"); |
| | | } |
| | | } |