| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.whyc.constant.BattStateEnum; |
| | | import com.whyc.constant.DevStateEnum; |
| | | import com.whyc.dto.Real.PwrHisRealDcoutInDto; |
| | | import com.whyc.dto.Real.RealDateDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattRtstateMapper; |
| | | import com.whyc.pojo.db_ram_db.BattRtstate; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | public class BattRtstateService { |
| | |
| | | BattRtstate batt=mapper.selectOne(wrapper); |
| | | return batt; |
| | | } |
| | | //获取电池组工作状态类型(下拉) |
| | | public Response getBattState() { |
| | | Map<Integer,String> map= BattStateEnum.getOpInfo(); |
| | | return new Response().setII(1,true,map,"获取电池组工作状态类型(下拉)"); |
| | | } |
| | | |
| | | //实时推送电池核容设备心跳数据 |
| | | public RealDateDTO getBattRealHr(Integer battgroupId) { |
| | | RealDateDTO hrDto=mapper.getBattRealHr(battgroupId); |
| | | return hrDto; |
| | | } |
| | | } |