puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
cloud-server-activity/src/main/resources/mapper/BenefitsVideosMapper.xml
@@ -9,7 +9,8 @@
            courseId,
            integral,
            "0" as study
            from t_benefits_videos where state = 1 and id not in (select benefitsVideosId from t_user_benefits_videos where appUserId = #{uid})
        from t_benefits_videos where state = 1 and id not in (select benefitsVideosId from t_user_benefits_videos where
        appUserId = #{uid})
            <if test="null != classificationId">
                and benefitsVideoClassificationId = #{classificationId}
            </if>
@@ -28,7 +29,8 @@
            courseId,
            integral,
            "1" as study
            from t_benefits_videos where state = 1 and id in (select benefitsVideosId from t_user_benefits_videos where appUserId = #{uid})
        from t_benefits_videos where state = 1 and id in (select benefitsVideosId from t_user_benefits_videos where
        appUserId = #{uid})
            <if test="null != classificationId">
                and benefitsVideoClassificationId = #{classificationId}
            </if>