<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ruoyi.mapper.ReviewKeyPointMapper"> <select id="findByStandardList" resultType="com.ruoyi.domain.ReviewKeyPoint"> SELECT id, text, review_standard_id FROM t_review_keypoint WHERE review_standard_id IN <foreach collection="reviewStandardList" item="standard" open="(" separator="," close=")"> #{standard.id} </foreach> </select> </mapper>