Java Code Examples for com.baomidou.mybatisplus.mapper.SqlRunner

The following examples show how to use com.baomidou.mybatisplus.mapper.SqlRunner. 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: MeetingFilm   Source File: LoginLogController.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 清空日志
 */
@BussinessLog("清空登录日志")
@RequestMapping("/delLoginLog")
@Permission(Const.ADMIN_NAME)
@ResponseBody
public Object delLog() {
    SqlRunner.db().delete("delete from sys_login_log");
    return SUCCESS_TIP;
}
 
Example 2
Source Project: MeetingFilm   Source File: LogController.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 清空日志
 */
@BussinessLog(value = "清空业务日志")
@RequestMapping("/delLog")
@Permission(Const.ADMIN_NAME)
@ResponseBody
public Object delLog() {
    SqlRunner.db().delete("delete from sys_operation_log");
    return SUCCESS_TIP;
}
 
Example 3
Source Project: WebStack-Guns   Source File: LoginLogController.java    License: MIT License 5 votes vote down vote up
/**
 * 清空日志
 */
@BussinessLog("清空登录日志")
@RequestMapping("/delLoginLog")
@Permission(Const.ADMIN_NAME)
@ResponseBody
public Object delLog() {
    SqlRunner.db().delete("delete from sys_login_log");
    return SUCCESS_TIP;
}
 
Example 4
Source Project: WebStack-Guns   Source File: LogController.java    License: MIT License 5 votes vote down vote up
/**
 * 清空日志
 */
@BussinessLog(value = "清空业务日志")
@RequestMapping("/delLog")
@Permission(Const.ADMIN_NAME)
@ResponseBody
public Object delLog() {
    SqlRunner.db().delete("delete from sys_operation_log");
    return SUCCESS_TIP;
}
 
Example 5
Source Project: MeetingFilm   Source File: TableService.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 获取当前数据库所有的表信息
 */
public List<Map<String, Object>> getAllTables() {
    String sql = "select TABLE_NAME as tableName,TABLE_COMMENT as tableComment from information_schema.`TABLES` where TABLE_SCHEMA = '" + dbName + "'";
    return SqlRunner.db().selectList(sql);
}
 
Example 6
Source Project: cola-cloud   Source File: TableService.java    License: MIT License 4 votes vote down vote up
/**
 * 获取当前数据库所有的表信息
 */
public List<Map<String, Object>> getAllTables() {
    String sql = "select TABLE_NAME as tableName,TABLE_COMMENT as tableComment from information_schema.`TABLES` where TABLE_SCHEMA = '" + dbName + "'";
    return SqlRunner.db().selectList(sql);
}