From 040976de6f9934b99f30268a28e2ecf42260e217 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 18 五月 2024 22:13:01 +0800
Subject: [PATCH] 注释整理
---
smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/GalleryItemServiceImpl.java | 40 +++++++++-------------------------------
1 files changed, 9 insertions(+), 31 deletions(-)
diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/GalleryItemServiceImpl.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/GalleryItemServiceImpl.java
index dafb8ad..c5ed020 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/GalleryItemServiceImpl.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/GalleryItemServiceImpl.java
@@ -1,55 +1,33 @@
package com.qianwen.smartman.modules.system.service.impl;
import java.io.IOException;
-import java.lang.invoke.SerializedLambda;
import java.util.List;
-import com.qianwen.smartman.common.utils.Lambda;
-import com.qianwen.smartman.common.utils.PictureUtil;
+
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.multipart.MultipartFile;
+
import com.qianwen.core.mp.base.BaseServiceImpl;
import com.qianwen.core.oss.model.BladeFile;
import com.qianwen.core.tool.utils.Func;
+import com.qianwen.smartman.common.utils.Lambda;
+import com.qianwen.smartman.common.utils.PictureUtil;
import com.qianwen.smartman.modules.resource.builder.oss.OssBuilder;
import com.qianwen.smartman.modules.system.dto.GalleryItemDTO;
import com.qianwen.smartman.modules.system.entity.GalleryItem;
import com.qianwen.smartman.modules.system.mapper.GalleryItemMapper;
import com.qianwen.smartman.modules.system.service.IGalleryItemService;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.multipart.MultipartFile;
@Service
-/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/service/impl/GalleryItemServiceImpl.class */
public class GalleryItemServiceImpl extends BaseServiceImpl<GalleryItemMapper, GalleryItem> implements IGalleryItemService {
private final OssBuilder ossBuilder;
- private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) {
- String implMethodName = lambda.getImplMethodName();
- boolean z = true;
- switch (implMethodName.hashCode()) {
- case 98245393:
- if (implMethodName.equals("getId")) {
- z = false;
- break;
- }
- break;
- }
- switch (z) {
- case false:
- if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("org/springblade/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
- return (v0) -> {
- return v0.getId();
- };
- }
- break;
- }
- throw new IllegalArgumentException("Invalid lambda deserialization");
- }
public GalleryItemServiceImpl(final OssBuilder ossBuilder) {
this.ossBuilder = ossBuilder;
}
- @Override // org.springblade.modules.system.service.IGalleryItemService
+
@Transactional
public GalleryItem save(MultipartFile file, GalleryItemDTO galleryItemDTO) throws IOException {
GalleryItem galleryItem = new GalleryItem();
@@ -64,7 +42,7 @@
return galleryItem;
}
- @Override // org.springblade.modules.system.service.IGalleryItemService
+ @Override
public boolean remove(List<String> ids) {
List<GalleryItem> galleryItems = list(Lambda.in((v0) -> {
return v0.getId();
--
Gitblit v1.9.3