| | |
| | | @Signature(type= Executor.class, method = "update", args={MappedStatement.class, Object.class}) |
| | | }) |
| | | public class MyBatisInterceptor implements Interceptor { |
| | | |
| | | private static final String CREATE_TIME = "createTime"; |
| | | |
| | | private static final String CREATE_USER = "createUser"; |
| | |
| | | * @date 2022/04/18 18:12 |
| | | */ |
| | | private LoginUserInfo getLoginUser () { |
| | | return (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | try { |
| | | return (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | }catch (Exception e){ |
| | | return null; |
| | | } |
| | | } |
| | | } |