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
2861c4f0
Commit
2861c4f0
authored
Jun 11, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改自动注实时税号
parent
0ded4f33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
+15
-13
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
+2
-2
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/UserManageTest.java
+5
-5
No files found.
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
View file @
2861c4f0
...
...
@@ -636,8 +636,10 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
Map
dataResult
=
new
HashMap
();
dataResult
.
put
(
"taxno"
,
invoiceFileReq
.
getTaxno
());
Set
<
String
>
functionNoSet
=
Sets
.
newHashSet
();
for
(
InvoiceFileTaxManageFunctionReq
function
:
functionList
)
{
String
functionNo
=
function
.
getFunctionNo
();
functionNoSet
.
add
(
functionNo
);
Map
functionResult
=
new
HashMap
();
functionResult
.
put
(
"functionNo"
,
functionNo
);
...
...
@@ -684,10 +686,6 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
continue
;
}
}
//04-token服务入库
//移到外层
//01-发票下载服务
if
(
TkUserUrl
.
FUNCTION_NO_INVOICE_DOWNLOAD
.
equals
(
functionNo
))
{
//发票下载
boolean
saveFlag
=
saveFunction01
(
uuidFlag
,
invoiceFileReq
,
functionResult
,
functionResultList
,
function
);
...
...
@@ -695,15 +693,6 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
continue
;
}
}
else
if
(
TkUserUrl
.
FUNCTION_NO_INVOICE_COLLECT
.
equals
(
functionNo
)
||
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_COLLECT
.
equals
(
functionNo
))
{
// 实时认证,开通05勾选功能的同时开通勾选实时功能
TkUserUrl
tkUser07Url
=
tkUserUrlService
.
getUserUrl
(
userName
,
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_REAL_COLLECT
);
if
(
null
!=
tkUser07Url
&&
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_COLLECT
.
equals
(
functionNo
))
{
logger
.
info
(
"{} real verify for taxno:{} username:{}"
,
uuidFlag
,
taxno
,
tkUser07Url
.
getUsername
());
JSONObject
addResult
=
addEnterprise
(
uuidFlag
,
tkUser07Url
.
getRequestUrl
(),
invoiceFileReq
);
if
(
addResult
!=
null
)
{
logger
.
info
(
"{} add enterprise for taxno:{} response:{}"
,
uuidFlag
,
taxno
,
addResult
);
}
}
JSONObject
taxInfoJson
=
callTaxInfo
(
uuidFlag
,
invoiceFileReq
,
function
,
tkUserUrlService
.
getUserUrl
(
userName
,
functionNo
));
//调用内部服务
if
(
null
==
taxInfoJson
||
!
"0"
.
equals
(
taxInfoJson
.
getString
(
"CODE"
)))
{
String
message
=
null
==
taxInfoJson
?
"未知异常"
:
taxInfoJson
.
getString
(
"MESSAGE"
);
...
...
@@ -727,6 +716,19 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
functionResultList
.
add
(
functionResult
);
}
if
(
functionNoSet
.
contains
(
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_COLLECT
)
||
functionNoSet
.
contains
(
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_NUMBER_COLLECT
))
{
// 实时认证,开通05勾选功能的同时开通勾选实时功能
TkUserUrl
tkUser07Url
=
tkUserUrlService
.
getUserUrl
(
userName
,
TkUserUrl
.
FUNCTION_NO_CLOUD_INVOICE_REAL_COLLECT
);
if
(
null
!=
tkUser07Url
)
{
logger
.
info
(
"{} real verify for taxno:{} username:{}"
,
uuidFlag
,
taxno
,
tkUser07Url
.
getUsername
());
JSONObject
addResult
=
addEnterprise
(
uuidFlag
,
tkUser07Url
.
getRequestUrl
(),
invoiceFileReq
);
if
(
addResult
!=
null
)
{
logger
.
info
(
"{} add enterprise for taxno:{} response:{}"
,
uuidFlag
,
taxno
,
addResult
);
}
}
}
dataResult
.
put
(
"functionList"
,
functionResultList
);
result
.
setData
(
dataResult
);
}
...
...
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
View file @
2861c4f0
...
...
@@ -10,8 +10,8 @@ import java.util.List;
import
java.util.Map
;
public
class
FileManageTest
{
String
accessKeyID
=
"
bwgf-limit
"
;
static
String
accessKeySecret
=
"
bw@2u9%5Ts#2
"
;
String
accessKeyID
=
"
edd
"
;
static
String
accessKeySecret
=
"
edd@01!@#ccd143
"
;
// static String host = "http://127.0.0.1:8767";
static
String
host
=
"https://api.taxservices.cn"
;
// static String host = "http://60.205.138.54:8767";
...
...
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/UserManageTest.java
View file @
2861c4f0
...
...
@@ -12,10 +12,10 @@ import java.util.Map;
public
class
UserManageTest
{
String
accessKeyID
=
"e
changcheng
"
;
static
String
accessKeySecret
=
"e
changcheng#@rrwea2
"
;
String
accessKeyID
=
"e
dd
"
;
static
String
accessKeySecret
=
"e
dd@01!@#ccd143
"
;
static
String
host
=
"https://api.
xfapiao.com
"
;
static
String
host
=
"https://api.
taxservices.cn
"
;
@Test
...
...
@@ -39,8 +39,8 @@ public class UserManageTest {
param
.
put
(
"taxno"
,
"91330110MA28U72K75"
);
param
.
put
(
"taxType"
,
"1"
);
System
.
out
.
println
(
url
);
String
ret
=
HttpHelper
.
postWithJson
(
url
,
JSON
.
toJSONString
(
param
));
System
.
out
.
println
(
ret
);
ResponseContent
ret
=
HttpHelper
.
postJsonEntity
(
url
,
JSON
.
toJSONString
(
param
));
System
.
out
.
println
(
ret
.
getContent
()
);
}
@Test
...
...
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