* [misc] fix story grade.

This commit is contained in:
sunguangming
2025-03-14 10:37:48 +08:00
committed by 田淑杰
parent b5ee0fae76
commit d0bc088407
+3 -1
View File
@@ -2497,11 +2497,13 @@ class convertTao extends convertModel
$childType = zget($issueList[$childID], 'BType', '');
if(!in_array($childType, array('zepic', 'zrequirement', 'zstory'))) continue;
$grade = $parentType == $childType ? 2 : 1;
$childrenID = zget($issueList[$childID], 'BID', '');
$this->dao->dbh($this->dbh)->update(TABLE_STORY)
->set('parent')->eq($parentID)
->set('isParent')->eq('0')
->set('grade')->eq('2')
->set('grade')->eq($grade)
->set('root')->eq($parentID)
->set('path')->eq(",{$parentID},{$childrenID},")
->where('id')->eq($childrenID)