Eddyer
发下工资正心凉,一紧张,码全忘。似曾相识,何用却不详。设计模式两茫茫,看代码,泪千行。步出小窝见同事,都一样,很受伤。如此工资,无颜见嫩娘。只待晚上交钱日,接绳套,系房梁。
 if (uIds.size() > 0) {
            map.put("uIds", uIds);
        } else {
            map.put("uIds", null);
        }
复制代码
 <select id="queryCourseEvaluationPeopleByUIds" resultType="map" resultMap="BaseResultMap">
        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>
复制代码

 

posted on   Eddyer  阅读(893)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示