yangys
2024-05-19 9e5da8899bc21bb5b6b0a3c267108caa00199291
smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/controller/GalleryController.java
@@ -43,7 +43,6 @@
@Api(value = "图库管理", tags = {"图库管理"})
@ApiResource({"blade-system/gallery"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/controller/GalleryController.class */
public class GalleryController extends BladeController {
    private IGalleryService galleryService;
    private IGalleryItemService galleryItemService;
@@ -79,12 +78,7 @@
        List<GalleryTreeVO> treeVOS = GalleryConvert.INSTANCE.convertTree(list);
        for (GalleryTreeVO tree : treeVOS) {
           List<GalleryItem> items = this.galleryItemService.list(Lambda.eq(GalleryItem::getGalleryId, tree.getId()).limit(count).orderByDesc(GalleryItem::getId));
           /*
            List<GalleryItem> items = this.galleryItemService.list((Wrapper) Lambda.eq((v0) -> {
                return v0.getGalleryId();
            }, tree.getId()).limit(count).orderByDesc((v0) -> {
                return v0.getId();
            }));*/
            tree.setChildren(GalleryItemConvert.INSTANCE.convert(items));
        }
        return R.data(treeVOS);
@@ -127,7 +121,7 @@
    @ApiOperationSupport(order = 6)
    @DeleteResource({"/remove"})
    @ApiOperation(value = "图库删除", notes = "传入ids")
    public R remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) {
    public R<Void> remove(@ApiParam(value = "主键", required = true) @RequestBody List<String> ids) {
        if (ids.isEmpty()) {
            return R.status(false);
        }