transfer projects : delete try catch
This commit is contained in:
parent
da2fec94d1
commit
2afd395f63
|
|
@ -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分离
|
||||
|
|
|
|||
Loading…
Reference in New Issue