查询账号连接数
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-16 14:44:02
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @LastEditTime: 2020-11-25 14:56:10
|
||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||
* @LastEditTime: 2023-09-17 17:39:17
|
||||
*/
|
||||
|
||||
namespace app\manager\model;
|
||||
@@ -88,4 +88,12 @@ class ProductAccount extends Model
|
||||
->limit($limit)
|
||||
->fetchAll();
|
||||
}
|
||||
|
||||
//获取账号总连接数
|
||||
public function getCountConnect($where1 = [], $where2 = '') {
|
||||
return $this->field('sum(ConnectCount) as sum')
|
||||
->where($where1)
|
||||
->where($where2)
|
||||
->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user