Administrator
2018-10-15 2f10da83d8087ed1b47b8edc9ff29ca5248f504d
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -258,12 +258,28 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询所有的省份(左侧导航第一层,查所有的省份)
   public String serchAllStation_all(){
      User_inf u = (User_inf)getUser();
      BattInf binf=new BattInf();
      binf.setNum(u.getUId());
      ServiceModel model = service.serchAllStation_all(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;
   }
   //查询管理的市(左侧导航第二层,查所有的市)
   public String serchStationName2_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      ServiceModel model = service.serchStationName2_all(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
@@ -276,6 +292,13 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的机房(左侧导航第三层,查所有的机房)
   public String serchStationName3_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      ServiceModel model = service.serchStationName3_all(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组,num中存放uid)
   public String serchBattByStation(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
@@ -283,6 +306,14 @@
      binf.setNum(u.getUId());
      //System.out.println(binf);
      ServiceModel model = service.serchBattByStation(binf);
      result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组)
   public String serchBattByStation_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      //System.out.println(binf);
      ServiceModel model = service.serchBattByStation_all(binf);
      result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model);
      return SUCCESS;
   }
@@ -302,6 +333,13 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //电池配组管理(重要)
   public String serchGroupByInfor(){
      BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
      ServiceModel model = service.serchGroupByInfor(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   public BattInf getBif() {
      return bif;
   }