Java Code Examples for com.ruoyi.system.service.ISysOperLogService

The following examples show how to use com.ruoyi.system.service.ISysOperLogService. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: supplierShop   Source File: AsyncFactory.java    License: MIT License 5 votes vote down vote up
/**
 * 操作日志记录
 * 
 * @param operLog 操作日志信息
 * @return 任务task
 */
public static TimerTask recordOper(final SysOperLog operLog)
{
    return new TimerTask()
    {
        @Override
        public void run()
        {
            // 远程查询操作地点
            operLog.setOperLocation(AddressUtils.getRealAddressByIP(operLog.getOperIp()));
            SpringUtils.getBean(ISysOperLogService.class).insertOperlog(operLog);
        }
    };
}
 
Example 2
Source Project: ruoyiplus   Source File: AsyncFactory.java    License: MIT License 5 votes vote down vote up
/**
 * 操作日志记录
 * 
 * @param operLog 操作日志信息
 * @return 任务task
 */
public static TimerTask recordOper(final SysOperLog operLog)
{
    return new TimerTask()
    {
        @Override
        public void run()
        {
            // 远程查询操作地点
            operLog.setOperLocation(AddressUtils.getRealAddressByIP(operLog.getOperIp()));
            SpringUtils.getBean(ISysOperLogService.class).insertOperlog(operLog);
        }
    };
}
 
Example 3
Source Project: RuoYi   Source File: AsyncFactory.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 操作日志记录
 *
 * @param operLog 操作日志信息
 * @return 任务task
 */
public static TimerTask recordOper(final SysOperLog operLog) {
    return new TimerTask() {
        @Override
        public void run() {
            // 远程查询操作地点
            operLog.setOperLocation(AddressUtils.getRealAddressByIp(operLog.getOperIp()));
            SpringUtils.getBean(ISysOperLogService.class).insertOperlog(operLog);
        }
    };
}
 
Example 4
Source Project: RuoYi   Source File: SysOperlogController.java    License: Apache License 2.0 4 votes vote down vote up
@Autowired
public SysOperlogController(ISysOperLogService operLogService) {
    this.operLogService = operLogService;
}