|
@@ -42,6 +42,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -171,7 +172,7 @@ public class NoveltyReportReferencesService extends ServiceImpl<NoveltyReportRef
|
|
|
|
|
|
return ids;
|
|
|
}
|
|
|
-
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public Integer addOrUpdate2(NoveltyReportReferenceDTO noveltyReportReferenceDTO) throws Exception {
|
|
|
Integer id = noveltyReportReferenceDTO.getId();
|
|
|
Integer projectId = noveltyReportReferenceDTO.getProjectId();
|