迁移数据修改

web_backend_develope
chenlw 9 years ago
parent aa92069db1
commit 896640d332

@ -218,7 +218,11 @@ public class MoveDataServiceImpl implements IMoveDataService {
//是正则迁移时: //是正则迁移时:
if ("1".equals(dataMove.getCompleteStatus())) { if ("1".equals(dataMove.getCompleteStatus())) {
if(1 != removeservice.abortcopyFolder(dataMove.getDataPath(), makeDstPath(dataMove.getDstPath()))){ if(1 != removeservice.abortcopyFolder(dataMove.getDataPath(), makeDstPath(dataMove.getDstPath()))){
removeservice.deleteFolder(dataMove.getDstPath()); try{
removeservice.deleteFolder(dataMove.getDstPath());
}catch(Exception e){
log.error(e);
}
} }
} }
result = dataInfoMoveTmpDao.remove(dataMove.getId()); result = dataInfoMoveTmpDao.remove(dataMove.getId());
@ -254,7 +258,8 @@ public class MoveDataServiceImpl implements IMoveDataService {
//去掉 最后 的 数字 +/ 符合 //去掉 最后 的 数字 +/ 符合
if (matcher2.find()) { if (matcher2.find()) {
String removeStr = matcher2.group(); String removeStr = matcher2.group();
dstPath = dstPath.replace(removeStr, ""); removeStr.length();
dstPath = dstPath.substring(0, dstPath.length()-removeStr.length());
} }
return dstPath; return dstPath;
} }

Loading…
Cancel
Save