com.baomidou.mybatisplus.mapper.SqlRunner Java Examples

The following examples show how to use com.baomidou.mybatisplus.mapper.SqlRunner. 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 File: LoginLogController.java    From MeetingFilm with 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 File: LogController.java    From MeetingFilm with 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 File: LoginLogController.java    From WebStack-Guns with 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 File: LogController.java    From WebStack-Guns with 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 File: TableService.java    From MeetingFilm with 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 File: TableService.java    From cola-cloud with 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);
}