This commit is contained in:
sunguangming
2024-01-29 14:21:33 +08:00
parent 9eb015e769
commit 300d42e8f6
3 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -952,7 +952,7 @@ class testtaskModel extends model
{
$orderBy = $this->addPrefixToOrderBy($orderBy);
return $this->dao->select('t2.*, t1.*, t3.title AS storyTitle, t2.status AS caseStatus')->from(TABLE_TESTRUN)->alias('t1')
return $this->dao->select('t2.*, t1.*, t2.version as caseVersion, t3.title AS storyTitle, t2.status AS caseStatus')->from(TABLE_TESTRUN)->alias('t1')
->leftJoin(TABLE_CASE)->alias('t2')->on('t1.case = t2.id')
->leftJoin(TABLE_STORY)->alias('t3')->on('t2.story = t3.id')
->where('t1.task')->eq($taskID)