请问mybatis 批量更新为什么没成功

update cup_copy set text_ture =case id when ? then ? when ? then ? end where text_ture in ( ? , ? )
==> Parameters: 2(String), 10(String), 3(String), 93(String), 2(String), 3(String)

img


格式不对吗?

因为你写错了...
正确答案:update cup_copy set text_ture =case id when ? then ? when ? then ? end where id in ( ? , ? )

你看看表里有没有符合条件的数据