From ed4a5236bab800094be4a8378f5098eebe3de6ac Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 04 四月 2024 23:30:30 +0800
Subject: [PATCH] 清楚不不要的mapstruct文件

---
 smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/CustomTemplateServiceImpl.java |  460 ++++++++++++++-------------------------------------------
 1 files changed, 112 insertions(+), 348 deletions(-)

diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/CustomTemplateServiceImpl.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/CustomTemplateServiceImpl.java
index 58718d4..1c2a09d 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/CustomTemplateServiceImpl.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/system/service/impl/CustomTemplateServiceImpl.java
@@ -1,20 +1,10 @@
 package com.qianwen.smartman.modules.system.service.impl;
 
-import cn.hutool.json.JSONObject;
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.toolkit.Wrappers;
-import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
-import com.google.common.collect.Lists;
-import com.jeecg.weibo.exception.BusinessException;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.lang.invoke.SerializedLambda;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.List;
@@ -22,12 +12,17 @@
 import java.util.Set;
 import java.util.function.Function;
 import java.util.stream.Collectors;
+
 import org.apache.poi.ss.usermodel.Workbook;
-import com.qianwen.smartman.common.cache.RegionCache;
-import com.qianwen.smartman.common.constant.CommonConstant;
-import com.qianwen.smartman.common.constant.ExcelConstant;
-import com.qianwen.smartman.common.utils.ExcelUtils;
-import com.qianwen.smartman.common.utils.MessageUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.google.common.collect.Lists;
+import com.jeecg.weibo.exception.BusinessException;
 import com.qianwen.core.log.exception.ServiceException;
 import com.qianwen.core.mp.base.BaseServiceImpl;
 import com.qianwen.core.oss.model.BladeFile;
@@ -35,9 +30,14 @@
 import com.qianwen.core.tool.api.R;
 import com.qianwen.core.tool.utils.FileUtil;
 import com.qianwen.core.tool.utils.Func;
+import com.qianwen.smartman.common.constant.CommonConstant;
+import com.qianwen.smartman.common.constant.ExcelConstant;
+import com.qianwen.smartman.common.utils.ExcelUtils;
+import com.qianwen.smartman.common.utils.MessageUtils;
 import com.qianwen.smartman.modules.coproduction.constant.PlanExcelConstant;
 import com.qianwen.smartman.modules.coproduction.dto.CheckParamDTO;
 import com.qianwen.smartman.modules.coproduction.dto.CheckResultDTO;
+import com.qianwen.smartman.modules.coproduction.entity.Plan;
 import com.qianwen.smartman.modules.coproduction.mapper.PlanMapper;
 import com.qianwen.smartman.modules.cps.constant.ProductExcelConstant;
 import com.qianwen.smartman.modules.resource.builder.oss.OssBuilder;
@@ -61,10 +61,8 @@
 import com.qianwen.smartman.modules.system.vo.CustomTemplateFieldRelationSubmitVO;
 import com.qianwen.smartman.modules.system.vo.CustomTemplateSubmitVO;
 import com.qianwen.smartman.modules.system.vo.CustomTemplateVO;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.context.annotation.Lazy;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
+
+import cn.hutool.json.JSONObject;
 
 @Service
 /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/service/impl/CustomTemplateServiceImpl.class */
@@ -85,302 +83,6 @@
     @Autowired
     private PlanMapper planMapper;
 
