用户表字段新增
This commit is contained in:
parent
b14182c17a
commit
9ca4e29702
@ -149,6 +149,11 @@ public class SysUser extends BaseEntity {
|
||||
*/
|
||||
private Long departmentId;
|
||||
|
||||
/**
|
||||
* 岗位名称,医生:DOCTOR,健康管理师:HEALTH_MANAGE_MASTER
|
||||
*/
|
||||
private String postName;
|
||||
|
||||
public SysUser() {
|
||||
|
||||
}
|
||||
@ -349,6 +354,14 @@ public class SysUser extends BaseEntity {
|
||||
this.userBirthDate = userBirthDate;
|
||||
}
|
||||
|
||||
public String getPostName() {
|
||||
return postName;
|
||||
}
|
||||
|
||||
public void setPostName(String postName) {
|
||||
this.postName = postName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
<result property="userBirthDate" column="user_birth_date"/>
|
||||
<result property="agencyId" column="agency_id"/>
|
||||
<result property="departmentId" column="department_id"/>
|
||||
<result property="postName" column="post_name"/>
|
||||
<association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult"/>
|
||||
<collection property="roles" javaType="java.util.List" resultMap="RoleResult"/>
|
||||
</resultMap>
|
||||
@ -71,6 +72,7 @@
|
||||
u.user_birth_date,
|
||||
u.agency_id,
|
||||
u.department_id,
|
||||
u.post_name,
|
||||
d.dept_id,
|
||||
d.parent_id,
|
||||
d.ancestors,
|
||||
@ -93,7 +95,7 @@
|
||||
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
||||
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status,
|
||||
u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,u.user_card_no,u.user_birth_date,
|
||||
u.agency_id,u.department_id,d.dept_name, d.leader from sys_user u
|
||||
u.agency_id,u.department_id,u.post_name,d.dept_name, d.leader from sys_user u
|
||||
left join sys_dept d on u.dept_id = d.dept_id
|
||||
where u.del_flag = '0'
|
||||
<if test="userId != null and userId != 0">
|
||||
@ -215,6 +217,7 @@
|
||||
<if test="userBirthDate != null">user_birth_date,</if>
|
||||
<if test="agencyId != null">agency_id,</if>
|
||||
<if test="departmentId != null">department_id,</if>
|
||||
<if test="postName != null">post_name,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
@ -233,6 +236,7 @@
|
||||
<if test="userBirthDate != null">#{userBirthDate},</if>
|
||||
<if test="agencyId != null">#{agencyId},</if>
|
||||
<if test="departmentId != null">#{departmentId},</if>
|
||||
<if test="postName != null">#{postName},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
@ -257,6 +261,7 @@
|
||||
<if test="userBirthDate != null">user_birth_date = #{userBirthDate},</if>
|
||||
<if test="agencyId != null">agency_id =#{agencyId},</if>
|
||||
<if test="departmentId != null">department_id = #{departmentId},</if>
|
||||
<if test="postName != null">post_name = #{postName},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where user_id = #{userId}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user