fix: 添加Transactional注解
This commit is contained in:
parent
fd35f82565
commit
c9792314cb
|
@ -21,6 +21,7 @@ import io.metersphere.track.service.TestPlanTestCaseService;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -28,6 +29,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class TestResultService {
|
public class TestResultService {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
|
|
@ -71,6 +71,7 @@ import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public class TestPlanService {
|
public class TestPlanService {
|
||||||
Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog");
|
Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue