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
9d9ce270
Commit
9d9ce270
authored
Jun 25, 2025
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加用户信息属性
parent
e50409ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
+18
-9
tax-token/token-common/src/main/java/com/tax/token/model/TkUser.java
+4
-1
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+1
-0
No files found.
tax-file-face/file-face-service/src/main/java/com/tax/file/service/impl/InvoiceFileServiceImpl.java
View file @
9d9ce270
...
...
@@ -459,19 +459,20 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
}
else
{
String
hgResult
=
queryCollectTaxInfo
(
uuidFlag
,
invoiceFileReq
,
userUrl
);
if
(
StringUtil
.
isEmpty
(
hgResult
))
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
else
{
JSONObject
jsonStr
=
JSONObject
.
parseObject
(
hgResult
);
if
(
jsonStr
!=
null
&&
!
"0"
.
equals
(
jsonStr
.
getString
(
"CODE"
)))
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
else
{
JSONObject
dataJson
=
jsonStr
.
getJSONObject
(
"DATA"
);
if
(
dataJson
!=
null
)
{
functionList
.
add
(
getFunction01
(
functionNo
,
dataJson
.
getString
(
"userStatus"
),
dataJson
.
getString
(
"curCollectFlag"
)
,
dataJson
.
getString
(
"lastCollectDate"
),
dataJson
.
getString
(
"zone"
),
dataJson
.
getString
(
"errorMessage"
)
,
dataJson
.
getString
(
"initMonth"
),
dataJson
.
getString
(
"validType"
),
dataJson
.
getString
(
"invSpec"
)));
,
dataJson
.
getString
(
"initMonth"
),
dataJson
.
getString
(
"validType"
),
dataJson
.
getString
(
"invSpec"
)
,
dataJson
.
getString
(
"confType"
),
dataJson
.
getString
(
"ncpFlag"
)));
}
else
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
}
}
...
...
@@ -486,19 +487,20 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
}
else
{
String
hgResult
=
queryNumberCollectTaxInfo
(
uuidFlag
,
invoiceFileReq
,
userUrl
);
if
(
StringUtil
.
isEmpty
(
hgResult
))
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
else
{
JSONObject
jsonStr
=
JSONObject
.
parseObject
(
hgResult
);
if
(
jsonStr
!=
null
&&
!
"0"
.
equals
(
jsonStr
.
getString
(
"CODE"
)))
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
else
{
JSONObject
dataJson
=
jsonStr
.
getJSONObject
(
"DATA"
);
if
(
dataJson
!=
null
)
{
functionList
.
add
(
getFunction01
(
functionNo
,
dataJson
.
getString
(
"userStatus"
),
dataJson
.
getString
(
"curCollectFlag"
)
,
dataJson
.
getString
(
"lastCollectDate"
),
dataJson
.
getString
(
"zone"
),
dataJson
.
getString
(
"errorMessage"
)
,
dataJson
.
getString
(
"initMonth"
),
dataJson
.
getString
(
"validType"
),
dataJson
.
getString
(
"invSpec"
)));
,
dataJson
.
getString
(
"initMonth"
),
dataJson
.
getString
(
"validType"
),
dataJson
.
getString
(
"invSpec"
)
,
dataJson
.
getString
(
"confType"
),
dataJson
.
getString
(
"ncpFlag"
)));
}
else
{
functionList
.
add
(
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
));
functionList
.
add
(
getFunction01
(
functionNo
));
}
}
}
...
...
@@ -520,7 +522,12 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
return
function
;
}
private
Map
getFunction01
(
String
functionNo
,
String
taxnoStatus
,
String
curOverFlag
,
String
lastOverDate
,
String
zoneCode
,
String
errorMessage
,
String
initMonth
,
String
validType
,
String
invSpec
)
{
private
Map
getFunction01
(
String
functionNo
)
{
return
getFunction01
(
functionNo
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
);
}
private
Map
getFunction01
(
String
functionNo
,
String
taxnoStatus
,
String
curOverFlag
,
String
lastOverDate
,
String
zoneCode
,
String
errorMessage
,
String
initMonth
,
String
validType
,
String
invSpec
,
String
confType
,
String
ncpFlag
)
{
Map
function
=
new
HashMap
();
function
.
put
(
"functionNo"
,
functionNo
);
function
.
put
(
"taxnoStatus"
,
taxnoStatus
);
...
...
@@ -531,6 +538,8 @@ public class InvoiceFileServiceImpl implements InvoiceFileService {
function
.
put
(
"errorMessage"
,
errorMessage
);
function
.
put
(
"validType"
,
validType
);
function
.
put
(
"invSpec"
,
invSpec
);
function
.
put
(
"confType"
,
confType
);
function
.
put
(
"ncpFlag"
,
ncpFlag
);
return
function
;
}
...
...
tax-token/token-common/src/main/java/com/tax/token/model/TkUser.java
View file @
9d9ce270
...
...
@@ -33,7 +33,10 @@ public class TkUser {
private
String
toServerNo
;
public
String
getLastServerNo
(
String
zoneCode
)
{
String
serverNo
=
getServerNo
();
return
getLastServerNo
(
zoneCode
,
getServerNo
());
}
public
String
getLastServerNo
(
String
zoneCode
,
String
serverNo
)
{
if
(
StringUtil
.
isNotEmpty
(
getToServerNo
()))
{
String
[]
serverNoConfigArr
=
getToServerNo
().
split
(
";"
);
for
(
String
serverNoConfig:
serverNoConfigArr
)
{
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
9d9ce270
...
...
@@ -158,6 +158,7 @@ public class TkTokenServiceImpl implements TkTokenService {
TkServerExample
serverExample
=
new
TkServerExample
();
serverExample
.
createCriteria
().
andServerNoEqualTo
(
tkToken
.
getServerNo
());
TkServer
tkServer
=
tkServerService
.
selectByExample
(
serverExample
).
get
(
0
);
// tkToken.setServerNo(tkUser.getLastServerNo(zoneCode, tkToken.getServerNo()));
tkToken
.
setZoneFlag
(
tkUser
.
getZoneFlag
());
tkToken
.
setFunctionNo
(
functionNo
);
token
=
getTokenByThird
(
uuId
,
tkToken
,
tkZoneInfo
,
tkServer
,
true
,
"0"
);
...
...
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