<!--根据条件查询法官季度报列表-->
<select id="selectJudgeQuarterListByCodition" parameterType="JudgeQuarter" resultMap="JudgeQuarterResult">
<include refid="selectJudgeQuarter"></include>
<where>
<if test="syear != null and syear != ''"> and rjq.syear = #{syear}</if>
<if test="quarter != null and quarter != ''"> and rjq.quarter = #{quarter}</if>
<if test="userList.size() > 0"> and rjq.judgeId IN
<foreach collection="userList" index="index" item="item" separator="," open="(" close=")">
#{item.loginName,jdbcType=VARCHAR}
</foreach>
</if>
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
</select>