From 153cc3fd4ef015a8b1390b2eef3d102c5859a5e7 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 29 三月 2024 16:07:48 +0800
Subject: [PATCH] dnc Module error fix

---
 smart-man-boot/src/main/java/com/qianwen/smartman/modules/dnc/controller/DncFactoryFileController.java |   54 ++++++++++++++++++------------------------------------
 1 files changed, 18 insertions(+), 36 deletions(-)

diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/dnc/controller/DncFactoryFileController.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/dnc/controller/DncFactoryFileController.java
index a84beb8..3f7c66d 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/dnc/controller/DncFactoryFileController.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/dnc/controller/DncFactoryFileController.java
@@ -1,16 +1,17 @@
 package com.qianwen.smartman.modules.dnc.controller;
 
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import java.util.List;
+
+import javax.validation.Valid;
+
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import java.lang.invoke.SerializedLambda;
-import java.util.List;
-import javax.validation.Valid;
-import com.qianwen.smartman.common.cache.RegionCache;
 import com.qianwen.core.boot.ctrl.BladeController;
 import com.qianwen.core.mp.support.Query;
 import com.qianwen.core.scanner.modular.annotation.DeleteResource;
@@ -21,6 +22,7 @@
 import com.qianwen.core.secure.annotation.PreAuth;
 import com.qianwen.core.tool.api.R;
 import com.qianwen.core.tool.utils.Func;
+import com.qianwen.smartman.common.cache.RegionCache;
 import com.qianwen.smartman.modules.dnc.convert.DncFactoryFileConvert;
 import com.qianwen.smartman.modules.dnc.entity.DncFactoryFile;
 import com.qianwen.smartman.modules.dnc.service.IDncFactoryFileService;
@@ -28,10 +30,10 @@
 import com.qianwen.smartman.modules.dnc.vo.FactoryFileVO;
 import com.qianwen.smartman.modules.dnc.vo.FileHistoryVO;
 import com.qianwen.smartman.modules.dnc.vo.FileVersionSwitchVO;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
 
 @Api(value = "宸ュ巶鏂囦欢绠$悊", tags = {"宸ュ巶鏂囦欢绠$悊"})
 @ApiResource({"blade-dnc/dnc-factory-file"})
@@ -40,29 +42,7 @@
 public class DncFactoryFileController extends BladeController {
     private IDncFactoryFileService dncFactoryFileService;
 
-    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 DncFactoryFileController(final IDncFactoryFileService dncFactoryFileService) {
         this.dncFactoryFileService = dncFactoryFileService;
     }
@@ -117,9 +97,11 @@
             return R.status(false);
         }
         List<Long> delIds = Func.toLongList(ids);
+        List<DncFactoryFile> list = this.dncFactoryFileService.list(Wrappers.<DncFactoryFile>lambdaQuery().in(DncFactoryFile::getId, delIds));
+        /*
         List<DncFactoryFile> list = this.dncFactoryFileService.list((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
             return v0.getId();
-        }, delIds));
+        }, delIds));*/
         if (Func.isNotEmpty(list)) {
             list.forEach(file -> {
                 this.dncFactoryFileService.writeFileLog(file);

--
Gitblit v1.9.3