ss 4 mēneši atpakaļ
vecāks
revīzija
8af370a941
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      application/api/controller/screen/Waste.php

+ 1 - 0
application/api/controller/screen/Waste.php

@@ -25,6 +25,7 @@ class Waste extends Index
         foreach ($list as $k=>$v){
             $record = Db::name('waste_record')
                 ->where('cateid',$v['id'])
+                ->where('org_id',$this->orgId)
                 ->where($map)
                 ->where('del',0)
                 ->sum('weight');