Mybatis動態查詢sql:{choose,when,otherwise}

where pro.enterprise_user_id = #{uid} and pro.status_new!=0 <choose> <when test='statusNew == "2"'> AND (pro.status_new = 2 or pro.status_new = 4) </when> <when test='statusNew == "1"'>
相關文章
相關標籤/搜索