whyclj
2019-06-29 82c1e7ced425f43781b0cd01290fad298f51e623
sensor/src/com/fgkj/actions/Sensor_hisdataAction.java
@@ -11,12 +11,18 @@
   
   //根据设备id查询历史记录
   public String serchByCondition() {
      Sensor_hisdata sdata=getGson().fromJson(json, Sensor_hisdata.class);
      Sensor_hisdata sdata=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Sensor_hisdata.class);
      ServiceModel model=service.serchByCondition(sdata);
      result=tojson(model);
      return json;
      return SUCCESS;
   }
   //实时页面最新的的10笔数据
   public String serchByInfo() {
      Sensor_hisdata sdata=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Sensor_hisdata.class);
      ServiceModel model=service.serchByInfo(sdata);
      result=tojson(model);
      return SUCCESS;
   }