Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
isc-core
Commits
56101d03
Commit
56101d03
authored
Oct 05, 2024
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正resteasy依赖
parent
490d8548
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
50 deletions
+55
-50
pom.xml
isc-common-core/pom.xml
+11
-7
ImageUtils.java
...re/src/main/java/com/brilliance/isc/utils/ImageUtils.java
+1
-2
OcrClient.java
...c/main/java/com/brilliance/isc/esb/api/ocr/OcrClient.java
+4
-5
pom.xml
isc-common-service/pom.xml
+4
-4
SwaggerConfig.java
.../java/com/brilliance/isc/common/config/SwaggerConfig.java
+30
-28
ISCRequestPreFilter.java
...com/brilliance/isc/common/filter/ISCRequestPreFilter.java
+3
-2
AbstractTransactionController.java
...transaction/controller/AbstractTransactionController.java
+2
-2
No files found.
isc-common-core/pom.xml
View file @
56101d03
...
...
@@ -19,10 +19,14 @@
<groupId>
javax.validation
</groupId>
<artifactId>
validation-api
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-boot-starter</artifactId>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-boot-starter
</artifactId>
<scope>
provided
</scope>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
</dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
...
...
@@ -65,10 +69,10 @@
<groupId>
org.freemarker
</groupId>
<artifactId>
freemarker
</artifactId>
</dependency>
<dependency
>
<groupId>
io.github.openfeign
</groupId
>
<artifactId>
feign-jaxrs
</artifactId
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>io.github.openfeign</groupId>--
>
<!-- <artifactId>feign-jaxrs</artifactId>--
>
<!-- </dependency>--
>
<dependency>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-annotations
</artifactId>
...
...
isc-common-core/src/main/java/com/brilliance/isc/utils/ImageUtils.java
View file @
56101d03
package
com
.
brilliance
.
isc
.
utils
;
import
cn.hutool.core.codec.Base64
;
import
org.apache.http.util.TextUtils
;
import
org.apache.poi.util.IOUtils
;
import
java.io.*
;
...
...
@@ -90,7 +89,7 @@ public class ImageUtils
* @return base64编码的字符串
*/
public
static
String
imageToBase64
(
String
path
){
if
(
Text
Utils
.
isEmpty
(
path
)){
if
(
String
Utils
.
isEmpty
(
path
)){
return
null
;
}
InputStream
is
=
null
;
...
...
isc-common-esb/src/main/java/com/brilliance/isc/esb/api/ocr/OcrClient.java
View file @
56101d03
...
...
@@ -3,11 +3,10 @@ package com.brilliance.isc.esb.api.ocr;
import
com.brilliance.isc.esb.model.ocr.ReqTextDiff
;
import
com.brilliance.isc.esb.model.ocr.ResOcrResult
;
import
com.brilliance.isc.esb.model.ocr.ResTextDiff
;
import
org.springframework.web.bind.annotation.*
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.PathParam
;
import
javax.ws.rs.QueryParam
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
/**
* OCR 智能感知平台OCR请求方
...
...
isc-common-service/pom.xml
View file @
56101d03
...
...
@@ -22,10 +22,10 @@
<groupId>
com.brilliance.isc
</groupId>
<artifactId>
isc-common-counter
</artifactId>
</dependency>
<dependency
>
<groupId>
io.springfox
</groupId
>
<artifactId>
springfox-boot-starter
</artifactId
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>io.springfox</groupId>--
>
<!-- <artifactId>springfox-boot-starter</artifactId>--
>
<!-- </dependency>--
>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
...
...
isc-common-service/src/main/java/com/brilliance/isc/common/config/SwaggerConfig.java
View file @
56101d03
package
com
.
brilliance
.
isc
.
common
.
config
;
import
io.swagger.annotations.Api
;
import
org.springframework.beans.factory.annotation.Value
;
//import io.swagger.annotations.Api;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
import
org.springframework.context.annotation.Bean
;
import
springfox.documentation.builders.ApiInfoBuilder
;
import
springfox.documentation.builders.PathSelectors
;
import
springfox.documentation.builders.RequestHandlerSelectors
;
import
springfox.documentation.service.ApiInfo
;
import
springfox.documentation.spi.DocumentationType
;
import
springfox.documentation.spring.web.plugins.Docket
;
//@Configuration
//@EnableOpenApi // 可选
//@EnableWebMvc // spring-boot-starter-web冲突会引发启动服务时null,必选
public
class
SwaggerConfig
{
@Value
(
"${swagger.enable:true}"
)
private
boolean
enable
;
@Bean
public
Docket
createRestApi
()
{
return
new
Docket
(
DocumentationType
.
OAS_30
)
// 3.0要选择OAS_30
.
apiInfo
(
apiInfo
())
.
enable
(
enable
)
.
select
()
.
apis
(
RequestHandlerSelectors
.
withClassAnnotation
(
Api
.
class
))
.
paths
(
PathSelectors
.
any
())
.
build
();
}
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
.
title
(
"涉外汇款系统接口文档"
)
.
version
(
"1.0"
)
.
build
();
}
//
@Value("${swagger.enable:true}")
//
private boolean enable;
//
//
@Bean
//
public Docket createRestApi() {
//
return new Docket(DocumentationType.OAS_30) // 3.0要选择OAS_30
//
.apiInfo(apiInfo())
//
.enable(enable)
//
.select()
//
.apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
//
.paths(PathSelectors.any())
//
.build();
//
}
//
//
private ApiInfo apiInfo() {
//
return new ApiInfoBuilder()
//
.title("涉外汇款系统接口文档")
//
.version("1.0")
//
.build();
//
}
}
isc-common-service/src/main/java/com/brilliance/isc/common/filter/ISCRequestPreFilter.java
View file @
56101d03
...
...
@@ -28,10 +28,11 @@ public class ISCRequestPreFilter implements ContainerRequestFilter {
@Context
protected
HttpServletRequest
request
;
@Context
protected
HttpHeaders
header
;
@Resource
protected
SettleContext
settleContext
;
...
...
@@ -67,7 +68,7 @@ public class ISCRequestPreFilter implements ContainerRequestFilter {
sessionUserVo
.
setName
(
loginInfoVO
.
getUsr
().
getName
());
sessionUserVo
.
setLogName
(
loginInfoVO
.
getUsername
());
sessionUserVo
.
setWorkOrg
(
loginInfoVO
.
getAccbchList
().
getBranch
());
sessionUserVo
.
setOwnOrgDepartmentNumber
(
loginInfoVO
.
getCurrentOrg
().
getDepartment
n
umber
());
sessionUserVo
.
setOwnOrgDepartmentNumber
(
loginInfoVO
.
getCurrentOrg
().
getDepartment
N
umber
());
settleContext
.
setSessionUserVo
(
sessionUserVo
);
settleContext
.
simpleLoadSettleSession
();
this
.
clearUserLock
(
requestURI
,
sessionUserVo
);
...
...
isc-common-service/src/main/java/com/brilliance/isc/common/transaction/controller/AbstractTransactionController.java
View file @
56101d03
...
...
@@ -48,9 +48,9 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.annotation.Resource
;
import
javax.ws.rs.QueryParam
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -569,7 +569,7 @@ public class AbstractTransactionController<V extends BaseTransactionVo> {
* @return ResponseSet<TextResultVo>
*/
@PostMapping
(
"/showDocs"
)
public
ResponseSet
<
TextResultVo
>
showDocs
(
@RequestBody
V
vo
,
@
Query
Param
(
"idx"
)
int
idx
)
{
public
ResponseSet
<
TextResultVo
>
showDocs
(
@RequestBody
V
vo
,
@
Request
Param
(
"idx"
)
int
idx
)
{
SettleContext
.
setViewDocTransSta
();
String
transName
=
vo
.
getTransName
();
StopWatch
stopWatch
=
new
StopWatch
(
transName
+
"报文/面函预览"
+
idx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment