mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
new type foldersperuser in getStatisticalData()
This commit is contained in:
parent
42f2ce31cf
commit
14b1cd34cd
|
@ -3174,7 +3174,14 @@ class SeedDMS_Core_DMS {
|
||||||
function getStatisticalData($type='') { /* {{{ */
|
function getStatisticalData($type='') { /* {{{ */
|
||||||
switch($type) {
|
switch($type) {
|
||||||
case 'docsperuser':
|
case 'docsperuser':
|
||||||
$queryStr = "select b.`fullName` as `key`, count(`owner`) as total from `tblDocuments` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`";
|
$queryStr = "select concat(b.`fullName`, ' (', b.`login`, ')') as `key`, count(`owner`) as total from `tblDocuments` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`";
|
||||||
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
|
if (!$resArr)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return $resArr;
|
||||||
|
case 'foldersperuser':
|
||||||
|
$queryStr = "select concat(b.`fullName`, ' (', b.`login`, ')') as `key`, count(`owner`) as total from `tblFolders` a left join `tblUsers` b on a.`owner`=b.`id` group by `owner`, b.`fullName`";
|
||||||
$resArr = $this->db->getResultArray($queryStr);
|
$resArr = $this->db->getResultArray($queryStr);
|
||||||
if (!$resArr)
|
if (!$resArr)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user