if (uIds.size() > 0) {
            map.put("uIds", uIds);
        } else {
            map.put("uIds", null);
        }
 <select >
        select * from t_se_course_comment
        <where>
            <if test="map.kid!=null and map.kid!=''">
                and course_id = #{map.kid}
            </if>
            <if test="map.uIds!=null">
                and evaluation_teacher in
                <foreach collection="map.uIds" item="item" index="index" open="(" close=")" separator=",">
                    #{item}
                </foreach>
            </if>

        </where>
        order by id ASC
    </select>

 

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案