This commit is contained in:
tanghucheng
2023-07-03 13:20:39 +08:00
parent 869b17e421
commit 1f3d4f3901
+1 -1
View File
@@ -5668,7 +5668,7 @@ class storyModel extends model
public function linkStory($executionID, $productID, $storyID)
{
$lastOrder = (int)$this->dao->select('*')->from(TABLE_PROJECTSTORY)->where('project')->eq($executionID)->orderBy('order_desc')->limit(1)->fetch('order');
$this->dao->insert(TABLE_PROJECTSTORY)
$this->dao->replace(TABLE_PROJECTSTORY)
->set('project')->eq($executionID)
->set('product')->eq($productID)
->set('story')->eq($storyID)