| | |
| | | public Response getStationConfig() { |
| | | NjHomeStation njHomeStation=getStation(); |
| | | if(njHomeStation!=null){ |
| | | //Map<String,Object> map=new HashMap<>(); |
| | | Map<String,Object> map=new HashMap<>(); |
| | | //获取battinf信息 |
| | | /*QueryWrapper wrapperBinf=new QueryWrapper(); |
| | | QueryWrapper wrapperBinf=new QueryWrapper(); |
| | | wrapperBinf.eq("BattGroupId",njHomeStation.getBattgroupId()); |
| | | wrapperBinf.last("limit 1"); |
| | | Battinf binf=battInfMapper.selectOne(wrapperBinf); |
| | | map.put("binf",binf);*/ |
| | | map.put("binf",binf); |
| | | |
| | | //获取statinf信息 |
| | | QueryWrapper wrapperSinf=new QueryWrapper(); |
| | | wrapperSinf.eq("stationId",njHomeStation.getStationId()); |
| | | wrapperSinf.last("limit 1"); |
| | | StationInf sinf=stationInfMapper.selectOne(wrapperSinf); |
| | | ///map.put("sinf",sinf); |
| | | /* |
| | | map.put("sinf",sinf); |
| | | |
| | | //获取powerinf信息 |
| | | QueryWrapper wrapperPinf=new QueryWrapper(); |
| | | wrapperPinf.eq("PowerDeviceId",njHomeStation.getPowerDevId()); |
| | | wrapperPinf.last("limit 1"); |
| | | PowerInf pinf=powerInfMapper.selectOne(wrapperPinf); |
| | | map.put("pinf",pinf);*/ |
| | | return new Response().setII(1,true,sinf,"获取首页机房配置信息"); |
| | | map.put("pinf",pinf); |
| | | return new Response().setII(1,true,map,"获取首页机房配置信息"); |
| | | }else{ |
| | | return new Response().set(1,false,"获取首页机房配置信息"); |
| | | } |