From 84dea9976c29ac938fa018b8566c71461b056418 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 05 四月 2024 08:18:59 +0800
Subject: [PATCH] 增加log文件忽略配置

---
 smart-man-boot/src/main/java/com/qianwen/smartman/modules/visual/service/impl/VisualCategoryServiceImpl.java |   49 +++++++++----------------------------------------
 1 files changed, 9 insertions(+), 40 deletions(-)

diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/visual/service/impl/VisualCategoryServiceImpl.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/visual/service/impl/VisualCategoryServiceImpl.java
index 4bafba1..ccb8cce 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/visual/service/impl/VisualCategoryServiceImpl.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/visual/service/impl/VisualCategoryServiceImpl.java
@@ -1,64 +1,33 @@
 package com.qianwen.smartman.modules.visual.service.impl;
 
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import org.springframework.stereotype.Service;
+
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import java.lang.invoke.SerializedLambda;
 import com.qianwen.core.log.exception.ServiceException;
 import com.qianwen.core.tool.utils.Func;
 import com.qianwen.smartman.modules.visual.entity.VisualCategory;
 import com.qianwen.smartman.modules.visual.mapper.VisualCategoryMapper;
 import com.qianwen.smartman.modules.visual.service.IVisualCategoryService;
-import org.springframework.stereotype.Service;
 
 @Service
 /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/visual/service/impl/VisualCategoryServiceImpl.class */
 public class VisualCategoryServiceImpl extends ServiceImpl<VisualCategoryMapper, VisualCategory> implements IVisualCategoryService {
-    private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) {
-        String implMethodName = lambda.getImplMethodName();
-        boolean z = true;
-        switch (implMethodName.hashCode()) {
-            case -787804323:
-                if (implMethodName.equals("getCategoryValue")) {
-                    z = false;
-                    break;
-                }
-                break;
-            case 98245393:
-                if (implMethodName.equals("getId")) {
-                    z = true;
-                    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/modules/visual/entity/VisualCategory") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getCategoryValue();
-                    };
-                }
-                break;
-            case true:
-                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/modules/visual/entity/VisualCategory") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getId();
-                    };
-                }
-                break;
-        }
-        throw new IllegalArgumentException("Invalid lambda deserialization");
-    }
+    
 
     @Override // org.springblade.modules.visual.service.IVisualCategoryService
     public boolean submit(VisualCategory visualCategory) {
+    	LambdaQueryWrapper<VisualCategory> lqw = Wrappers.<VisualCategory>query().lambda().eq(VisualCategory::getCategoryValue, visualCategory.getCategoryValue());
+    	/*
         Wrapper wrapper = (LambdaQueryWrapper) Wrappers.query().lambda().eq((v0) -> {
             return v0.getCategoryValue();
-        }, visualCategory.getCategoryValue());
+        }, visualCategory.getCategoryValue());*/
+    	Long cnt = this.baseMapper.selectCount(Func.isEmpty(visualCategory.getId()) ? lqw : lqw.notIn(VisualCategory::getId, new Object[] { visualCategory.getId() }));
+    	/*
         Long cnt = ((VisualCategoryMapper) this.baseMapper).selectCount(Func.isEmpty(visualCategory.getId()) ? wrapper : (Wrapper) wrapper.notIn((v0) -> {
             return v0.getId();
-        }, new Object[]{visualCategory.getId()}));
+        }, new Object[]{visualCategory.getId()}));*/
         if (cnt.longValue() > 0) {
             throw new ServiceException("褰撳墠妯″潡閿�煎凡瀛樺湪!");
         }

--
Gitblit v1.9.3