|
@@ -27,7 +27,7 @@ class accountItem extends DooModel {
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
function getAccountItem(){
|
|
function getAccountItem(){
|
|
- $sql = 'select category,count(*) as itemCount
|
|
|
|
|
|
+ $sql = 'select category
|
|
from ' . $this->_table . '
|
|
from ' . $this->_table . '
|
|
GROUP BY category ORDER BY aid ASC ';
|
|
GROUP BY category ORDER BY aid ASC ';
|
|
$query = Doo::db ()->query ( $sql );
|
|
$query = Doo::db ()->query ( $sql );
|