model('basic_material_ext')->getList('bm_id,length,width,high', array('bm_id'=>$bmIds)); $porth = array(); foreach ($bmExt as $v) { $volume = $v['length'] * $v['width'] * $v['high']; if($volume) { $porth[$v['bm_id']] = bcmul($volume, $bmNum[$v['bm_id']], 2); } } return $porth; } }