Commit 2bd22986 by fsn

重新生成bean

parent 35caa7fa
...@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -44,7 +45,7 @@ public class LogController extends BaseController { ...@@ -44,7 +45,7 @@ public class LogController extends BaseController {
*/ */
@RequestMapping("/list") @RequestMapping("/list")
@ResponseBody @ResponseBody
public Object list(){ public Object list(Date beginTime,Date endTime,String logName){
Page<OperationLog> page = new PageFactory<OperationLog>().defaultPage(); Page<OperationLog> page = new PageFactory<OperationLog>().defaultPage();
List<Map<String, Object>> operationLogs = operationLogMapper.selectMapsPage(page, null); List<Map<String, Object>> operationLogs = operationLogMapper.selectMapsPage(page, null);
page.setRecords((List<OperationLog>) new LogWarpper(operationLogs).warp()); page.setRecords((List<OperationLog>) new LogWarpper(operationLogs).warp());
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface DeptMapper extends BaseMapper<Dept> { public interface DeptMapper extends BaseMapper<Dept> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface DictMapper extends BaseMapper<Dict> { public interface DictMapper extends BaseMapper<Dict> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface LoginLogMapper extends BaseMapper<LoginLog> { public interface LoginLogMapper extends BaseMapper<LoginLog> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface MenuMapper extends BaseMapper<Menu> { public interface MenuMapper extends BaseMapper<Menu> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface NoticeMapper extends BaseMapper<Notice> { public interface NoticeMapper extends BaseMapper<Notice> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface OperationLogMapper extends BaseMapper<OperationLog> { public interface OperationLogMapper extends BaseMapper<OperationLog> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface ParameterMapper extends BaseMapper<Parameter> { public interface ParameterMapper extends BaseMapper<Parameter> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface RelationMapper extends BaseMapper<Relation> { public interface RelationMapper extends BaseMapper<Relation> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface RoleExtMapper extends BaseMapper<RoleExt> { public interface RoleExtMapper extends BaseMapper<RoleExt> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface RoleMapper extends BaseMapper<Role> { public interface RoleMapper extends BaseMapper<Role> {
......
...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
public interface UserMapper extends BaseMapper<User> { public interface UserMapper extends BaseMapper<User> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_dept") @TableName("_dept")
public class Dept extends Model<Dept> { public class Dept extends Model<Dept> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_dict") @TableName("_dict")
public class Dict extends Model<Dict> { public class Dict extends Model<Dict> {
......
...@@ -13,7 +13,7 @@ import java.io.Serializable; ...@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_login_log") @TableName("_login_log")
public class LoginLog extends Model<LoginLog> { public class LoginLog extends Model<LoginLog> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_menu") @TableName("_menu")
public class Menu extends Model<Menu> { public class Menu extends Model<Menu> {
......
...@@ -13,7 +13,7 @@ import java.io.Serializable; ...@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_notice") @TableName("_notice")
public class Notice extends Model<Notice> { public class Notice extends Model<Notice> {
......
...@@ -13,7 +13,7 @@ import java.io.Serializable; ...@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_operation_log") @TableName("_operation_log")
public class OperationLog extends Model<OperationLog> { public class OperationLog extends Model<OperationLog> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_parameter") @TableName("_parameter")
public class Parameter extends Model<Parameter> { public class Parameter extends Model<Parameter> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_relation") @TableName("_relation")
public class Relation extends Model<Relation> { public class Relation extends Model<Relation> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_role") @TableName("_role")
public class Role extends Model<Role> { public class Role extends Model<Role> {
......
...@@ -12,7 +12,7 @@ import java.io.Serializable; ...@@ -12,7 +12,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_role_ext") @TableName("_role_ext")
public class RoleExt extends Model<RoleExt> { public class RoleExt extends Model<RoleExt> {
......
...@@ -13,7 +13,7 @@ import java.io.Serializable; ...@@ -13,7 +13,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-04-08 * @since 2017-04-16
*/ */
@TableName("_user") @TableName("_user")
public class User extends Model<User> { public class User extends Model<User> {
......
...@@ -59,11 +59,23 @@ OptLog.detail = function () { ...@@ -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 () { $(function () {
var defaultColunms = OptLog.initColumn(); var defaultColunms = OptLog.initColumn();
var table = new BSTable(OptLog.id, "/log/list", defaultColunms); var table = new BSTable(OptLog.id, "/log/list", defaultColunms);
table.setPaginationType("server"); table.setPaginationType("server");
table.init(); OptLog.table = table.init();
OptLog.bindEvent(); 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