Browse Source

编写方法错误

master
wanghongjun 2 weeks ago
parent
commit
2acf1a6706
  1. 2
      app/BaseModel.php

2
app/BaseModel.php

@ -92,7 +92,7 @@ class BaseModel extends Model
} }
// 获取某一项数据的统计 // 获取某一项数据的统计
public static function getTotal($map,$where=[],$field,$group){ public static function getTotal($map,$where=[],$field ='',$group=''){
return self::field($field) return self::field($field)
->where($map) ->where($map)
->where($where) ->where($where)

Loading…
Cancel
Save