mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
修复素材移动bug
This commit is contained in:
@@ -131,11 +131,13 @@ public class AlbumServiceImpl implements IAlbumService {
|
||||
|
||||
Assert.notNull(albums, "文件丢失!");
|
||||
|
||||
Assert.notNull(albumCateMapper.selectOne(
|
||||
new QueryWrapper<AlbumCate>()
|
||||
.eq("id", cid)
|
||||
.eq("is_delete", 0)
|
||||
), "类目已不存在!");
|
||||
if (cid > 0) {
|
||||
Assert.notNull(albumCateMapper.selectOne(
|
||||
new QueryWrapper<AlbumCate>()
|
||||
.eq("id", cid)
|
||||
.eq("is_delete", 0)
|
||||
), "类目已不存在!");
|
||||
}
|
||||
|
||||
for (Album album : albums) {
|
||||
album.setCid(cid);
|
||||
|
||||
Reference in New Issue
Block a user