he2802 před 3 roky
rodič
revize
d2bcaf8cdd

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserStudyRecordMapper.xml

@@ -1345,6 +1345,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             user_study_record usr
         WHERE
            usr.user_id = #{userId}
+        <if test="goodsId != null and goodsId !='' ">
+            AND usr.goods_id  = #{goodsId}
+        </if>
         ORDER BY
             usr.update_time DESC
             LIMIT 1