81041
2018-12-11 1c25524f12918b63af745a79f59d0e94f1ec6d3c
gx_tieta/src/com/fgkj/actions/Deverror_recordAction.java
@@ -26,6 +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());
      dev_record.setUname(uinf.getUName());
      if(file!=null&&file.size()>0){
         for (int i=0;i<file.size();i++) {
            switch (i) {
@@ -52,6 +53,36 @@
      result=tojson(model);
      return SUCCESS;
   }
    //用户处理的结果
   public String update(){
      Deverror_record dev_record=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Deverror_record.class);
      User_inf uinf=(User_inf) getUser();
      dev_record.setSolve_uid(uinf.getUId());
      dev_record.setSolve_uname(uinf.getUName());
      if(file!=null&&file.size()>0){
         for (int i=0;i<file.size();i++) {
            switch (i) {
            case 0:
               dev_record.setSolve_picture_one(file.get(i));
               break;
            case 1:
               dev_record.setSolve_picture_two(file.get(i));
               break;
            case 2:
               dev_record.setSolve_picture_three(file.get(i));
               break;
            case 3:
               dev_record.setSolve_picture_four(file.get(i));
               break;
            default:
               break;
            }
         }
      }
      ServiceModel model=service.update(dev_record);
      result=tojson(model);
      return SUCCESS;
   }
   //根据stationid查询设备的问题记录
   public String serchByCondition(){
      BattInf binf=getGson().fromJson(json, BattInf.class);