<select id="getMyFoodWebList" resultType="com.jusekj.zml.dto.search.MyFoodSearchDto">
select id,food_name,food_measure,food_unit,food_calorie,img,seq
from wx_food where id in
<foreach collection="list" open="(" close=")" index="index" separator="," item="item">
#{ item }
</foreach>
ORDER BY FIELD
<foreach collection="list" item="styleNumId" separator="," open="(id," close=")">
#{styleNumId}
</foreach>
</select>
根据idList集合查询对应的实体类按照对应的id顺序
最新推荐文章于 2023-10-03 11:08:22 发布