查询账号连接数

This commit is contained in:
“wanyongkang”
2023-09-17 18:07:18 +08:00
parent 575acc7f1f
commit 4a9e3e3749
2 changed files with 77 additions and 2 deletions

View File

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