ruoyi-system/src/main/resources/mapper/system/AppletOrderMapper.xml
@@ -17,6 +17,8 @@ o.status FROM t_big_gift_package_order o WHERE o.del_flag = 0 AND o.app_user_id = #{appUserId} AND o.status != 6 AND NOT (o.status = 1 AND o.create_time < DATE_SUB(NOW(), INTERVAL 1 HOUR)) UNION ALL @@ -32,6 +34,8 @@ CASE WHEN o.status = 2 THEN 3 ELSE o.status END AS status FROM t_physical_goods_order o WHERE o.del_flag = 0 AND o.app_user_id = #{appUserId} AND o.status != 5 AND NOT (o.status = 1 AND o.create_time < DATE_SUB(NOW(), INTERVAL 1 HOUR)) ) t <where> <if test="query.status != null">