fix(测试计划): 测试计划执行时增加测试集的排序

This commit is contained in:
Jianguo-Genius 2024-09-27 18:11:31 +08:00 committed by Craftsman
parent 47034570bf
commit f8f2ab8b07
1 changed files with 1 additions and 0 deletions

View File

@ -341,6 +341,7 @@ public class TestPlanExecuteService {
TestPlanCollection parentCollection = testPlanCollectionMapper.selectByPrimaryKey(executionQueue.getSourceID()); TestPlanCollection parentCollection = testPlanCollectionMapper.selectByPrimaryKey(executionQueue.getSourceID());
TestPlanCollectionExample example = new TestPlanCollectionExample(); TestPlanCollectionExample example = new TestPlanCollectionExample();
example.createCriteria().andParentIdEqualTo(executionQueue.getSourceID()); example.createCriteria().andParentIdEqualTo(executionQueue.getSourceID());
example.setOrderByClause("pos asc");
List<TestPlanCollection> childrenList = testPlanCollectionMapper.selectByExample(example); List<TestPlanCollection> childrenList = testPlanCollectionMapper.selectByExample(example);
int pos = 0; int pos = 0;