报错的代码
@Update("update staff_info set ApplyState = #{applyState} where Id = #{userId}")
int handleStaff( Integer userId, Integer applyState);
修改后的代码
@Update("update staff_info set ApplyState = #{applyState} where Id = #{userId}")
int handleStaff(@Param(value="userId") Integer userId,@Param(value="applyState") Integer applyState);
完美解决问题