Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
61a46681
Commit
61a46681
authored
Mar 30, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
6b940574
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
HttpUtil.java
.../src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
+6
-0
EbsApiController.java
...in/java/pwc/taxtech/atms/controller/EbsApiController.java
+2
-1
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+1
-1
app-overview.html
.../main/webapp/app/framework/app-overview/app-overview.html
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
View file @
61a46681
...
...
@@ -15,6 +15,8 @@ import javax.net.ssl.SSLException;
import
javax.net.ssl.SSLSession
;
import
javax.net.ssl.SSLSocket
;
import
com.alibaba.fastjson.JSON
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.http.Consts
;
...
...
@@ -38,6 +40,8 @@ import org.apache.http.impl.client.CloseableHttpClient;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.impl.conn.PoolingHttpClientConnectionManager
;
import
org.apache.http.message.BasicNameValuePair
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* 依赖的jar包有:commons-lang-2.6.jar、httpclient-4.3.2.jar、httpcore-4.3.1.jar、commons-io-2.4.jar
...
...
@@ -50,6 +54,7 @@ public class HttpUtil {
public
static
final
int
readTimeout
=
10000
;
public
static
final
String
charset
=
"UTF-8"
;
private
static
HttpClient
client
=
null
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
HttpUtil
.
class
);
static
{
PoolingHttpClientConnectionManager
cm
=
new
PoolingHttpClientConnectionManager
();
...
...
@@ -140,6 +145,7 @@ public class HttpUtil {
public
static
String
post
(
String
url
,
Map
<
String
,
String
>
headers
,
String
mimeType
,
String
charset
,
Integer
connTimeout
,
Integer
readTimeout
)
throws
ConnectTimeoutException
,
SocketTimeoutException
,
Exception
{
logger
.
info
(
"Http post: url: {}, header: {}"
,
url
,
JSON
.
toJSONString
(
headers
==
null
?
MapUtils
.
EMPTY_MAP
:
headers
));
HttpClient
client
=
null
;
HttpPost
post
=
new
HttpPost
(
url
);
String
result
=
""
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/EbsApiController.java
View file @
61a46681
package
pwc
.
taxtech
.
atms
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -223,7 +224,7 @@ public class EbsApiController {
*/
@RequestMapping
(
value
=
"/callback"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
callback
(
@RequestBody
EbsCallBackDto
callBackDto
)
{
logger
.
info
(
"EBS callback 调用,taskId :{}"
,
callBackDto
.
getTaskId
(
));
logger
.
info
(
"EBS callback 调用,taskId :{}"
,
JSON
.
toJSONString
(
callBackDto
));
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
try
{
ebsApiService
.
changeCallBackStatus
(
callBackDto
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
61a46681
...
...
@@ -255,7 +255,7 @@ public class EbsApiServiceImpl implements EbsApiService {
JournalEntryExample
journalEntryExample
=
new
JournalEntryExample
();
item
.
setTaskId
(
String
.
valueOf
(
id
));
//日记账头ID和日记账行号
journalEntryExample
.
createCriteria
().
andHeaderIdEqualTo
(
item
.
getHeaderId
()).
andLineNumEqualTo
(
item
.
getLineNum
()).
and
TaskIdNotEqualTo
(
item
.
getTaskId
());
journalEntryExample
.
createCriteria
().
andHeaderIdEqualTo
(
item
.
getHeaderId
()).
andLineNumEqualTo
(
item
.
getLineNum
()).
and
SourceEqualTo
(
item
.
getSource
());
List
<
JournalEntry
>
journalEntryList
=
journalEntryMapper
.
selectByExample
(
journalEntryExample
);
//唯一则更新否则插入
JournalEntry
journalEntry
=
new
JournalEntry
();
...
...
atms-web/src/main/webapp/app/framework/app-overview/app-overview.html
View file @
61a46681
...
...
@@ -190,8 +190,8 @@
<
div
class
=
"cardview-header"
>
<
span
class
=
"org-name"
title
=
"{{result.organizationName}}"
>
{{
result
.
organizationName
|
limitString
:
17
}}
<
/span
>
<
span
ng
-
show
=
"(result.taxRate>0 && result.hasWarning)"
>
<
i
class
=
"fa fa-exclamation-circle"
title
=
"模型异常"
style
=
"color: orange; "
aria
-
hidden
=
"true"
><
/i
>
<
i
class
=
"fa fa-exclamation-triangle"
title
=
"风险提示"
style
=
"color:pink; margin-left:8px;"
aria
-
hidden
=
"true"
><
/i
>
<
!--<
i
class
=
"fa fa-exclamation-circle"
title
=
"模型异常"
style
=
"color: orange; "
aria
-
hidden
=
"true"
><
/i>--
>
<
!--<
i
class
=
"fa fa-exclamation-triangle"
title
=
"风险提示"
style
=
"color:pink; margin-left:8px;"
aria
-
hidden
=
"true"
><
/i>--
>
<
i
class
=
"fa fa-question-circle"
aria
-
hidden
=
"true"
title
=
"报表异常"
style
=
"color:lightpink; margin-left: 8px;margin-right:16px;"
><
/i
>
<
/span
>
<
/div
>
...
...
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