| | |
| | | package com.moon.server.aspect; |
| | | |
| | | import com.moon.server.annotation.SysLog; |
| | | import com.moon.server.entity.all.StaticData; |
| | | import com.moon.server.entity.sys.OperateEntity; |
| | | import com.moon.server.entity.sys.UserEntity; |
| | | import com.moon.server.helper.AsyncHelper; |
| | |
| | | |
| | | private final static String COUNT = "count"; |
| | | |
| | | private final static String SPLIT = "\\\\"; |
| | | |
| | | private static final Log log = LogFactory.getLog(LogAspect.class); |
| | | |
| | | @Pointcut("@annotation(com.moon.server.annotation.SysLog)") |
| | |
| | | // 设置模块 |
| | | Api api = clazz.getAnnotation(Api.class); |
| | | if (api != null) { |
| | | String[] strs = api.tags()[0].split(SPLIT); |
| | | String[] strs = api.tags()[0].split(StaticData.BACKSLASH); |
| | | oe.setModular1(strs[0]); |
| | | oe.setModular2(strs[1]); |
| | | } |