Commit adc0ca58 by ddx

增加checkType

parent a16f7a7a
......@@ -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>
......
......@@ -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.insertSelective(tokenLog);
} catch (Exception e) {
e.printStackTrace();
logger.error(uuId + " saveRealTokenLog is error! " + e.getMessage());
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment