MyBatis批量删除,多参数

Mapper:
 
   

public int recommendSolution(@Param(value ="id")int[] id,@Param(value ="name")String name);

xml:
 
   



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

#{sid}


你可能感兴趣的:(Mybatis)