From f284c600886f5515a8669b9dec01b1131ec5f02f Mon Sep 17 00:00:00 2001
From: yinglong zhang <1679309912@qq.com>
Date: Thu, 24 Jun 2021 09:58:06 +0800
Subject: [PATCH] =?UTF-8?q?feat=20=E9=87=8D=E5=86=99=E4=BA=86=E4=B8=80?=
=?UTF-8?q?=E4=BA=9B=E8=AF=A1=E5=BC=82=E7=9A=84=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
adc-da-main/pom.xml | 5 +-
adc-da-search/pom.xml | 414 ++++++++----------
.../controller/SearchCenterController.java | 22 +-
.../controller/StandLawsSearchController.java | 4 +-
.../impl/ElasticsearchServiceImpl.java | 2 +-
.../service/impl/SearchCenterServiceImpl.java | 163 ++++---
.../impl/StandLawsSearchServiceImpl.java | 4 +-
7 files changed, 285 insertions(+), 329 deletions(-)
diff --git a/adc-da-main/pom.xml b/adc-da-main/pom.xml
index df55c43a..8d811d0a 100644
--- a/adc-da-main/pom.xml
+++ b/adc-da-main/pom.xml
@@ -64,9 +64,12 @@
-
+
+
+
+
diff --git a/adc-da-search/pom.xml b/adc-da-search/pom.xml
index 7ee5b3dc..38d5f6b0 100644
--- a/adc-da-search/pom.xml
+++ b/adc-da-search/pom.xml
@@ -1,247 +1,213 @@
- 4.0.0
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ 4.0.0
-
- com.adc
- foton-slrs-system-rest
- 3.0.0
-
+
+ com.adc
+ foton-slrs-system-rest
+ 3.0.0
+
- adc-da-search
- 1.0.0
+ adc-da-search
+ 1.0.0
- jar
+ jar
-
- UTF-8
- UTF-8
- 1.8
- 1.7
- 1.8
- 2.6.6
- 1.4.0-RC2
- 4.3.9.RELEASE
-
+
+ UTF-8
+ UTF-8
+ 1.8
+ 1.7
+ 1.8
+ 2.6.6
+ 1.4.0-RC2
+ 4.3.9.RELEASE
+
-
-
- adc
- http://60.247.58.121:8182/nexus/content/groups/public
-
- true
-
-
- true
-
-
+
+
+ adc
+ http://60.247.58.121:8182/nexus/content/groups/public
+
+ true
+
+
+ true
+
+
-
+
-
-
- thirdparty
- Nexus Thirdparty Repository
- http://60.247.58.121:8182/nexus/content/repositories/thirdparty/
-
-
+
+
+ thirdparty
+ Nexus Thirdparty Repository
+ http://60.247.58.121:8182/nexus/content/repositories/thirdparty/
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
- com.adc
- adc-da-base
- 2.0.0
-
+
+ com.adc
+ adc-da-base
+ 3.0.0
+
-
- com.adc
- adc-da-util
- 2.2.41
-
-
- org.bouncycastle
- bcprov-jdk14
-
-
-
+
+ com.adc
+ adc-da-sys
+ 3.0.0
+
+
+ com.adc
+ adc-da-excel
+ 2.0.3
+
-
- com.adc
- adc-da-sys
- 3.0.0
-
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ org.springframework.boot
+ spring-boot-starter-amqp
+
+
+ org.elasticsearch.client
+ transport
+ 6.3.2
+
+
+ org.elasticsearch
+ elasticsearch
+ 6.3.2
+
+
+
+ org.apache.logging.log4j
+ log4j-core
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
-
- com.adc
- adc-da-file
- 2.2.0
-
+
+ net.sourceforge.javacsv
+ javacsv
+ 2.0
+
+
+ net.sf.opencsv
+ opencsv
+ 2.3
+
-
- com.adc
- adc-da-druid
- 2.0.0
-
-
- com.adc
- adc-da-excel
- 2.0.3
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
+
+ com.alibaba
+ fastjson
+ 1.2.9
+
+
+ com.google.guava
+ guava
+ 19.0
+
+
+ com.mashape.unirest
+ unirest-java
+ 1.4.9
+
-
-
- org.springframework.boot
- spring-boot-starter-amqp
-
-
- org.elasticsearch.client
- transport
- 6.3.2
-
-
- org.elasticsearch
- elasticsearch
- 6.3.2
-
-
-
- org.apache.logging.log4j
- log4j-core
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
- org.mybatis.spring.boot
- mybatis-spring-boot-starter
- 1.2.0
-
+
+ net.sf.json-lib
+ json-lib
+ 2.4
+ jdk15
+
+
+ commons-logging
+ commons-logging
+
+
+ commons-beanutils
+ commons-beanutils
+
+
+ commons-collections
+ commons-collections
+
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.4.1
+
+
+ org.apache.httpcomponents
+ httpcore
+ 4.4.1
+
-
- net.sourceforge.javacsv
- javacsv
- 2.0
-
-
- net.sf.opencsv
- opencsv
- 2.3
-
+
+ org.aspectj
+ aspectjweaver
+
-
- com.alibaba
- fastjson
- 1.2.9
-
-
- com.google.guava
- guava
- 19.0
-
-
- com.mashape.unirest
- unirest-java
- 1.4.9
-
+
+
+ cn.afterturn
+ easypoi-base
+ 4.1.2
+
+
+ cn.afterturn
+ easypoi-web
+ 4.1.2
+
+
+ cn.afterturn
+ easypoi-annotation
+ 4.1.2
+
-
- net.sf.json-lib
- json-lib
- 2.4
- jdk15
-
-
- commons-logging
- commons-logging
-
-
- commons-beanutils
- commons-beanutils
-
-
- commons-collections
- commons-collections
-
-
-
-
- org.apache.httpcomponents
- httpclient
- 4.4.1
-
-
- org.apache.httpcomponents
- httpcore
- 4.4.1
-
-
-
- org.aspectj
- aspectjweaver
-
-
-
-
- cn.afterturn
- easypoi-base
- 4.1.2
-
-
- cn.afterturn
- easypoi-web
- 4.1.2
-
-
- cn.afterturn
- easypoi-annotation
- 4.1.2
-
-
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
- ${java.version}
- ${java.version}
- ${java.version}
- ${project.build.sourceEncoding}
-
-
-
-
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ ${java.version}
+ ${java.version}
+ ${java.version}
+ ${project.build.sourceEncoding}
+
+
+
+
diff --git a/adc-da-search/src/main/java/com/adc/da/search/controller/SearchCenterController.java b/adc-da-search/src/main/java/com/adc/da/search/controller/SearchCenterController.java
index 88aa8c56..7a291e8a 100644
--- a/adc-da-search/src/main/java/com/adc/da/search/controller/SearchCenterController.java
+++ b/adc-da-search/src/main/java/com/adc/da/search/controller/SearchCenterController.java
@@ -1,24 +1,25 @@
package com.adc.da.search.controller;
-import cn.afterturn.easypoi.excel.ExcelExportUtil;
-import cn.afterturn.easypoi.excel.entity.ExportParams;
-import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
import com.adc.da.base.web.BaseController;
+import com.adc.da.excel.poi.excel.ExcelExportUtil;
+import com.adc.da.excel.poi.excel.entity.ExportParams;
+import com.adc.da.excel.poi.excel.entity.enums.ExcelType;
+import com.adc.da.http.PageInfo;
import com.adc.da.person.service.IPersonCollectEOService;
import com.adc.da.search.dto.*;
import com.adc.da.search.entity.SarAdvanceSearchVO;
import com.adc.da.search.entity.SeniorSearchInfoEO;
import com.adc.da.search.service.ElasticsearchService;
import com.adc.da.search.service.SearchCenterService;
-import com.adc.da.util.exception.AdcDaBaseException;
-import com.adc.da.util.http.PageInfo;
-import com.adc.da.util.http.ResponseMessage;
-import com.adc.da.util.http.Result;
-import com.adc.da.util.utils.IOUtils;
-import com.adc.da.util.utils.StringUtils;
+import com.adc.da.exception.AdcDaBaseException;
+import com.adc.da.http.ResponseMessage;
+import com.adc.da.http.Result;
+import com.adc.da.util.IOUtils;
+
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.usermodel.Workbook;
import org.elasticsearch.client.transport.TransportClient;
import org.springframework.beans.factory.annotation.Autowired;
@@ -33,7 +34,6 @@ import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.regex.Pattern;
-
import static com.adc.da.sys.common.ReadExcelName.encodeFileName;
@RestController
@@ -271,7 +271,7 @@ public class SearchCenterController extends BaseController