|
|
@@ -143,11 +143,11 @@ public class AuthTools {
|
|
|
|
|
|
public boolean checkTestStepOwnership (Integer testStepId) {
|
|
|
log.info("checkTestStepOwnership verifying testStepId: " + testStepId);
|
|
|
- List<FuncTestStepPO> funcTestStepPOS = funcTestStepMapper.selectByTestCaseId(testStepId);
|
|
|
- if (funcTestStepPOS == null) {
|
|
|
+ FuncTestStepPO funcTestStepPO = funcTestStepMapper.selectById(testStepId);
|
|
|
+ if (funcTestStepPO == null) {
|
|
|
return false;
|
|
|
}
|
|
|
- Integer testCaseId = funcTestStepPOS.get(0).getTestCaseId();
|
|
|
+ Integer testCaseId = funcTestStepPO.getTestCaseId();
|
|
|
return checkTestCaseOwnership(testCaseId);
|
|
|
}
|
|
|
|