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
adc0ca58
Commit
adc0ca58
authored
Feb 01, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加checkType
parent
a16f7a7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
tax-token/token-dao/src/main/java/com/tax/token/mapper/TkRealTokenLogMapper.xml
+2
-8
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkRealTokenLogServiceImpl.java
+2
-2
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+1
-0
No files found.
tax-token/token-dao/src/main/java/com/tax/token/mapper/TkRealTokenLogMapper.xml
View file @
adc0ca58
...
...
@@ -157,13 +157,13 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Fri Jun 03 17:29:21 CST 2022.
-->
insert into tk_real_token_log (
id, taxno, token,
insert into tk_real_token_log (
taxno, token,
token_status, req_date, res_date,
key_code, secert, zone_code,
user_code, server_no, times,
is_valid, ip_server_no, lost_time,
remarks, res_context, time_flag)
values (#{
id,jdbcType=INTEGER}, #{taxno,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR},
values (#{
taxno,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR},
#{tokenStatus,jdbcType=CHAR}, #{reqDate,jdbcType=TIMESTAMP}, #{resDate,jdbcType=TIMESTAMP},
#{keyCode,jdbcType=VARCHAR}, #{secert,jdbcType=VARCHAR}, #{zoneCode,jdbcType=VARCHAR},
#{userCode,jdbcType=VARCHAR}, #{serverNo,jdbcType=VARCHAR}, #{times,jdbcType=INTEGER},
...
...
@@ -178,9 +178,6 @@
-->
insert into tk_real_token_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"taxno != null"
>
taxno,
</if>
...
...
@@ -228,9 +225,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"taxno != null"
>
#{taxno,jdbcType=VARCHAR},
</if>
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkRealTokenLogServiceImpl.java
View file @
adc0ca58
...
...
@@ -33,7 +33,7 @@ public class TkRealTokenLogServiceImpl implements TkRealTokenLogService {
tokenLog
.
setToken
(
token
.
getToken
());
tokenLog
.
setTokenStatus
(
token
.
getTokenStatus
());
if
(
null
!=
token
.
getTaxUserInfo
())
{
tokenLog
.
setSecert
(
JSON
.
toJSONString
(
token
.
getTaxUserInfo
()
));
tokenLog
.
setSecert
(
token
.
getTaxUserInfo
(
));
}
tokenLog
.
setUserCode
(
token
.
getUserCode
());
tokenLog
.
setRemarks
(
token
.
getTokenMessage
());
...
...
@@ -50,7 +50,7 @@ public class TkRealTokenLogServiceImpl implements TkRealTokenLogService {
}
tokenLog
.
setLostTime
(
DateUtils
.
getMillSecondsDiff
(
tokenLog
.
getReqDate
(),
tokenLog
.
getResDate
()));
tokenLog
.
setTimeFlag
(
uuId
);
realTokenLogMapper
.
insert
(
tokenLog
);
realTokenLogMapper
.
insert
Selective
(
tokenLog
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
uuId
+
" saveRealTokenLog is error! "
+
e
.
getMessage
());
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
adc0ca58
...
...
@@ -247,6 +247,7 @@ public class TkTokenServiceImpl implements TkTokenService {
tkToken
.
setReqDate
(
DateUtils
.
getDate
());
tkToken
.
setZoneCode
(
zoneCode
);
tkToken
.
setUserCode
(
userCode
);
tkToken
.
setCheckType
(
checkType
);
if
(
StringUtil
.
isNotEmpty
(
checkType
))
{
tkToken
.
setUserType
(
checkType
);
}
else
{
...
...
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