修改bug
This commit is contained in:
parent
747746a781
commit
e049a36116
|
@ -307,6 +307,8 @@ public class SFTPUtil {
|
|||
map.put("msg","sftp链接异常:");
|
||||
return map;
|
||||
}
|
||||
}else{
|
||||
sftp.cd(sftpConfig.getFullpath());
|
||||
}
|
||||
OutputStream output = null;
|
||||
try {
|
||||
|
@ -505,7 +507,7 @@ public class SFTPUtil {
|
|||
String newname = list.get(item)[1];
|
||||
String newpath = directory.concat(newname);
|
||||
String newfullpath = sftpConfig.getFullpath().concat("/").concat(newpath);
|
||||
String moveCommand = "mv " + oldfullpath + " " + newfullpath; // 移动文件的命令
|
||||
String moveCommand = "cp " + oldfullpath + " " + newfullpath; // 移动文件的命令
|
||||
channel = sshSession.openChannel("exec");
|
||||
((ChannelExec) channel).setCommand(moveCommand);
|
||||
channel.setInputStream(null);
|
||||
|
|
|
@ -323,7 +323,7 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
|
|||
String vid = wjxWjxx.getVid();
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("vid",Integer.valueOf(vid));
|
||||
// map.put("suffix",2);
|
||||
map.put("suffix",0);
|
||||
//调用接口,提交
|
||||
String result = wjxUtil.openapi(map,"1001004");
|
||||
JSONObject jsonResult = JSONObject.parseObject(result);
|
||||
|
|
|
@ -491,7 +491,6 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
InputStream inputStream = null;
|
||||
OutputStream outputStream = null;
|
||||
try{
|
||||
log.info("getFileName----------->");
|
||||
int index = imgPath.lastIndexOf("/");
|
||||
String path = "temp";
|
||||
if(index != -1){
|
||||
|
|
|
@ -274,9 +274,10 @@ public class ZykServiceImpl extends ServiceImpl<ZykMapper, ZykInfo> implements I
|
|||
return uploadMap;
|
||||
}
|
||||
zykInfo.setPdfName(uploadMap.get("data"));
|
||||
if(StringUtils.isNotNull(map.get("pdfData"))){
|
||||
String pdfName = map.get("pdfData");
|
||||
if(StringUtils.isNotNull(uploadMap.get("data"))){
|
||||
String pdfName = uploadMap.get("data");
|
||||
zykInfo.setPdfName(pdfName);
|
||||
map.put("pdfData",uploadMap.get("data"));
|
||||
}else{
|
||||
map.put("pdfData","");
|
||||
}
|
||||
|
|
|
@ -361,7 +361,7 @@ public class CommonController {
|
|||
if (orgName != null) {
|
||||
orgName = CommonUtils.getFileName(orgName);
|
||||
if(orgName.contains(SymbolConstant.SPOT)){
|
||||
fileName = orgName.substring(0, orgName.lastIndexOf(".")) + orgName.substring(orgName.lastIndexOf("."));
|
||||
fileName = orgName.substring(0, orgName.lastIndexOf(".")) + "_" + System.currentTimeMillis() + orgName.substring(orgName.lastIndexOf("."));
|
||||
}else{
|
||||
fileName = orgName+ "_" + System.currentTimeMillis();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue