xiaoyong931011
2021-05-26 4ac9fb8e1f8ed5a3811cd3e3dc5a4223639867fc
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -90,11 +90,8 @@
        select * from otc_order
        where member_id=#{memberId}
          <!-- 查询除完成以外所有订单 -->
          <if test="status != null and status == 0">
              and status = 3
          </if>
        <if test="status != null and status != 0">
            and status != 3
        <if test="status != null">
            and status == #{status}
        </if>
    </select>