@@ -56,5 +56,5 @@ public interface ExaminationBasicDao extends BaseDAO<Long, ExaminationBasic> {
* @param organIds:
* @return com.keao.edu.user.dto.ExamStatisticsDto
*/
- ExamStatisticsDto getTenantExamStatistics(@Param("organs") List<Integer> organIds);
+ ExamStatisticsDto getTenantExamStatistics(@Param("organIds") List<Integer> organIds);
}
@@ -316,9 +316,11 @@
examination_basic
WHERE
status_ NOT IN ( 'CLOSE', 'DELETE' )
- AND organ_id_ IN
- <foreach collection="organs" item="organ" separator="," open="(" close=")">
- #{organ}
- </foreach>
+ <if test="organIds!=null">
+ AND organ_id_ IN
+ <foreach collection="organIds" item="organId" separator="," open="(" close=")">
+ #{organId}
+ </foreach>
+ </if>
</select>
</mapper>