|
@@ -182,11 +182,11 @@ class DictModel extends ZskkDefaultModel {
|
|
|
{
|
|
|
$data = ExamModel::where('institution_id',$id)
|
|
|
->where("application_department is not null and application_department != ''")
|
|
|
- ->field("count(*) as count,application_department")
|
|
|
+ ->field("count(*),application_department")
|
|
|
->cache($id.'_depart',43200)
|
|
|
->group('application_department')
|
|
|
- ->having('count>1')
|
|
|
- ->order('count desc')
|
|
|
+ ->having('count(*)>1')
|
|
|
+ ->order('count(*) desc')
|
|
|
->select();
|
|
|
return $data;
|
|
|
}
|