xiaoyong931011
2021-05-26 a0da4723b75c2bb13d2b4bef8fed196c678ddcde
src/main/resources/mapper/otc/OtcOrderDao.xml
@@ -89,12 +89,9 @@
    <select id="selectOrderListForUser" resultType="com.xcong.excoin.modules.otc.entity.OtcOrder">
        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>