* [error] modify insert to replace.

This commit is contained in:
sunguangming
2025-02-27 14:34:30 +08:00
committed by 田淑杰
parent fddbf95810
commit 9de5f90004
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2333,7 +2333,7 @@ class executionModel extends model
$data->plan = trim($data->plan, ',');
$data->plan = empty($data->plan) ? 0 : ",$data->plan,";
$this->dao->insert(TABLE_PROJECTPRODUCT)->data($data)->exec();
$this->dao->replace(TABLE_PROJECTPRODUCT)->data($data)->exec();
$existedProducts[$productID][$branchID] = true;
}
}