songxingwei 2 years ago
parent
commit
f39a04e5e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -237,7 +237,7 @@ class Index extends Api
             ->leftJoin('system_towns b','a.towns_id=b.id')
             ->field('a.id,a.code,a.name,b.name as towns_name')
             ->with(['kd'=>function($query) use ($date){
-                $query->where('date',$date)->group('site_id,name')->order('id asc')->field('id,site_id,name,sum(value) as value');
+                $query->group('site_id,name')->order('id asc')->field('id,site_id,name,sum(value) as value');
             }])
             ->order('a.id asc')
             ->page($Nowpage,$limits)