浏览代码

Merge branch 'master' of http://smartcost.in.8866.org:26903/caipin/cld

Conflicts:
	protected/model/accountItem.php
caipin 5 年之前
父节点
当前提交
00ee290e8f
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      protected/controller/ReceiptExtendController.php
  2. 4 0
      protected/model/accountItem.php

+ 1 - 1
protected/controller/ReceiptExtendController.php

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

+ 4 - 0
protected/model/accountItem.php

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