Commit 2bd22986 by fsn

重新生成bean

parent 35caa7fa
......@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;
......@@ -44,7 +45,7 @@ public class LogController extends BaseController {
*/
@RequestMapping("/list")
@ResponseBody
public Object list(){
public Object list(Date beginTime,Date endTime,String logName){
Page<OperationLog> page = new PageFactory<OperationLog>().defaultPage();
List<Map<String, Object>> operationLogs = operationLogMapper.selectMapsPage(page, null);
page.setRecords((List<OperationLog>) new LogWarpper(operationLogs).warp());
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface DeptMapper extends BaseMapper<Dept> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface DictMapper extends BaseMapper<Dict> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface LoginLogMapper extends BaseMapper<LoginLog> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface MenuMapper extends BaseMapper<Menu> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface NoticeMapper extends BaseMapper<Notice> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface OperationLogMapper extends BaseMapper<OperationLog> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface ParameterMapper extends BaseMapper<Parameter> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface RelationMapper extends BaseMapper<Relation> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface RoleExtMapper extends BaseMapper<RoleExt> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface RoleMapper extends BaseMapper<Role> {
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
public interface UserMapper extends BaseMapper<User> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_dept")
public class Dept extends Model<Dept> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_dict")
public class Dict extends Model<Dict> {
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_login_log")
public class LoginLog extends Model<LoginLog> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_menu")
public class Menu extends Model<Menu> {
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_notice")
public class Notice extends Model<Notice> {
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_operation_log")
public class OperationLog extends Model<OperationLog> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_parameter")
public class Parameter extends Model<Parameter> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_relation")
public class Relation extends Model<Relation> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_role")
public class Role extends Model<Role> {
......
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_role_ext")
public class RoleExt extends Model<RoleExt> {
......
......@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p>
*
* @author stylefeng
* @since 2017-04-08
* @since 2017-04-16
*/
@TableName("_user")
public class User extends Model<User> {
......
......@@ -59,11 +59,23 @@ OptLog.detail = function () {
}
};
/**
* 查询日志列表
*/
OptLog.search = function () {
var queryData = {};
queryData['logName'] = $("#logName").val();
queryData['beginTime'] = $("#beginTime").val();
queryData['endTime'] = $("#endTime").val();
OptLog.table.refresh({query: queryData});
};
$(function () {
var defaultColunms = OptLog.initColumn();
var table = new BSTable(OptLog.id, "/log/list", defaultColunms);
table.setPaginationType("server");
table.init();
OptLog.table = table.init();
OptLog.bindEvent();
OptLog.table = table;
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment