TASK:批量修改类别;

This commit is contained in:
shahaibo
2024-01-05 11:11:29 +08:00
parent 8930e64bf7
commit 4a8867dbb5
2 changed files with 2 additions and 3 deletions

View File

@@ -609,10 +609,9 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
@Override
public Boolean updateLibraryLevel2Type(LibraryLevel2TypeUpdateDTO libraryLevel2TypeUpdateDTO) {
Library library = new Library();
library.setId(libraryLevel2TypeUpdateDTO.getLibraryId());
library.setLevel2Type(libraryLevel2TypeUpdateDTO.getLevel2Type());
QueryWrapper<Library> qw = new QueryWrapper<>();
qw.lambda().eq(Library::getId, libraryLevel2TypeUpdateDTO.getLibraryId());
qw.lambda().in(Library::getId, libraryLevel2TypeUpdateDTO.getLibraryId());
return libraryMapper.update(library, qw) == 1;
}