//Controller:把camera状态值不等于4的camera_id传回后台
condMap.put("cameraIds", cameraIds);
//XML文件:sql语句
select * from t where t.id in
<foreach collection="cameraIds" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>