mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 18:59:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1346 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6bb48002d7
commit
60113ffbc1
6 changed files with 64 additions and 30 deletions
|
|
@ -357,5 +357,28 @@
|
|||
$output = executeQuery('document.getCategoryDocumentCount', $args);
|
||||
return (int)$output->data->count;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 월별 글 보관현황을 가져옴
|
||||
**/
|
||||
function getgetMonthlyArchivedList($obj) {
|
||||
if($obj->mid) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
|
||||
unset($obj->mid);
|
||||
}
|
||||
|
||||
// 넘어온 module_srl은 array일 수도 있기에 array인지를 체크
|
||||
if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
|
||||
else $args->module_srl = $obj->module_srl;
|
||||
$args->list_count = $obj->list_count;
|
||||
|
||||
$output = executeQuery('document.getMonthlyArchivedList', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
if(!is_array($output->data)) $output->data = array($output->data);
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
15
modules/document/queries/getMonthlyArchivedList.xml
Normal file
15
modules/document/queries/getMonthlyArchivedList.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<query id="getMonthlyArchivedList" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="substring(regdate,1,6)" alias="month"/>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="module_srl" var="module_srl" filter="number" />
|
||||
</conditions>
|
||||
<groups>
|
||||
<group column="substring(regdate,1,6)" />
|
||||
</groups>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue