Jelajahi Sumber

搜索条件新增

change 3 tahun lalu
induk
melakukan
e97e2bb737

+ 1 - 8
zhongzheng-system/src/main/resources/mapper/modules/user/UserStudyRecordMapper.xml

@@ -493,14 +493,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <otherwise>
                 AND up.goods_id = 0
             </otherwise>
-        </choose>
-        <choose>
-            <when test="examId != null and examId !=''">
-                AND up.exam_id = #{examId}
-            </when>
-            <otherwise>
-                AND up.exam_id = 0
-            </otherwise>
         </choose>
           AND up.user_id = #{userId}
     </select>
@@ -723,6 +715,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         WHERE
             upg.source_id = #{goodsId}
           and up.`status` = 1
+            LIMIT 1
     </select>
 
     <select id="selectPland" parameterType="com.zhongzheng.modules.user.domain.UserStudyRecord" resultType="Long">