feat(system): 审计记录添加操作人昵称字段
- 在 AuditRecordMapper.xml 中增加获取操作人昵称的 SQL 查询 - 在 AuditRecordVo.java 中添加 nikeName 字段用于存储操作人昵称 - 移除了 JwtAuthenticationTokenFilter.java 中的 TODO 注释 - 删除了 SpringThreadPoolConfig.java 中的多余描述 - 移除了 StringHelper.java 中的无用注释和异常处理
This commit is contained in:
parent
fecd1ff170
commit
f64f225878
|
|
@ -44,6 +44,11 @@ public class AuditRecordVo extends ParentVo {
|
|||
*/
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 操作人昵称
|
||||
*/
|
||||
private String nikeName;
|
||||
|
||||
private String times;
|
||||
|
||||
private String phone;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ public class StringHelper {
|
|||
pfp.print(args);
|
||||
pfp.close();
|
||||
} catch (FileNotFoundException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +101,6 @@ public class StringHelper {
|
|||
try {
|
||||
return new String(content.getBytes("ISO_8859_1"), "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
return content;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import java.util.concurrent.ThreadPoolExecutor;
|
|||
|
||||
/**
|
||||
* @author cw chen
|
||||
* @description TODO
|
||||
* @date 2022-08-22 14:42
|
||||
*/
|
||||
@EnableAsync
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
|
|||
// 验证令牌有效期,相差不足10分钟,自动刷新缓存
|
||||
tokenService.verifyToken(loginUser);
|
||||
//存入SecurityContextHolder
|
||||
//TODO 获取权限信息封装到Authentication中
|
||||
// 获取权限信息封装到Authentication中
|
||||
UsernamePasswordAuthenticationToken authenticationToken =
|
||||
new UsernamePasswordAuthenticationToken(loginUser,null, loginUser.getAuthorities());
|
||||
SecurityContextHolder.getContext().setAuthentication(authenticationToken);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<select id="getRecordList" resultType="com.bonus.gzcar.business.system.entity.AuditRecordVo">
|
||||
select cpar.id, cpar.apply_id applyId, cpar.auditor, cpar.audit_time auditTime, cpar.audit_status auditStatus,
|
||||
cpar.audit_remark auditRemark, cpar.creator, cpar.create_time createTime,
|
||||
cpar.audit_type auditType, cpar.type,cpar.user_name userName,cpar.times,pu.TELPHONE phone
|
||||
cpar.audit_type auditType, cpar.type,cpar.user_name userName,cpar.times,pu.TELPHONE phone, pu.`NAME` nikeName
|
||||
from car_plan_audit_record cpar
|
||||
LEFT JOIN pm_user pu on pu.id=cpar.creator
|
||||
where apply_id=#{id}
|
||||
|
|
|
|||
Loading…
Reference in New Issue