@Override public BaseResponse check(List<Integer> pidList) { UpdateWrapper<Photo> updateWrapper = new UpdateWrapper<>(); UpdateWrapper<Photo> set = updateWrapper.in("pid", pidList).set("isValid", 1); photoMapper.update(null,set); return new BaseResponse(200); }
mybatisplus根据id批量更新某个字段的值
最新推荐文章于 2024-06-02 23:27:09 发布