-    private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) {
-        String implMethodName = lambda.getImplMethodName();
-        boolean z = true;
-        switch (implMethodName.hashCode()) {
-            case -530662798:
-                if (implMethodName.equals("getOriginalName")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case -111752440:
-                if (implMethodName.equals("getAddShow")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 98245393:
-                if (implMethodName.equals("getId")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 533777810:
-                if (implMethodName.equals("getConfigType")) {
-                    z = false;
-                    break;
-                }
-                break;
-            case 650346651:
-                if (implMethodName.equals("getTemplateName")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 771206363:
-                if (implMethodName.equals("getTenantId")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 805307167:
-                if (implMethodName.equals("getImportField")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 837211371:
-                if (implMethodName.equals("getTypeId")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 953775504:
-                if (implMethodName.equals("getBusinessType")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 1006262059:
-                if (implMethodName.equals("getTemplateId")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 1255404527:
-                if (implMethodName.equals("getFieldName")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 1827486425:
-                if (implMethodName.equals("getImportSort")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 1906787486:
-                if (implMethodName.equals("getSupportImport")) {
-                    z = true;
-                    break;
-                }
-                break;
-            case 2096138965:
-                if (implMethodName.equals("getSystemField")) {
-                    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/system/entity/CustomTemplateFieldRelation") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getConfigType();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getSystemField();
-                    };
-                }
-                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/system/entity/CustomTemplate") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getBusinessType();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getBusinessType();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getBusinessType();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getBusinessType();
-                    };
-                }
-                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/system/entity/CustomTemplate") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getBusinessType();
-                    };
-                }
-                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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getId();
-                    };
-                }
-                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();
-                    };
-                }
-                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();
-                    };
-                }
-                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();
-                    };
-                }
-                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;
-            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/resource/entity/Attach") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getOriginalName();
-                    };
-                }
-                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/resource/entity/Attach") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getOriginalName();
-                    };
-                }
-                break;
-            case RegionCache.VILLAGE_LEVEL /* 5 */:
-                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/system/entity/CustomTemplate") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getTenantId();
-                    };
-                }
-                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/coproduction/entity/Plan") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTypeId();
-                    };
-                }
-                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/system/entity/CustomTemplateBusiness") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateFieldRelation") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateBusiness") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateBusiness") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateBusiness") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateBusiness") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateFieldRelation") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
-                    return (v0) -> {
-                        return v0.getTemplateId();
-                    };
-                }
-                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/system/entity/CustomTemplateFieldRelation") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getImportSort();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getImportSort();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getImportSort();
-                    };
-                }
-                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/system/entity/CustomTemplate") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getTemplateName();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getSupportImport();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getSupportImport();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getSupportImport();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
-                    return (v0) -> {
-                        return v0.getFieldName();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getAddShow();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getAddShow();
-                    };
-                }
-                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/system/entity/CustomTemplateField") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getAddShow();
-                    };
-                }
-                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/system/entity/CustomTemplateFieldRelation") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
-                    return (v0) -> {
-                        return v0.getImportField();
-                    };
-                }
-                break;
-        }
-        throw new IllegalArgumentException("Invalid lambda deserialization");
-    }
 
     @Override // org.springblade.modules.system.service.ICustomTemplateService
     public CustomTemplate savePlan(CustomTemplateSubmitVO customTemplateSubmitVO) {
@@ -388,9 +90,11 @@
             throw new ServiceException(MessageUtils.message("plan.name.already.exist", new Object[0]));
         }
         CustomTemplate customTemplate = CustomTemplateConvert.INSTANCE.convert(customTemplateSubmitVO);
+        this.customTemplateBusinessService.remove(Wrappers.<CustomTemplateBusiness>lambdaQuery().eq(CustomTemplateBusiness::getTemplateId, customTemplate.getId()));
+        /*
         this.customTemplateBusinessService.remove((Wrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getTemplateId();
-        }, customTemplate.getId()));
+        }, customTemplate.getId()));*/
         customTemplate.setDefaultTemplate(CommonConstant.DEACTIVATE);
         save(customTemplate);
         CustomTemplate customTemplate2 = handleBusinessRelation(customTemplateSubmitVO, customTemplate);
