新增:
1.用户登录时判断租户是否过期,在登录时赋予 token有效期为当前租户到期时间和当前日期的差值; 2.实现租户名查 租户 Id 接口
This commit is contained in:
28
src/main/resources/mapper/SystemTenantMapper.xml
Normal file
28
src/main/resources/mapper/SystemTenantMapper.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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.yupi.springbootinit.mapper.SystemTenantMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yupi.springbootinit.model.entity.SystemTenant">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table system_tenant-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="contact_user_id" jdbcType="BIGINT" property="contactUserId" />
|
||||
<result column="contact_name" jdbcType="VARCHAR" property="contactName" />
|
||||
<result column="contact_mobile" jdbcType="VARCHAR" property="contactMobile" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="website" jdbcType="VARCHAR" property="website" />
|
||||
<result column="package_id" jdbcType="BIGINT" property="packageId" />
|
||||
<result column="expire_time" jdbcType="TIMESTAMP" property="expireTime" />
|
||||
<result column="account_count" jdbcType="INTEGER" property="accountCount" />
|
||||
<result column="creator" jdbcType="VARCHAR" property="creator" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="updater" jdbcType="VARCHAR" property="updater" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, `name`, contact_user_id, contact_name, contact_mobile, `status`, website, package_id,
|
||||
expire_time, account_count, creator, create_time, updater, update_time, deleted
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user