service层
Map<Object,Object> map = new HashMap<Object,Object>();
List list = new ArrayList();
list.add("kiki");
String status = "5";
map.put("list", list);
map.put("status", status);
tempDao.updateTempList(map);
mapper
<update id="updateTempListStatus" parameterType="map" >
update temp_list set status='1' where id in
<foreach collection="tempList" item="ent" separator="," open="(" close=")">
#{ent.id,jdbcType=VARCHAR}
</foreach>
and status = #{status,jdbcType=VARCHAR}
</update>