Selaa lähdekoodia

fix 订单列表

he2802 3 vuotta sitten
vanhempi
commit
60df8091d3

+ 2 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderMapper.xml

@@ -107,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 LEFT JOIN school s ON s.id = g.school_id
                 LEFT JOIN major m ON g.major_id = m.id
         WHERE 1=1
-        AND og.pay_status in (2,3)
+
         <if test="educationTypeId != null and educationTypeId != ''">
             AND g.education_type_id = #{educationTypeId}
         </if>
@@ -152,6 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </if>
         <if test="userId != null">
             AND u.user_id = #{userId}
+            AND og.pay_status in (2,3)
         </if>
         ORDER BY o.order_id DESC
     </select>