Pārlūkot izejas kodu

附件上传代码调整

沈静伟 3 gadi atpakaļ
vecāks
revīzija
63639993bc

+ 7 - 8
src/rest/openapi/restcontroller/wechatapp/system/docManage.java

@@ -468,14 +468,13 @@ public class docManage extends Controller {
             if (!StringUtils.isBlank(type)) tattachment.setValue("type", type, 11L);
             if (!StringUtils.isBlank(type)) tattachment.setValue("type", type, 11L);
             tattachmentSet.save();
             tattachmentSet.save();
             tattachmentSet.close();
             tattachmentSet.close();
-//            Row row = new Row();
-//            row.put("fdocument", new String(uploadfile.getFileName().getBytes("iso8859-1"), "UTF-8"));
-//            row.put("fobsurl", obsurl);
-//            row.put("tattachmentid", tattachment.getUniqueIDValue());
-//            row.put("postfix", ftype);
-//            row.put("type", type);
-            return getReturnObject_suc().toString();
-            //return getReturnObject_suc(row, false).toString();
+            Row row = new Row();
+            row.put("fdocument", new String(uploadfile.getFileName().getBytes("iso8859-1"), "UTF-8"));
+            row.put("fobsurl", obsurl);
+            row.put("tattachmentid", tattachment.getUniqueIDValue());
+            row.put("postfix", ftype);
+            row.put("type", type);
+            return getReturnObject_suc(row, false).toString();
 //            tattachment.setValue("docinfoid", docinfo.getUniqueIDValue());
 //            tattachment.setValue("docinfoid", docinfo.getUniqueIDValue());
         }
         }
         return getReturnObject_err("´íÎó").toString();
         return getReturnObject_err("´íÎó").toString();