81041
2018-11-03 dab560a713cf4f7250bb8398578e78c7940d225f
gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java
@@ -26,7 +26,7 @@
      Deverror_record dev_record=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Deverror_record.class);
      User_inf uinf=(User_inf) getUser();
      dev_record.setUid(uinf.getUId());
      if(file.size()>0&&file!=null){
      if(file!=null&&file.size()>0){
         for (int i=0;i<file.size();i++) {
            switch (i) {
            case 0:
@@ -47,10 +47,18 @@
         }
      }
      //dev_record.setPicture_num(file.size());
      //System.out.println(dev_record);
      ServiceModel model=service.add(dev_record);
      result=tojson(model);
      return SUCCESS;
   }
    //用户处理的结果
   public String update(){
      Deverror_record dev_record=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Deverror_record.class);
      ServiceModel model=service.update(dev_record);
      result=tojson(model);
      return SUCCESS;
   }
   //根据stationid查询设备的问题记录
   public String serchByCondition(){
      BattInf binf=getGson().fromJson(json, BattInf.class);