model: public function insert_select($values) { $sql = 'INSERT INTO ' . $this->_table_name . '(article_id,user_id,share_link,short_link,read_price,created_at,updated_at) VALUES ' . $values . ' ON DUPLICATE KEY UPDATE article_id=values(article_id),use…