|
@@ -1371,6 +1371,44 @@
|
|
|
AND current_status = 1
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getStudyExamStatus" parameterType="com.zhongzheng.modules.grade.vo.ClassPeriodVo" resultType="Integer">
|
|
|
+ SELECT
|
|
|
+ IFNULL(MAX(report_status),-1)
|
|
|
+ FROM
|
|
|
+ user_bank_record
|
|
|
+ WHERE
|
|
|
+ 1=1
|
|
|
+ <if test="userId != null and userId !='' ">
|
|
|
+ AND user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ <if test="gradeId != null and gradeId !='' ">
|
|
|
+ AND grade_id = #{gradeId}
|
|
|
+ </if>
|
|
|
+ <if test="courseId != null and courseId !='' ">
|
|
|
+ AND course_id = #{courseId}
|
|
|
+ </if>
|
|
|
+ <if test="moduleId != null and moduleId !='' ">
|
|
|
+ AND module_id = #{moduleId}
|
|
|
+ </if>
|
|
|
+ <if test="chapterId != null and chapterId !='' ">
|
|
|
+ AND chapter_id = #{chapterId}
|
|
|
+ </if>
|
|
|
+ <if test="sectionId != null and sectionId !='' ">
|
|
|
+ AND section_id = #{sectionId}
|
|
|
+ </if>
|
|
|
+ <if test="goodsId != null and goodsId !='' ">
|
|
|
+ AND goods_id = #{goodsId}
|
|
|
+ </if>
|
|
|
+ <if test="orderGoodsId != null and orderGoodsId !='' ">
|
|
|
+ AND order_goods_id = #{orderGoodsId}
|
|
|
+ </if>
|
|
|
+ <if test="examType != null and examType !='' ">
|
|
|
+ AND `type` = #{examType}
|
|
|
+ </if>
|
|
|
+ AND `status` = 1
|
|
|
+ AND current_status = 1
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="listUserRecord" parameterType="com.zhongzheng.modules.user.bo.UserStudyRecordQueryBo"
|
|
|
resultMap="SectionStudyRecordVoResult">
|
|
|
SELECT cs.`name` as section_name,
|