model = new ShopOrderModel(); } public static function editStatus($orderId, $status) { return Db::table(self::$table) ->where(['order_id' => $orderId]) ->update([ 'status' => $status, 'updated_time' => date('Y-m-d H:i:s') ]); } public static function getOrderById($orderId) { return Db::table(self::$table)->where(['order_id' => $orderId])->find(); } }