Mapper:
xml:public int recommendSolution(@Param(value ="id")int[] id,@Param(value ="name")String name);
<!-- 专家前台推荐解决方案 -->
<update id="recommendSolution">
update t_solution s
set s.isRecommend = 1
,s.expert_id = (select e.expert_id from t_expert e where e.expert_name = #{name})
where s.solution_id in
<foreach item="sid" collection="id" open="(" separator="," close=")">
#{sid}
</foreach>
</update>