|
|
@@ -53,6 +53,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
order by report_date
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectLearnPlanStudyListByMonth" parameterType="LearnPlanStudy" resultMap="LearnPlanStudyResult">
|
|
|
+ <include refid="selectLearnPlanStudyVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="studentId != null "> and student_id = #{studentId}</if>
|
|
|
+ <if test="planId != null "> and plan_id = #{planId}</if>
|
|
|
+ <if test="monthSeq != null "> and month_seq = #{monthSeq}</if>
|
|
|
+ <if test="weekSeq != null "> and week_seq = #{weekSeq}</if>
|
|
|
+ <if test="reportDate != null "> and DATE_FORMAT(report_date, '%Y%m') = DATE_FORMAT(#{reportDate}, '%Y%m')</if>
|
|
|
+ <if test="questionCount != null "> and question_count = #{questionCount}</if>
|
|
|
+ <if test="videoCount != null "> and video_count = #{videoCount}</if>
|
|
|
+ <if test="videoTime != null "> and video_time = #{videoTime}</if>
|
|
|
+ <if test="questionPlan != null "> and question_plan = #{questionPlan}</if>
|
|
|
+ <if test="videoPlan != null "> and video_plan = #{videoPlan}</if>
|
|
|
+ </where>
|
|
|
+ order by report_date
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectLearnPlanStudyById" parameterType="String" resultMap="LearnPlanStudyResult">
|
|
|
<include refid="selectLearnPlanStudyVo"/>
|