龚焕茏
2024-05-17 6bf6111fdd4245cf6f4c5cfad9314fe8d570bd98
src/main/resources/mapper/ExamTemplatesUserCountMapper.xml
@@ -65,7 +65,8 @@
    </select>
    <select id="getCountByUserIdAndTemplatesId" resultType="java.lang.Integer" parameterType="com.mindskip.xzs.domain.vo.ExamTemplatesUserCountVO">
        select count(*) from t_exam_templates_user_count
        select count(*) from t_exam_templates_user_count a
         inner join t_exam_paper_answer b on a.exam_paper_id = b.exam_paper_id and (b.invalid = 0 or b.invalid is null)
        where user_id = #{userId}  and exam_templates_id = #{id}
    </select>