Przeglądaj źródła

班管家 2021-12-29 14:35

sjw 4 lat temu
rodzic
commit
6124f3b8a3

BIN
src.rar


BIN
src.zip


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

@@ -473,14 +473,14 @@ public class docManage extends Controller {
             tattachment.setValue("ftype", "default");
             tattachment.setValue("postfix", ftype);
             tattachment.setValue("serialnumber", fileName);
-            tattachment.setValue("fdocument", uploadfile.getFileName());
+            tattachment.setValue("fdocument", new String(uploadfile.getFileName().getBytes("iso8859-1"), "UTF-8"));
             tattachment.setValue("fobsurl", obsurl);
             if(!StringUtils.isBlank(type)) tattachment.setValue("type", type);
             tattachmentSet.save();
 
 
             Row row=new Row();
-            row.put("fdocument",uploadfile.getFileName());
+            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);