* Refactor block ui of productList.

This commit is contained in:
liumengyi
2023-06-29 10:05:45 +08:00
parent e12832e9e6
commit 6932460d0a
8 changed files with 37 additions and 18 deletions
+12
View File
@@ -392,4 +392,16 @@ class blockModel extends model
return !dao::isError();
}
/**
* Get new block top.
*
* @param string $dashboard
* @access public
* @return int
*/
public function getNewTop($dashboard): int
{
return $this->dao->select('max(`top` + `height`) AS top')->from(TABLE_BLOCK)->where('dashboard')->eq($dashboard)->andWhere('hidden')->eq('0')->fetch('top');
}
}