transfer projects : delete try catch

This commit is contained in:
ronger 2017-02-19 17:44:49 +08:00
parent da2fec94d1
commit 2afd395f63
1 changed files with 6 additions and 6 deletions

View File

@ -214,12 +214,12 @@ public class TransferProjectsUtil2 {
dbSource.deleteTaggingsByTaggableId(taggingTableName, formerOsp.getId()); //由于没有级联删除 因此需要手动删除
dbDest.deleteMatchResult(formerOsp.getId(), getTargetTable(formerOsp.getId()));
}
try{
dbDest.insertOsp(openSourceProjectTableName, osp);//将数据插入open_source_projects表中
}catch (DuplicateKeyException e){
System.out.println(isUpdate);
System.out.println(e);
}
//try{
dbDest.insertOsp(openSourceProjectTableName, osp);//将数据插入open_source_projects表中
//}catch (DuplicateKeyException e){
// System.out.println(isUpdate);
// System.out.println(e);
//}
int osp_id = osp.getId();
String tags = osp.getTags();//tag分离