瀏覽代碼

fix 学员

he2802 3 年之前
父節點
當前提交
d2bcaf8cdd
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      zhongzheng-system/src/main/resources/mapper/modules/user/UserStudyRecordMapper.xml

+ 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