为懒人提供无限可能,生命不息,code不止
作者: whooyun发表于: 2024-10-29 18:52
val oldPar = pbService.getById(Id); val updatePartition = Partition().apply { id = ptId remark = newPartition.remark version = oldPar.version //只有增加这行,where后面才会主动拼接where version=? } pbService.updateById(updatePartition)