/** * 根据主键删除活动 * * @param string|array $key 主键 */ public static function delByPrimarykey($key) { $ids = $key; if (is_array($key)) { $ids = implode(',', $key); } $data = Da_Wrapper::execute(self::DB_TABLE_ACTIVE, "update {active} set isdel = 1 where id in ({$ids})"); return $data; }