<?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="cn.kk.spring_simple_operation.mapper.PhotoProgressMapper"> <select id="getListBySku" resultType="cn.kk.spring_simple_operation.entity.PhotoProgress"> select id, simple_video_upload_status from photo_progress where sku in <foreach collection="skuList" item="item" open="(" separator="," close=")"> #{item} </foreach> </select> </mapper>