parent
ddce2cae6a
commit
4b0d88c1d9
6 changed files with 289 additions and 0 deletions
@ -0,0 +1,20 @@ |
||||
package com.yipin.liuwanr.controller; |
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
||||
import org.springframework.stereotype.Controller; |
||||
|
||||
/** |
||||
* <p> |
||||
* 用户信息表 前端控制器 |
||||
* </p> |
||||
* |
||||
* @author Qyq |
||||
* @since 2021-06-23 |
||||
*/ |
||||
@Controller |
||||
@RequestMapping("/hr-user-info") |
||||
public class HrUserInfoController { |
||||
|
||||
} |
@ -0,0 +1,179 @@ |
||||
package com.yipin.liuwanr.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import java.util.Date; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* <p> |
||||
* 用户信息表 |
||||
* </p> |
||||
* |
||||
* @author Qyq |
||||
* @since 2021-06-23 |
||||
*/ |
||||
@Data |
||||
@TableName("hr_user_info") |
||||
public class HrUserInfo implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 用户id |
||||
*/ |
||||
@TableId(value = "userId", type = IdType.AUTO) |
||||
private Integer userId; |
||||
|
||||
/** |
||||
* 用户姓名 |
||||
*/ |
||||
@TableField("userName") |
||||
private String userName; |
||||
|
||||
/** |
||||
* 唯一标识账号 |
||||
*/ |
||||
@TableField("uniqueIdentificationAccount") |
||||
private String uniqueIdentificationAccount; |
||||
|
||||
/** |
||||
* 证件类型(1、身份证) |
||||
*/ |
||||
@TableField("documentType") |
||||
private Integer documentType; |
||||
|
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("IDNumber") |
||||
private String IDNumber; |
||||
|
||||
/** |
||||
* 绑定省份id |
||||
*/ |
||||
@TableField("provinceId") |
||||
private Integer provinceId; |
||||
|
||||
/** |
||||
* 绑定城市id |
||||
*/ |
||||
@TableField("cityId") |
||||
private Integer cityId; |
||||
|
||||
/** |
||||
* 国家归属地 |
||||
*/ |
||||
private String countries; |
||||
|
||||
/** |
||||
* 出生日期 |
||||
*/ |
||||
@TableField("dateBirth") |
||||
private String dateBirth; |
||||
|
||||
/** |
||||
* 教育程度 |
||||
*/ |
||||
@TableField("educationDegree") |
||||
private Integer educationDegree; |
||||
|
||||
/** |
||||
* 绑定学校id |
||||
*/ |
||||
@TableField("schoolId") |
||||
private Integer schoolId; |
||||
|
||||
/** |
||||
* 电话 |
||||
*/ |
||||
private String phone; |
||||
|
||||
/** |
||||
* 微信号 |
||||
*/ |
||||
@TableField("weChatID") |
||||
private String weChatID; |
||||
|
||||
/** |
||||
* 邮箱 |
||||
*/ |
||||
private String email; |
||||
|
||||
/** |
||||
* 账号(中台管理的所有平台的账号均不显示在这里) |
||||
*/ |
||||
private String account; |
||||
|
||||
/** |
||||
* 密码 |
||||
*/ |
||||
private String password; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("creationTime") |
||||
private String creationTime; |
||||
|
||||
/** |
||||
* 登陆次数 |
||||
*/ |
||||
@TableField("logInNumber") |
||||
private Integer logInNumber; |
||||
|
||||
/** |
||||
* 性别(1、男 2、女) |
||||
*/ |
||||
private Integer sex; |
||||
|
||||
/** |
||||
* 用户头像路径 |
||||
*/ |
||||
@TableField("userAvatars") |
||||
private String userAvatars; |
||||
|
||||
/** |
||||
* 是否删除(0、未删除 1、已删除) |
||||
*/ |
||||
private Integer isdel; |
||||
|
||||
/** |
||||
* 最后登陆时间 |
||||
*/ |
||||
@TableField("lastLoginTime") |
||||
private String lastLoginTime; |
||||
|
||||
/** |
||||
* 绑定多个角色id |
||||
*/ |
||||
@TableField("roleId") |
||||
private String roleId; |
||||
|
||||
/** |
||||
* 禁用状态(0未禁用1已禁用默认0) |
||||
*/ |
||||
@TableField("disableAccount") |
||||
private Integer disableAccount; |
||||
|
||||
/** |
||||
* 所属院校id(绑定学校id) |
||||
*/ |
||||
@TableField("schoolAppellationId") |
||||
private String schoolAppellationId; |
||||
|
||||
/** |
||||
* token |
||||
*/ |
||||
private String token; |
||||
|
||||
/** |
||||
* 最后更新时间 |
||||
*/ |
||||
@TableField("updateTime") |
||||
private Date updateTime; |
||||
} |
@ -0,0 +1,18 @@ |
||||
package com.yipin.liuwanr.mapper; |
||||
|
||||
import com.yipin.liuwanr.entity.HrUserInfo; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
/** |
||||
* <p> |
||||
* 用户信息表 Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author Qyq |
||||
* @since 2021-06-23 |
||||
*/ |
||||
@Mapper |
||||
public interface HrUserInfoMapper extends BaseMapper<HrUserInfo> { |
||||
|
||||
} |
@ -0,0 +1,16 @@ |
||||
package com.yipin.liuwanr.service; |
||||
|
||||
import com.yipin.liuwanr.entity.HrUserInfo; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
||||
/** |
||||
* <p> |
||||
* 用户信息表 服务类 |
||||
* </p> |
||||
* |
||||
* @author Qyq |
||||
* @since 2021-06-23 |
||||
*/ |
||||
public interface IHrUserInfoService extends IService<HrUserInfo> { |
||||
|
||||
} |
@ -0,0 +1,20 @@ |
||||
package com.yipin.liuwanr.service.impl; |
||||
|
||||
import com.yipin.liuwanr.entity.HrUserInfo; |
||||
import com.yipin.liuwanr.mapper.HrUserInfoMapper; |
||||
import com.yipin.liuwanr.service.IHrUserInfoService; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* <p> |
||||
* 用户信息表 服务实现类 |
||||
* </p> |
||||
* |
||||
* @author Qyq |
||||
* @since 2021-06-23 |
||||
*/ |
||||
@Service |
||||
public class HrUserInfoServiceImpl extends ServiceImpl<HrUserInfoMapper, HrUserInfo> implements IHrUserInfoService { |
||||
|
||||
} |
@ -0,0 +1,36 @@ |
||||
<?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.yipin.liuwanr.mapper.HrUserInfoMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="BaseResultMap" type="com.yipin.liuwanr.entity.HrUserInfo"> |
||||
<id column="userId" property="userId" /> |
||||
<result column="userName" property="userName" /> |
||||
<result column="uniqueIdentificationAccount" property="uniqueIdentificationAccount" /> |
||||
<result column="documentType" property="documentType" /> |
||||
<result column="IDNumber" property="IDNumber" /> |
||||
<result column="provinceId" property="provinceId" /> |
||||
<result column="cityId" property="cityId" /> |
||||
<result column="countries" property="countries" /> |
||||
<result column="dateBirth" property="dateBirth" /> |
||||
<result column="educationDegree" property="educationDegree" /> |
||||
<result column="schoolId" property="schoolId" /> |
||||
<result column="phone" property="phone" /> |
||||
<result column="weChatID" property="weChatID" /> |
||||
<result column="email" property="email" /> |
||||
<result column="account" property="account" /> |
||||
<result column="password" property="password" /> |
||||
<result column="creationTime" property="creationTime" /> |
||||
<result column="logInNumber" property="logInNumber" /> |
||||
<result column="sex" property="sex" /> |
||||
<result column="userAvatars" property="userAvatars" /> |
||||
<result column="isdel" property="isdel" /> |
||||
<result column="lastLoginTime" property="lastLoginTime" /> |
||||
<result column="roleId" property="roleId" /> |
||||
<result column="disableAccount" property="disableAccount" /> |
||||
<result column="schoolAppellationId" property="schoolAppellationId" /> |
||||
<result column="token" property="token" /> |
||||
<result column="updateTime" property="updateTime" /> |
||||
</resultMap> |
||||
|
||||
</mapper> |
Loading…
Reference in new issue