Browse Source

替换teacher表

24753255@qq.com 7 months ago
parent
commit
84a65d4f03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protected/models/SchoolManager.php

+ 1 - 1
protected/models/SchoolManager.php

@@ -213,7 +213,7 @@ class SchoolManager extends Model{
 		if(!$pageSize)
 		if(!$pageSize)
 			return 0;
 			return 0;
 
 
-		$rs = $this->conn->createCommand("select count(*) from teacher")->queryRow();
+		$rs = $this->conn->createCommand("select count(*) from xb_teacher")->queryRow();
 		$rs = current($rs);
 		$rs = current($rs);
 
 
 		return ceil($rs / $pageSize);
 		return ceil($rs / $pageSize);