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
5d0ec99c
Commit
5d0ec99c
authored
Jan 24, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加税号管理解锁接口
parent
a0e871a1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
+22
-7
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
+1
-2
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
+1
-0
tax-token/token-common/src/main/java/com/tax/token/utils/CleanCookieUtil.java
+11
-5
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+9
-0
No files found.
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
View file @
5d0ec99c
...
...
@@ -17,7 +17,7 @@ public class FileManageTest {
// static String host = "http://60.205.138.54:8767";
@Test
public
void
testHandApplyFile
()
throws
Exception
{
String
url
=
host
+
"/fileManage/handApplyFile"
;
String
url
=
host
+
"/fileManage/handApply
Month
File"
;
System
.
out
.
println
(
url
);
String
signStr
=
"AccessKeyID=%s&SignatureNonce=%s&TimeStamp=%s&Version=1.0"
;
...
...
@@ -38,7 +38,6 @@ public class FileManageTest {
param
.
put
(
"forceApplyFlag"
,
"1"
);
param
.
put
(
"invSpec"
,
"0"
);
param
.
put
(
"invType"
,
"73"
);
List
<
String
>
monthList
=
Lists
.
newArrayList
();
monthList
.
add
(
"202310"
);
...
...
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
View file @
5d0ec99c
...
...
@@ -39,6 +39,7 @@ public class GetTokenFromEleJsonTax implements TokenThirdServiceI {
json
.
put
(
"dqdm"
,
zoneCode
);
json
.
put
(
"site"
,
tokenEntity
.
getSite
());
json
.
put
(
"target"
,
tokenEntity
.
getTarget
());
json
.
put
(
"requestId"
,
uuIdFlag
);
if
(
null
!=
tokenEntity
.
getTaxUserInfo
())
{
json
.
put
(
"loginInfoJson"
,
JSON
.
toJSON
(
tokenEntity
.
getTaxUserInfo
()));
}
...
...
tax-token/token-common/src/main/java/com/tax/token/utils/CleanCookieUtil.java
View file @
5d0ec99c
...
...
@@ -24,14 +24,20 @@ public class CleanCookieUtil {
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"userCode"
,
cookieReq
.
getUserCode
());
json
.
put
(
"type"
,
type
);
json
.
put
(
"requestId"
,
uuIdFlag
);
JSONArray
jsonArray
=
new
JSONArray
();
if
(
type
.
equals
(
"3"
))
{
json
Array
.
add
(
cookieReq
.
getZoneCode
()+
":"
+
cookieReq
.
getUserInf
o
());
if
(
type
.
equals
(
"10"
))
{
json
.
put
(
"dqdm"
,
cookieReq
.
getZoneCode
());
json
.
put
(
"taxno"
,
cookieReq
.
getTaxn
o
());
}
else
{
jsonArray
.
add
(
cookieReq
.
getZoneCode
()+
":"
+
taxno
+
":"
+
cookieReq
.
getUserInfo
());
JSONArray
jsonArray
=
new
JSONArray
();
if
(
type
.
equals
(
"3"
))
{
jsonArray
.
add
(
cookieReq
.
getZoneCode
()
+
":"
+
cookieReq
.
getUserInfo
());
}
else
{
jsonArray
.
add
(
cookieReq
.
getZoneCode
()
+
":"
+
taxno
+
":"
+
cookieReq
.
getUserInfo
());
}
json
.
put
(
"keyList"
,
jsonArray
);
}
json
.
put
(
"keyList"
,
jsonArray
);
String
url
=
TokenConstants
.
CLEAN_COOKIE_URL
;
logger
.
info
(
uuIdFlag
+
" taxno is "
+
taxno
+
" url is "
+
url
+
",param is "
+
json
.
toString
());
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
5d0ec99c
...
...
@@ -680,6 +680,15 @@ public class TkTokenServiceImpl implements TkTokenService {
tkTokenMapper
.
updateTokenInfo
(
updateEntity
);
}
logger
.
info
(
uuId
+
" insertToken taxno is "
+
taxno
+
" is update success!"
+
updateEntity
.
printSaveInfo
()
+
",updateFlag:"
+
updateFlag
);
//开启因短信超次数关闭的税号
if
(
StringUtil
.
isNotEmpty
(
updateEntity
.
getErrorCode
())
&&
updateEntity
.
getErrorCode
().
equals
(
"4042"
))
{
CookieReq
cookieReq
=
new
CookieReq
();
cookieReq
.
setUserCode
(
userCode
);
cookieReq
.
setZoneCode
(
updateEntity
.
getZoneCode
());
cookieReq
.
setTaxno
(
taxno
);
Map
<
String
,
Object
>
cleanMap
=
CleanCookieUtil
.
cleanCookie
(
uuId
,
cookieReq
,
"10"
);
logger
.
info
(
uuId
+
" insertToken taxno is "
+
taxno
+
" cleanCookie result is "
+
JSON
.
toJSONString
(
cleanMap
));
}
}
else
{
TkToken
entity
=
new
TkToken
();
...
...
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