@@ -405,9 +109,12 @@
         List<Integer> configTypes = customTemplateSubmitVO.getConfigTypes();
         List<CustomTemplateFieldRelation> customTemplateFieldRelations = new ArrayList<>();
         if (Func.isEmpty(copySourceId)) {
+        	 List<CustomTemplateField> list = this.customTemplateFieldService.list(Wrappers.<CustomTemplateField>lambdaQuery()
+        	          .eq(CustomTemplateField::getSystemField, CommonConstant.ENABLE));
+        	 /*
             List<CustomTemplateField> list = this.customTemplateFieldService.list((Wrapper) Wrappers.lambdaQuery().eq((v0) -> {
                 return v0.getSystemField();
-            }, CommonConstant.ENABLE));
+            }, CommonConstant.ENABLE));*/
             if (Func.isEmpty(configTypes)) {
                 return;
             }
@@ -417,7 +124,7 @@
                 customTemplateFieldRelationSubmitVO.setFieldList(Lists.newArrayList());
                 customTemplateFieldRelationSubmitVO.setConfigType(configType);
                 if (Func.equals(configType, ConfigTypeEnum.VIEW_PAGE)) {
-                    customTemplateFieldRelations.addAll((Collection) list.stream().filter(item -> {
+                    customTemplateFieldRelations.addAll(list.stream().filter(item -> {
                         return Func.equals(item.getViewShow(), CommonConstant.ENABLE);
                     }).map(item2 -> {
                         CustomTemplateFieldRelation field = new CustomTemplateFieldRelation();
@@ -429,7 +136,7 @@
                         return field;
                     }).collect(Collectors.toList()));
                 } else if (Func.equals(configType, ConfigTypeEnum.EDIT_PAGE)) {
-                    customTemplateFieldRelations.addAll((Collection) list.stream().filter(item3 -> {
+                    customTemplateFieldRelations.addAll(list.stream().filter(item3 -> {
                         return Func.equals(item3.getUpdateShow(), CommonConstant.ENABLE);
                     }).map(item4 -> {
                         CustomTemplateFieldRelation field = new CustomTemplateFieldRelation();
@@ -441,7 +148,7 @@
                         return field;
                     }).collect(Collectors.toList()));
                 } else {
-                    customTemplateFieldRelations.addAll((Collection) list.stream().map(item5 -> {
+                    customTemplateFieldRelations.addAll(list.stream().map(item5 -> {
                         CustomTemplateFieldRelation field = new CustomTemplateFieldRelation();
                         field.setTemplateId(id);
                         field.setFieldId(item5.getId());
@@ -453,9 +160,11 @@
                 }
             }
         } else {
+        	List<CustomTemplateFieldRelation> relations = this.customTemplateFieldRelationService.list(Wrappers.<CustomTemplateFieldRelation>lambdaQuery().eq(CustomTemplateFieldRelation::getTemplateId, copySourceId));
+        	/*
             List<CustomTemplateFieldRelation> relations = this.customTemplateFieldRelationService.list((Wrapper) Wrappers.lambdaQuery().eq((v0) -> {
                 return v0.getTemplateId();
-            }, copySourceId));
+            }, copySourceId));*/
             relations.forEach(item6 -> {
                 item6.setId(null);
                 item6.setTemplateId(id);
@@ -466,9 +175,11 @@
     }
 
     private CustomTemplate handleBusinessRelation(CustomTemplateSubmitVO customTemplateSubmitVO, CustomTemplate customTemplate) {
+    	this.customTemplateBusinessService.remove(Wrappers.<CustomTemplateBusiness>lambdaQuery().eq(CustomTemplateBusiness::getTemplateId, customTemplate.getId()));
+    	/*
         this.customTemplateBusinessService.remove((Wrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getTemplateId();
-        }, customTemplate.getId()));
+        }, customTemplate.getId()));*/
         if (Func.isNotEmpty(customTemplateSubmitVO.getRelationIds())) {
             List<CustomTemplateBusiness> batchInsert = new ArrayList<>();
             for (Long relationId : customTemplateSubmitVO.getRelationIds()) {
@@ -496,56 +207,69 @@
     @Override // org.springblade.modules.system.service.ICustomTemplateService
     @Transactional(rollbackFor = {Exception.class})
     public R removePlan(List<Long> ids) {
+    	long count = this.planMapper.selectCount(Wrappers.<Plan>lambdaQuery().in(Plan::getTypeId, ids)).longValue();
+    	/*
         long count = this.planMapper.selectCount((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
             return v0.getTypeId();
-        }, ids)).longValue();
+        }, ids)).longValue();*/
         if (count > 0) {
             throw new BusinessException(MessageUtils.message("plan.already.use", new Object[0]));
         }
+        this.customTemplateBusinessService
+        .remove(Wrappers.<CustomTemplateBusiness>lambdaQuery().in(CustomTemplateBusiness::getTemplateId, ids));
+        /*
         this.customTemplateBusinessService.remove((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
             return v0.getTemplateId();
-        }, ids));
+        }, ids));*/
         this.customTemplateFieldRelationService.removeRelationByTemplateIds(ids);
         return R.status(removeByIds(ids));
     }
 
     @Override // org.springblade.modules.system.service.ICustomTemplateService
     public List<CustomTemplateVO> listCustomTemplate(Integer businessType) {
+    	List<CustomTemplate> list = list(Wrappers.<CustomTemplate>lambdaQuery().eq(CustomTemplate::getBusinessType, businessType)
+    	        .orderByDesc(CustomTemplate::getId));
+    	/*
         List<CustomTemplate> list = list((Wrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getBusinessType();
         }, businessType)).orderByDesc((v0) -> {
             return v0.getId();
-        }));
+        }));*/
         if (Func.isEmpty(list)) {
-            return new ArrayList();
+            return new ArrayList<>();
         }
-        List<Long> ids = (List) list.stream().map((v0) -> {
+        List<Long> ids = list.stream().map((v0) -> {
             return v0.getId();
         }).collect(Collectors.toList());
-        List<CustomTemplateBusiness> data = this.customTemplateBusinessService.list((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
+        
+        List<CustomTemplateBusiness> data = this.customTemplateBusinessService.list(Wrappers.<CustomTemplateBusiness>lambdaQuery().in(CustomTemplateBusiness::getTemplateId, ids));
+        /*
+        List<CustomTemplateBusiness> data = this.customTemplateBusinessService.list(Wrappers.lambdaQuery().in((v0) -> {
             return v0.getTemplateId();
-        }, ids));
-        Map<Long, List<Long>> collect = (Map) data.stream().collect(Collectors.groupingBy((v0) -> {
+        }, ids));*/
+        Map<Long, List<Long>> collect = data.stream().collect(Collectors.groupingBy((v0) -> {
             return v0.getTemplateId();
         }, Collectors.mapping((v0) -> {
             return v0.getRelationId();
         }, Collectors.toList())));
         List<CustomTemplateVO> convert = CustomTemplateConvert.INSTANCE.convert(list);
         convert.forEach(item -> {
-            item.setRelationIds((List) collect.get(item.getId()));
+            item.setRelationIds(collect.get(item.getId()));
         });
         return convert;
     }
 
     @Override // org.springblade.modules.system.service.ICustomTemplateService
     public CustomTemplateVO detail(String id) {
+    	List<CustomTemplateBusiness> list = this.customTemplateBusinessService.list(Wrappers.<CustomTemplateBusiness>lambdaQuery().eq(CustomTemplateBusiness::getTemplateId, id));
+    	 /*
         List<CustomTemplateBusiness> list = this.customTemplateBusinessService.list((Wrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getTemplateId();
-        }, id));
+        }, id));*/
         CustomTemplate customTemplate = (CustomTemplate) getById(id);
         CustomTemplateVO convert = CustomTemplateConvert.INSTANCE.convert(customTemplate);
         if (Func.isNotEmpty(list)) {
-            convert.setRelationIds((List) list.stream().map((v0) -> {
+            convert.setRelationIds( list.stream().map((v0) -> {
                 return v0.getRelationId();
             }).collect(Collectors.toList()));
         }
@@ -554,6 +278,13 @@
 
     @Override // org.springblade.modules.system.service.ICustomTemplateService
     public BladeFile excelTemplate(Long templateId, String templateName, ExcelUtils.ExcelTemplateDTO excelTemplateDTO) {
+    	List<CustomTemplateFieldRelation> relations = this.customTemplateFieldRelationService.list(
+    	        Wrappers.<CustomTemplateFieldRelation>lambdaQuery()
+    	        .eq(CustomTemplateFieldRelation::getConfigType, ConfigTypeEnum.NEW_PAGE.getCode())
+    	        .eq(CustomTemplateFieldRelation::getImportField, CommonConstant.ENABLE)
+    	        .eq(CustomTemplateFieldRelation::getTemplateId, templateId)
+    	        .orderByAsc(CustomTemplateFieldRelation::getImportSort));
+    	/*
         List<CustomTemplateFieldRelation> relations = this.customTemplateFieldRelationService.list((Wrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getConfigType();
         }, ConfigTypeEnum.NEW_PAGE.getCode())).eq((v0) -> {
@@ -562,14 +293,17 @@
             return v0.getTemplateId();
         }, templateId)).orderByAsc((v0) -> {
             return v0.getImportSort();
-        }));
-        List<Long> fieldIds = (List) relations.stream().map((v0) -> {
+        }));*/
+        List<Long> fieldIds = relations.stream().map((v0) -> {
             return v0.getFieldId();
         }).collect(Collectors.toList());
+        
+        List<CustomTemplateField> fields = this.customTemplateFieldService.list(Wrappers.<CustomTemplateField>lambdaQuery().in(CustomTemplateField::getId, fieldIds));
+        /*
         List<CustomTemplateField> fields = this.customTemplateFieldService.list((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
             return v0.getId();
-        }, fieldIds));
-        Map<Long, CustomTemplateField> fieldMap = (Map) fields.stream().collect(Collectors.toMap((v0) -> {
+        }, fieldIds));*/
+        Map<Long, CustomTemplateField> fieldMap = fields.stream().collect(Collectors.toMap((v0) -> {
             return v0.getId();
         }, item -> {
             return item;
@@ -598,6 +332,12 @@
 
     private Attach buildTemplate(List<Long> ids, Integer businessType) {
         ExcelUtils.ExcelTemplateDTO excelTemplateDTO = getExcelTemplateDTO(businessType);
+        List<CustomTemplateField> fields = this.customTemplateFieldService.list(Wrappers.<CustomTemplateField>lambdaQuery()
+                .in(CustomTemplateField::getId, ids)
+                .eq(CustomTemplateField::getAddShow, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getSupportImport, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getBusinessType, businessType));
+        /*
         List<CustomTemplateField> fields = this.customTemplateFieldService.list((Wrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().in((v0) -> {
             return v0.getId();
         }, ids)).eq((v0) -> {
@@ -606,7 +346,7 @@
             return v0.getSupportImport();
         }, CommonConstant.ENABLE)).eq((v0) -> {
             return v0.getBusinessType();
-        }, businessType));
+        }, businessType));*/
         fields.forEach(item -> {
             item.setImportSort(Integer.valueOf(ids.indexOf(item.getId())));
         });
@@ -631,9 +371,11 @@
         }
         String fileName = businessTypeEnums.getTemplateEnum().getFileName() + ExcelConstant.SUFFIX;
         BladeFile bladeFile = this.ossBuilder.systemTemplate().putFile(fileName, is);
+        Attach attach = (Attach)this.attachService.getOne(new QueryWrapper<Attach>().lambda().eq(Attach::getOriginalName, fileName));
+        /*
         Attach attach = (Attach) this.attachService.getOne((Wrapper) new QueryWrapper().lambda().eq((v0) -> {
             return v0.getOriginalName();
-        }, fileName));
+        }, fileName));*/
         String fileExtension = FileUtil.getFileExtension(fileName);
         if (Func.isEmpty(attach)) {
             attach = new Attach();
@@ -655,12 +397,22 @@
             return null;
         }
         String fileName = businessTypeEnums.getTemplateEnum().getFileName() + ExcelConstant.SUFFIX;
+        Attach target = this.attachService.getOne(new QueryWrapper<Attach>().lambda().eq(Attach::getOriginalName, fileName));
+        /*
         Attach target = (Attach) this.attachService.getOne((Wrapper) new QueryWrapper().lambda().eq((v0) -> {
             return v0.getOriginalName();
-        }, fileName));
+        }, fileName));*/
         if (!Func.isEmpty(target)) {
             return AttachConvert.INSTANCE.convert(target);
         }
+        List<CustomTemplateField> fields = this.customTemplateFieldService.list(Wrappers.<CustomTemplateField>lambdaQuery()
+                .select(CustomTemplateField::getId, CustomTemplateField::getImportSort, CustomTemplateField::getFieldName )
+                .eq(CustomTemplateField::getAddShow, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getSupportImport, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getBusinessType, businessType)
+                .orderByAsc(CustomTemplateField::getImportSort));
+        
+        /*
         List<CustomTemplateField> fields = this.customTemplateFieldService.list((Wrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().select(new SFunction[]{(v0) -> {
             return v0.getId();
         }, (v0) -> {
@@ -675,7 +427,7 @@
             return v0.getBusinessType();
         }, businessType)).orderByAsc((v0) -> {
             return v0.getImportSort();
-        }));
+        }));*/
         fields.forEach(item -> {
             if (Func.isEmpty(item.getImportSort())) {
                 Integer systemField = item.getSystemField();
@@ -732,19 +484,25 @@
             throw new ServiceException("鏈�澶ф敮鎸佸鍏�200鏉℃暟鎹�");
         }
         Set<String> heads = dataList.get(0).keySet();
+        
+        List<CustomTemplateField> fields = this.customTemplateFieldService.list(Wrappers.<CustomTemplateField>lambdaQuery()
+                .eq(CustomTemplateField::getAddShow, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getSupportImport, CommonConstant.ENABLE)
+                .eq(CustomTemplateField::getBusinessType, businessType));
+        /*
         List<CustomTemplateField> fields = this.customTemplateFieldService.list((Wrapper) ((LambdaQueryWrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().eq((v0) -> {
             return v0.getAddShow();
         }, CommonConstant.ENABLE)).eq((v0) -> {
             return v0.getSupportImport();
         }, CommonConstant.ENABLE)).eq((v0) -> {
             return v0.getBusinessType();
-        }, businessType));
+        }, businessType));*/
         fields.forEach(item -> {
             if (Func.equals(item.getSystemField(), CommonConstant.ENABLE) && Func.equals(item.getMustImport(), CommonConstant.ENABLE) && !heads.contains(item.getFieldName())) {
                 throw new ServiceException("缂哄皯" + item.getFieldName() + "鍒楄閲嶆柊涓嬭浇妯℃澘褰曞叆");
             }
         });
-        Map<String, CustomTemplateField> fieldMap = (Map) fields.stream().collect(Collectors.toMap((v0) -> {
+        Map<String, CustomTemplateField> fieldMap = fields.stream().collect(Collectors.toMap((v0) -> {
             return v0.getFieldName();
         }, item2 -> {
             return item2;
@@ -769,12 +527,12 @@
     List<Map<String, String>> reHandleData(Integer businessType, List<Map<String, String>> dataList, Map<String, CustomTemplateField> fieldMap) {
         List<Map<String, String>> data = new ArrayList<>();
         dataList.forEach(item -> {
-            HashMap hashMap = new HashMap();
+            HashMap<String, String>  hashMap = new HashMap<>();
             data.add(hashMap);
-            item.forEach(importName, value -> {
+            item.forEach((importName, value) -> {
                 String fieldName = ImportSpecialHandlingEnum.getFieldName(importName, businessType);
                 if (fieldMap.containsKey(fieldName)) {
-                    CustomTemplateField field = (CustomTemplateField) fieldMap.get(fieldName);
+                    CustomTemplateField field =  fieldMap.get(fieldName);
                     String fieldCode = field.getFieldCode();
                     hashMap.put(fieldCode, value);
                 }
@@ -793,7 +551,7 @@
         if (Func.isEmpty(customTemplate)) {
             checkResultDTO.error("鎷撳睍瀛楁妯℃澘涓嶅瓨鍦�");
         }
-        data.forEach(k, v -> {
+        data.forEach((k, v) -> {
             if (Func.equals(ExcelConstant.FAIL_REASON, k) || !relationMap.containsKey(k)) {
                 return;
             }
@@ -840,6 +598,12 @@
     }
 
     private boolean checkNameIsExist(Long id, String name, Integer businessType) {
+    	List<CustomTemplate> result = this.baseMapper.selectList(Wrappers.<CustomTemplate>query().lambda()
+    			.eq(Func.isNotEmpty(AuthUtil.getTenantId()), CustomTemplate::getTenantId, AuthUtil.getTenantId())
+    	        .eq(Func.isNotBlank(name), CustomTemplate::getTemplateName, name)
+    	        .eq(Func.isNotEmpty(businessType), CustomTemplate::getBusinessType, businessType)
+    	        .notIn(Func.isNotEmpty(id), CustomTemplate::getId, new Object[] { id }));
+    	/*
         List<CustomTemplate> result = ((CustomTemplateMapper) this.baseMapper).selectList(Wrappers.query().lambda().eq(Func.isNotEmpty(AuthUtil.getTenantId()), (v0) -> {
             return v0.getTenantId();
         }, AuthUtil.getTenantId()).eq(Func.isNotBlank(name), (v0) -> {
@@ -848,7 +612,7 @@
             return v0.getBusinessType();
         }, businessType).notIn(Func.isNotEmpty(id), (v0) -> {
             return v0.getId();
-        }, new Object[]{id}));
+        }, new Object[]{id}));*/
         return result != null && result.size() > 0;
     }
 }

--
Gitblit v1.9.3