You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
637 B

package com.xmomen.module.system.mapper;
import com.xmomen.module.system.model.LogModel;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
/**
* Created by Jeng on 16/3/20.
*/
public interface LogMapper {
// 向sys_log表中插入一条日志记录
@Insert("insert into sys_log(user_id,action_name,action_date,action_params,client_ip,action_result) values(#{userId},#{actionName},#{actionDate},#{actionParams},#{clientIp},#{actionResult}) ")
// 使用自动生成的主键
@Options(useGeneratedKeys = true, keyProperty = "id")
public void insertLog(LogModel logModel);
}