* Finish task#8561.

This commit is contained in:
hufangzhou
2020-11-30 17:26:33 +08:00
parent 491ea3a070
commit 1bcf0274af
-2
View File
@@ -83,10 +83,8 @@ class storyModel extends model
public function getByList($storyIdList = 0, $type = 'story')
{
return $this->dao->select('t1.*, t2.spec, t2.verify, t3.name as productTitle')
->markLeft()
->from(TABLE_STORY)->alias('t1')
->leftJoin(TABLE_STORYSPEC)->alias('t2')->on('t1.id=t2.story')
->markRight()
->leftJoin(TABLE_PRODUCT)->alias('t3')->on('t1.product=t3.id')
->where('t1.deleted')->eq(0)
->andWhere('t1.version=t2.version')