直接上代码
- Dao层
- Mapper接口
<select id="selectBrachNo" resultType="com.bootdo.system.domain.DataMastDO">
select * from ORW_DATA_MAST
where
<foreach collection="mastDos" index="index" item="val" separator="or" open="(" close=")">
(orw_modelid = #{val.orwModelid} and orw_seqno=#{val.orwSeqno})
</foreach>
</select>
注意:Dao中的 @Param(“mastDos”) 不写会抛异常,找不到 mastDos这个属性 其他注释明天研究下