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