81041
2019-01-05 ea9db400a73b5471184c82eb9fde24aacd6d26d1
gx_tieta/src/com/fgkj/actions/ram/Fbs9100_stateAction.java
@@ -109,17 +109,27 @@
      result = tojson(model);
      return SUCCESS;   
     }
  //批量设置放电参数时查询出当前放电的电池组(1u/2u分开)
     public String seachDischarge(){
        BattInf binf=getGson().fromJson(json, BattInf.class);
      User_inf uinf=(User_inf) getUser();
      binf.setBattGroupId(uinf.getUId());
        ServiceModel model = service.seachDischarge(binf);
      result = tojson(model);
      return SUCCESS;
     }
  //实时刷新批量设置放电参数
     public String freshenDischarge(){
        List list=getGson().fromJson(json,new TypeToken<List<BattInf>>(){}.getType());
        ServiceModel model = service.freshenDischarge(list);
      result = tojson(model);
      return SUCCESS;
     }
   //11.1FBS9100设备通信状态查询             <--     跨域    -->
     public String serchByCondition_ky(){        
        isAllowHeaders();                                    //允许跨域访问
        //isAllowHeaders();                                    //允许跨域访问
        ServiceModel model = new ServiceModel();
        if(key != null && CROSS_DOMAIN_KEY.equals(key)){
           model = service.serchByCondition_ky();
        }else{
           model.setCode(0);
           model.setMsg("识别码错误");
        }
      model = service.serchByCondition_ky();
        result = tojson(model);
        return SUCCESS;   
     }