Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax-sys-nacos
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caoxiaohong
tax-sys-nacos
Commits
46c5d3a4
Commit
46c5d3a4
authored
May 28, 2025
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add query errorcode log
parent
1c1e7e49
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
+1
-2
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/UserManageTest.java
+4
-4
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+5
-2
No files found.
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
View file @
46c5d3a4
...
...
@@ -1021,8 +1021,7 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
ResponseContent
ret
=
HttpHelper
.
postJsonEntity
(
FileConstants
.
taxQueryUrl
,
json
.
toString
());
resultJson
=
JSONObject
.
parseObject
(
ret
.
getContent
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
info
(
uuidFlag
+
" taxno is "
+
taxno
+
" queryTokenInfo is error! "
+
e
);
log
.
info
(
uuidFlag
+
" taxno is "
+
taxno
+
" queryTokenInfo is error! "
,
e
);
}
log
.
info
(
uuidFlag
+
" taxno is "
+
taxno
+
" queryTokenInfo request result:"
+
(
resultJson
==
null
?
"null"
:
resultJson
.
toJSONString
()));
return
resultJson
;
...
...
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/UserManageTest.java
View file @
46c5d3a4
...
...
@@ -12,8 +12,8 @@ import java.util.Map;
public
class
UserManageTest
{
String
accessKeyID
=
"e
changche
ng"
;
static
String
accessKeySecret
=
"e
changcheng#@rrwea2
"
;
String
accessKeyID
=
"e
daxia
ng"
;
static
String
accessKeySecret
=
"e
daxiang#@f26ads
"
;
static
String
host
=
"https://api.taxservices.cn"
;
...
...
@@ -36,8 +36,8 @@ public class UserManageTest {
param
.
put
(
"timeStamp"
,
timeStamp
);
param
.
put
(
"version"
,
"1.0"
);
param
.
put
(
"signature"
,
getSign
(
signStr
));
param
.
put
(
"taxno"
,
"915
106002051041291
"
);
param
.
put
(
"taxType"
,
"
0
"
);
param
.
put
(
"taxno"
,
"915
00105MAEHWYHM39
"
);
param
.
put
(
"taxType"
,
"
1
"
);
System
.
out
.
println
(
url
);
ResponseContent
ret
=
HttpHelper
.
postJsonEntity
(
url
,
JSON
.
toJSONString
(
param
));
System
.
out
.
println
(
ret
.
getContent
());
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
46c5d3a4
...
...
@@ -633,11 +633,13 @@ public class TkTokenServiceImpl implements TkTokenService {
@Override
public
JsonResult
<
TkTokenRemarkLog
>
queryTokenErrorInfo
(
TkToken
tkToken
)
{
JsonResult
<
TkTokenRemarkLog
>
jsonResult
=
new
JsonResult
<>();
String
uuId
=
UUIDGenerator
.
generate
();
logger
.
info
(
uuId
+
" queryTokenErrorInfo userCode is "
+
tkToken
.
getUserCode
()
+
" ,taxno is "
+
tkToken
.
getTaxno
());
TkTokenRemarkLogExample
example
=
new
TkTokenRemarkLogExample
();
example
.
createCriteria
().
andTaxnoEqualTo
(
tkToken
.
getTaxno
()).
andUserCodeEqualTo
(
tkToken
.
getUserCode
());
TkTokenRemarkLog
tkTokenRemarkLog
=
tkTokenRemarkLogService
.
getOne
(
example
);
logger
.
info
(
uuId
+
" queryTokenErrorInfo errorResult is "
+
(
null
==
tkTokenRemarkLog
?
"no find error!"
:
tkTokenRemarkLog
.
getTokenCode
()+
tkTokenRemarkLog
.
getRemarks
()));
//检测是否在token表存在
String
tokenFlag
=
"0"
;
TkTokenExample
tokenExample
=
new
TkTokenExample
();
...
...
@@ -646,13 +648,14 @@ public class TkTokenServiceImpl implements TkTokenService {
if
(
tokenCount
>
0
)
{
tokenFlag
=
"1"
;
}
if
(
null
!=
tkTokenRemarkLog
&&
getStopFlag
(
tkTokenRemarkLog
.
getTokenCode
(),
tkToken
.
getUserType
(),
tkToken
.
getTokenStatus
())
){
if
(
null
!=
tkTokenRemarkLog
){
tkTokenRemarkLog
.
setTokenDate
(
tkTokenRemarkLog
.
getUpdateDate
()
!=
null
?
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
tkTokenRemarkLog
.
getUpdateDate
())
:
""
);
}
else
{
tkTokenRemarkLog
=
new
TkTokenRemarkLog
();
}
tkTokenRemarkLog
.
setTokenFlag
(
tokenFlag
);
jsonResult
.
setData
(
tkTokenRemarkLog
);
logger
.
info
(
uuId
+
" queryTokenErrorInfo last result is "
+
JSON
.
toJSONString
(
jsonResult
));
return
jsonResult
;
}
...
...
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