where('areatype', $areatype)->find(); if (!empty($res)) { return $res->income; } else { return 0; } } }