1. 添加系统配置相关表
parent
4f1c08b469
commit
afc05b833e
@ -0,0 +1,66 @@
|
|||||||
|
package com.supervision.police.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单表
|
||||||
|
* @TableName system_menu
|
||||||
|
*/
|
||||||
|
@TableName(value ="system_menu")
|
||||||
|
@Data
|
||||||
|
public class SystemMenu implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标签(菜单名或按钮名)
|
||||||
|
*/
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标签码 前端权限使用
|
||||||
|
*/
|
||||||
|
private String labelCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标签类型 0: 菜单 1:标签 默认菜单
|
||||||
|
*/
|
||||||
|
private Integer lableType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级id
|
||||||
|
*/
|
||||||
|
private String parentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
package com.supervision.police.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色表
|
||||||
|
* @TableName system_role
|
||||||
|
*/
|
||||||
|
@TableName(value ="system_role")
|
||||||
|
@Data
|
||||||
|
public class SystemRole implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色类型
|
||||||
|
*/
|
||||||
|
private String roleName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.supervision.police.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户表
|
||||||
|
* @TableName system_user
|
||||||
|
*/
|
||||||
|
@TableName(value ="system_user")
|
||||||
|
@Data
|
||||||
|
public class SystemUser implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 头像id
|
||||||
|
*/
|
||||||
|
private String headPicId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账户名
|
||||||
|
*/
|
||||||
|
private String account;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户名
|
||||||
|
*/
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号码
|
||||||
|
*/
|
||||||
|
private String phoneNum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号状态 0正常 1停用
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户pw的编码值
|
||||||
|
*/
|
||||||
|
private String userPd;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员所属部门ID
|
||||||
|
*/
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最近登录时间
|
||||||
|
*/
|
||||||
|
private Date recentLoginTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
package com.supervision.police.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户角色关联表
|
||||||
|
* @TableName system_user_role_relation
|
||||||
|
*/
|
||||||
|
@TableName(value ="system_user_role_relation")
|
||||||
|
@Data
|
||||||
|
public class SystemUserRoleRelation implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户id
|
||||||
|
*/
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色id
|
||||||
|
*/
|
||||||
|
private String roleId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.police.mapper;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemMenu;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_menu(菜单表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
* @Entity com.supervision.police.domain.SystemMenu
|
||||||
|
*/
|
||||||
|
public interface SystemMenuMapper extends BaseMapper<SystemMenu> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.police.mapper;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemRole;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_role(角色表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
* @Entity com.supervision.police.domain.SystemRole
|
||||||
|
*/
|
||||||
|
public interface SystemRoleMapper extends BaseMapper<SystemRole> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.police.mapper;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemUser;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user(用户表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
* @Entity com.supervision.police.domain.SystemUser
|
||||||
|
*/
|
||||||
|
public interface SystemUserMapper extends BaseMapper<SystemUser> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.police.mapper;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemUserRoleRelation;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user_role_relation(用户角色关联表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
* @Entity com.supervision.police.domain.SystemUserRoleRelation
|
||||||
|
*/
|
||||||
|
public interface SystemUserRoleRelationMapper extends BaseMapper<SystemUserRoleRelation> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.police.service;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemMenu;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_menu(菜单表)】的数据库操作Service
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
public interface SystemMenuService extends IService<SystemMenu> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.police.service;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemRole;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_role(角色表)】的数据库操作Service
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
public interface SystemRoleService extends IService<SystemRole> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.police.service;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemUserRoleRelation;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user_role_relation(用户角色关联表)】的数据库操作Service
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
public interface SystemUserRoleRelationService extends IService<SystemUserRoleRelation> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.police.service;
|
||||||
|
|
||||||
|
import com.supervision.police.domain.SystemUser;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user(用户表)】的数据库操作Service
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
public interface SystemUserService extends IService<SystemUser> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.police.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.police.domain.SystemMenu;
|
||||||
|
import com.supervision.police.service.SystemMenuService;
|
||||||
|
import com.supervision.police.mapper.SystemMenuMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_menu(菜单表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SystemMenuServiceImpl extends ServiceImpl<SystemMenuMapper, SystemMenu>
|
||||||
|
implements SystemMenuService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.police.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.police.domain.SystemRole;
|
||||||
|
import com.supervision.police.service.SystemRoleService;
|
||||||
|
import com.supervision.police.mapper.SystemRoleMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_role(角色表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SystemRoleServiceImpl extends ServiceImpl<SystemRoleMapper, SystemRole>
|
||||||
|
implements SystemRoleService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.police.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.police.domain.SystemUserRoleRelation;
|
||||||
|
import com.supervision.police.service.SystemUserRoleRelationService;
|
||||||
|
import com.supervision.police.mapper.SystemUserRoleRelationMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user_role_relation(用户角色关联表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SystemUserRoleRelationServiceImpl extends ServiceImpl<SystemUserRoleRelationMapper, SystemUserRoleRelation>
|
||||||
|
implements SystemUserRoleRelationService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.police.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.police.domain.SystemUser;
|
||||||
|
import com.supervision.police.service.SystemUserService;
|
||||||
|
import com.supervision.police.mapper.SystemUserMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【system_user(用户表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-07-31 11:02:43
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemUser>
|
||||||
|
implements SystemUserService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.police.mapper.SystemMenuMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.SystemMenu">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="label" column="label" jdbcType="VARCHAR"/>
|
||||||
|
<result property="labelCode" column="label_code" jdbcType="VARCHAR"/>
|
||||||
|
<result property="lableType" column="lable_type" jdbcType="INTEGER"/>
|
||||||
|
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,label,label_code,
|
||||||
|
lable_type,parent_id,create_user_id,
|
||||||
|
create_time,update_user_id,update_time
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.police.mapper.SystemRoleMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.SystemRole">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="roleName" column="role_name" jdbcType="VARCHAR"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,role_name,remark,
|
||||||
|
create_user_id,create_time,update_user_id,
|
||||||
|
update_time
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.police.mapper.SystemUserMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.SystemUser">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="headPicId" column="head_pic_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="account" column="account" jdbcType="VARCHAR"/>
|
||||||
|
<result property="username" column="username" jdbcType="VARCHAR"/>
|
||||||
|
<result property="phoneNum" column="phone_num" jdbcType="VARCHAR"/>
|
||||||
|
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||||
|
<result property="userPd" column="user_pd" jdbcType="VARCHAR"/>
|
||||||
|
<result property="deptId" column="dept_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||||
|
<result property="recentLoginTime" column="recent_login_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,head_pic_id,account,
|
||||||
|
username,phone_num,status,
|
||||||
|
user_pd,dept_id,remark,
|
||||||
|
recent_login_time,create_user_id,create_time,
|
||||||
|
update_user_id,update_time
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.supervision.police.mapper.SystemUserRoleRelationMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.police.domain.SystemUserRoleRelation">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="roleId" column="role_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,user_id,role_id,
|
||||||
|
create_user_id,create_time,update_user_id,
|
||||||
|
update_time
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue