新增system_user_role_relation表相关类
parent
bf843d00d2
commit
a2beaffbe8
@ -0,0 +1,57 @@
|
|||||||
|
package com.supervision.knowsub.model;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户角色关联表
|
||||||
|
* @TableName ks_system_user_role_relation
|
||||||
|
*/
|
||||||
|
@TableName(value ="ks_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 LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.knowsub.service;
|
||||||
|
|
||||||
|
import com.supervision.knowsub.model.SystemUserRoleRelation;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【ks_system_user_role_relation(用户角色关联表)】的数据库操作Service
|
||||||
|
* @createDate 2024-06-28 10:41:20
|
||||||
|
*/
|
||||||
|
public interface SystemUserRoleRelationService extends IService<SystemUserRoleRelation> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.knowsub.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.knowsub.model.SystemUserRoleRelation;
|
||||||
|
import com.supervision.knowsub.service.SystemUserRoleRelationService;
|
||||||
|
import com.supervision.knowsub.mapper.SystemUserRoleRelationMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【ks_system_user_role_relation(用户角色关联表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-06-28 10:41:20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SystemUserRoleRelationServiceImpl extends ServiceImpl<SystemUserRoleRelationMapper, SystemUserRoleRelation>
|
||||||
|
implements SystemUserRoleRelationService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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.knowsub.mapper.SystemUserRoleRelationMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.knowsub.model.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