caipin 5 år sedan
förälder
incheckning
93a07646fd

+ 2 - 2
protected/controller/ReceiptExtendController.php

@@ -2705,8 +2705,8 @@ class ReceiptExtendController extends DooController {
     		
     		
     		//构建栏目展示Html
     		//构建栏目展示Html
     		$sectionHtml='';
     		$sectionHtml='';
-    		foreach ($aiList as $key=>$value){
-    			$sectionHtml.='<th colspan="'.$value['itemCount'].'">'.$value['category'].'</th>';
+    		foreach ($aiAllList as $key=>$value){
+    			$sectionHtml.='<th colspan="'.count($value[$key]).'">'.$key.'</th>';
     		}
     		}
     		
     		
     		print_r($sectionHtml);
     		print_r($sectionHtml);

+ 1 - 1
protected/model/accountItem.php

@@ -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 );