默认不查车辆状态mapper文件的写法

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_40312909/article/details/102678781

车辆列表默认不查4和5的状态

<choose>
         <when test="vehicleStatus !=null and vehicleStatus != ''">
               AND vehicle_status = #{vehicleStatus,jdbcType=VARCHAR}
         </when>
         <otherwise>
               AND vehicle_status != 5  AND vehicle_status != 4
         </otherwise>
</choose>

猜你喜欢

转载自blog.csdn.net/qq_40312909/article/details/102678781