java
2023-06-27 0d17b6a250e455af9abd0b61b6de0004a296e98d
cloud-server-course/src/main/resources/mapper/TCoursePackagePaymentMapper.xml
@@ -43,7 +43,13 @@
        UNION ALL
        SELECT *
        FROM t_course_package_payment5
        WHERE user_id = #{stuId}
        WHERE 1=1
        <if test=" stuId != null">
            and appUserId = #{stuId}
        </if>
        <if test="appUserId != null">
            and studentId = #{appUserId}
        </if>
    </select>
</mapper>