(用到“==”需要注意双引号与单引号需要互换即可) WHERE 1=1 <if test='orderStatus =="1"'> and order_status='1' </if> <if test='orderStatus =="2"'> and order_status='2' </if> <if test='orderStatus =="3"'> and order_status='3' </if> <if test='orderStatus =="4"'> and order_status='4' </if>
MyBatis的查询条件字段为“==”
最新推荐文章于 2024-03-01 13:49:10 发布