传map参数:这样就行 select from ip_info_record r where r.unitid = #{unitid} AND r.recordmoment = #{recordmoment} AND r.dealmode in #{item}