星伟
2018-09-30 dd9f51a22e389ea8b70d56d031972f4c54ff8bce
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -242,9 +242,6 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //搜索机房或电池组
   public String serchStationOrBattgroup(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
@@ -282,6 +279,9 @@
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组,num中存放uid)
   public String serchBattByStation(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      User_inf u = (User_inf)getUser();
      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;
@@ -295,6 +295,13 @@
      return SUCCESS;
   }
   
   //电池配组管理(重要)
   public String serchMakeGroup(){
      BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
      ServiceModel model = service.serchMakeGroup(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   public BattInf getBif() {
      return bif;
   }
@@ -328,12 +335,6 @@
      this.btdif = btdif;
   }
   
//   public ServiceModel getModel() {
//      return model;
//   }
    
   public void setJson(String json) {
      this.json = json;