", 3]; $list = Db::table("nhc_medical_community")->where($where)->order("num asc,createTime asc")->select()->toArray(); return $list; } /** * 获取医共体键值对id,name * @return type */ public static function getMedicalCommunityMap() { $list = Db::table("nhc_medical_community")->column("name", "id"); return $list; } public static function hasGeneralHospital($medicalCommunityId) { $where = []; $where[] = ["type", "=", \app\common\state\CommonConst::ENTERPRISE_WJ]; $where[] = ["medicalCommunityId", "=", $medicalCommunityId]; $where[] = ["status", "=", 1]; return \app\admin\model\Enterprise::where($where)->find(); } }