wangliang 11 tháng trước cách đây
mục cha
commit
6b5d96af15

+ 3 - 2
distributed-print-business/src/main/resources/mapper/TCFinalScoreMapper.xml

@@ -35,6 +35,7 @@
 
     <select id="getCountByScoreRange" resultType="int">
         SELECT count(1) FROM t_c_final_score tcfs
+        join t_c_usual_score tcus on tcfs.course_id = tcus.course_id and tcfs.culture_program_id = tcus.culture_program_id and tcfs.student_code = tcus.student_code
         <where>
             <if test="cultureProgramId != null and cultureProgramId != ''">
                 and tcfs.culture_program_id = #{cultureProgramId}
@@ -42,8 +43,8 @@
             <if test="courseId != null and courseId != ''">
                 and tcfs.course_id = #{courseId}
             </if>
-                and tcfs.score &gt;= #{start} and tcfs.score &lt;= #{end}
-                and tcfs.enable = true
+            and tcfs.score &gt;= #{start} and tcfs.score &lt;= #{end}
+            and tcfs.enable = true and tcus.enable = true
         </where>
     </select>