| | |
| | | import com.whyc.mapper.CommonMapper; |
| | | import com.whyc.pojo.db_data_history.BattRealdataId; |
| | | import com.whyc.pojo.db_data_history.PwrdevHistorydataId; |
| | | import com.whyc.pojo.db_station.PowerInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private SubTablePageInfoService subTablePageInfoService; |
| | | @Resource |
| | | private CommonMapper commonMapper; |
| | | |
| | | @Autowired |
| | | private PowerInfService powerInfService; |
| | | |
| | | //系统概览获取半小时交流输入统计 |
| | | public Response getHalfHourPwrHisAcinData(Integer powerId,Integer granularity) { |
| | |
| | | return new Response().set(1,false,"当前电源不存在前面小时数据"); |
| | | } |
| | | List<PwrHisRealDcoutInDto> datalist=subTablePageInfoService.getHalfHourPwrHisDcoutData(tableName,granularity); |
| | | return new Response().setII(1,datalist.size()>0,datalist,"获取半小时内直流输出统计"); |
| | | Long modelCfg=0l; |
| | | PowerInf pinf=powerInfService.getPowerInfById(powerId); |
| | | if(pinf!=null){ |
| | | modelCfg=pinf.getModelCfg(); |
| | | } |
| | | return new Response().setIII(1,datalist.size()>0,datalist,modelCfg,"获取半小时内直流输出统计"); |
| | | } |
| | | } |