mybatis更新文章閱讀次數

<!-- 更新閱讀次數 -->
    <update id="updateReadCount" parameterType="com.sjq.cg.purchaseplan.pojo.PortalArtile">
        update portal_article
        SET read_count = IFNULL(read_count,0) + #{readCount}
        where article_id = #{articleId}
    </update>
發佈了132 篇原創文章 · 獲贊 23 · 訪問量 31萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章