fix: 添加Transactional注解

This commit is contained in:
chenjianxing 2021-08-12 17:18:13 +08:00 committed by jianxing
parent fd35f82565
commit c9792314cb
2 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import io.metersphere.track.service.TestPlanTestCaseService;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.HashMap;
@ -28,6 +29,7 @@ import java.util.List;
import java.util.Map;
@Service
@Transactional(rollbackFor = Exception.class)
public class TestResultService {
@Resource

View File

@ -71,6 +71,7 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
@Service
@Transactional(rollbackFor = Exception.class)
public class TestPlanService {
Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog");