Commit c23a5070 by 周添尉

修改下载

parent 524708dd
...@@ -6,6 +6,7 @@ import java.io.File; ...@@ -6,6 +6,7 @@ import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.Blob; import java.sql.Blob;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -458,10 +459,17 @@ public class actAction extends BasicAction { ...@@ -458,10 +459,17 @@ public class actAction extends BasicAction {
}else{ }else{
ret_download = super.download(); ret_download = super.download();
} }
String filename1 = RequestUtils.getString(request, "uploadold");
try {
filename1 = new String(filename1.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// 操作日志 // 操作日志
SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class); SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
sysbusiness.insert_logBusiness("download", "用户["+SessionUtil.getEmname()+"]下载网盘公司文件:"+ uploadpath+File.separator+uploadnew, sysbusiness.insert_logBusiness("download", "用户["+SessionUtil.getEmname()+"]下载网盘公司文件:"+ uploadpath+File.separator+uploadnew,
"下载文件",uploadpath+File.separator+uploadnew, request.getParameter("uploadold"),"store"); "下载文件",uploadpath+File.separator+uploadnew,filename1,"store");
// //
return ret_download; return ret_download;
} }
......
...@@ -6,6 +6,7 @@ import java.io.File; ...@@ -6,6 +6,7 @@ import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.Blob; import java.sql.Blob;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
...@@ -645,10 +646,18 @@ public class actAction extends BasicAction { ...@@ -645,10 +646,18 @@ public class actAction extends BasicAction {
}else{ }else{
ret_download = super.download(); ret_download = super.download();
} }
String filename1 = RequestUtils.getString(request, "uploadold");
try {
filename1 = new String(filename1.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// 操作日志 // 操作日志
SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class); SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
sysbusiness.insert_logBusiness("download", "用户["+SessionUtil.getEmname()+"]下载网盘公司文件:"+ uploadpath+File.separator+uploadnew, sysbusiness.insert_logBusiness("download", "用户["+SessionUtil.getEmname()+"]下载网盘公司文件:"+ uploadpath+File.separator+uploadnew,
"下载文件",uploadpath+File.separator+uploadnew, request.getParameter("uploadold"),"storePersonal"); "下载文件",uploadpath+File.separator+uploadnew,filename1,"storePersonal");
// //
return ret_download; return ret_download;
} }
......
...@@ -6,6 +6,7 @@ import java.io.File; ...@@ -6,6 +6,7 @@ import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -356,10 +357,19 @@ public class actAction extends BasicAction { ...@@ -356,10 +357,19 @@ public class actAction extends BasicAction {
}else{ }else{
ret_download = super.download(); ret_download = super.download();
} }
String filename1 = RequestUtils.getString(request, "uploadold");
try {
filename1 = new String(filename1.getBytes("ISO-8859-1"),"UTF-8");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// 操作日志 // 操作日志
SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class); SystemOpeBusiness sysbusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
sysbusiness.insert_logBusiness("uploadFile", "用户["+SessionUtil.getEmname()+"]下载文件:"+ uploadpath+"/"+uploadnew, sysbusiness.insert_logBusiness("uploadFile", "用户["+SessionUtil.getEmname()+"]下载文件:"+ uploadpath+"/"+uploadnew,
"下载文件",uploadpath+"/"+uploadnew, request.getParameter("uploadold"),"uploadfile"); "下载文件",uploadpath+"/"+uploadnew,filename1,"uploadfile");
// //
return ret_download; return ret_download;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment