* Optimize for task #61174, #61175.

This commit is contained in:
liumengyi
2022-07-19 15:32:13 +08:00
parent 0aaae21a73
commit b58bc83616
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -189,8 +189,7 @@ class buildModel extends model
{
return $this->dao->select('*')->from(TABLE_BUILD)
->where('deleted')->eq(0)
->andWhere('stories', true)->like("%,$storyID,%")
->orWhere('stories')->like("%,$storyID")->markRight(1)
->andWhere("CONCAT(stories, ',')")->like("%,$storyID,%")
->orderBy('id_desc')
->fetchAll('id');
}
+1 -2
View File
@@ -114,8 +114,7 @@ class releaseModel extends model
{
return $this->dao->select('*')->from(TABLE_RELEASE)
->where('deleted')->eq(0)
->andWhere('stories', true)->like("%,$storyID,%")
->orWhere('stories')->like("%,$storyID")->markRight(1)
->andWhere("CONCAT(stories, ',')")->like("%,$storyID,%")
->orderBy('id_desc')
->fetchAll('id');
}