Browse Source

显示分组里信息数量

shenzhipeng 3 years ago
parent
commit
040ee1464a
1 changed files with 2 additions and 3 deletions
  1. 2 3
      application/module/ctrl/User_smsgroup_adminAction.class.php

+ 2 - 3
application/module/ctrl/User_smsgroup_adminAction.class.php

@@ -28,9 +28,8 @@ class User_smsgroup_adminAction extends Action{
 
 		$list  = $admin->select_sms_user_group($where);
 		foreach($list as &$item) {
-			$where .= " and group_name='{$item['name']}'";
-			echo $where . "<br />";
-			$count = $admin->selectSmsCustomerCount($where);
+			$condition = "where uid='{$_SESSION['user_infos']['id']}' and group_name='{$item['name']}'";
+			$count = $admin->selectSmsCustomerCount($condition);
 			$count = empty($count) ? 0  : $count;
 			$item['count'] = $count;
 		}