星伟
2018-09-25 acd46c13a2a74b00f933629887c8093fe419278b
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -243,13 +243,7 @@
      return SUCCESS;
   }
   
   //查询所有的机房
   public String serchAllStation(){
      User_inf u = (User_inf)getUser();
      ServiceModel model = service.serchAllStation(u);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   
   //搜索机房或电池组
   public String serchStationOrBattgroup(){
@@ -258,7 +252,34 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息
   //查询所有的省份(左侧导航第一层,查所有的省份,num中存放uid)
   public String serchAllStation(){
      User_inf u = (User_inf)getUser();
      BattInf binf=new BattInf();
      binf.setNum(u.getUId());
      ServiceModel model = service.serchAllStation(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的市(左侧导航第二层,查所有的市,num中存放uid)
   public String serchStationName2(){
      User_inf u = (User_inf)getUser();
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      binf.setNum(u.getUId());
      ServiceModel model = service.serchStationName2(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的机房(左侧导航第三层,查所有的机房,num中存放uid)
   public String serchStationName3(){
      User_inf u = (User_inf)getUser();
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      binf.setNum(u.getUId());
      ServiceModel model = service.serchStationName3(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组,num中存放uid)
   public String serchBattByStation(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      ServiceModel model = service.serchBattByStation(binf);