智慧食堂添加用户信息
This commit is contained in:
parent
5dcf3cfc95
commit
12e3e954eb
|
|
@ -153,6 +153,15 @@ public class SysUser extends BaseEntity {
|
|||
/**是否内置,0内置,1非内置*/
|
||||
private String isBuiltIn = "1";
|
||||
|
||||
/** 身份证号 */
|
||||
private String idCardNo;
|
||||
|
||||
/** 出生年月 */
|
||||
private String birthDay;
|
||||
|
||||
/** 地址 */
|
||||
private String address;
|
||||
|
||||
public SysUser() {
|
||||
|
||||
}
|
||||
|
|
@ -387,4 +396,28 @@ public class SysUser extends BaseEntity {
|
|||
public void setIsBuiltIn(String isBuiltIn) {
|
||||
this.isBuiltIn = isBuiltIn;
|
||||
}
|
||||
|
||||
public String getIdCardNo() {
|
||||
return idCardNo;
|
||||
}
|
||||
|
||||
public void setIdCardNo(String idCardNo) {
|
||||
this.idCardNo = idCardNo;
|
||||
}
|
||||
|
||||
public String getBirthDay() {
|
||||
return birthDay;
|
||||
}
|
||||
|
||||
public void setBirthDay(String birthDay) {
|
||||
this.birthDay = birthDay;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@
|
|||
<result property="approvalStatus" column="approval_status"/>
|
||||
<result property="isPermanent" column="is_permanent"/>
|
||||
<result property="isBuiltIn" column="is_built_in"/>
|
||||
<result property="idCardNo" column="id_card_no"/>
|
||||
<result property="birthDay" column="birth_day"/>
|
||||
<result property="address" column="address"/>
|
||||
<association property="dept" javaType="SysDept" resultMap="deptResult"/>
|
||||
<collection property="roles" javaType="java.util.List" resultMap="RoleResult"/>
|
||||
|
||||
|
|
@ -91,7 +94,10 @@
|
|||
r.data_scope,
|
||||
r.status as role_status,
|
||||
u.login_type,
|
||||
u.is_built_in
|
||||
u.is_built_in,
|
||||
u.id_card_no,
|
||||
u.birth_day,
|
||||
u.address
|
||||
from sys_user u
|
||||
left join sys_dept d on u.dept_id = d.dept_id
|
||||
left join sys_user_role ur on u.user_id = ur.user_id
|
||||
|
|
@ -275,6 +281,9 @@
|
|||
<if test="approvalStatus != null and approvalStatus!=''">approval_status,</if>
|
||||
<if test="isPermanent != null and isPermanent!=''">is_permanent,</if>
|
||||
<if test="isBuiltIn != null and isBuiltIn!=''">is_built_in,</if>
|
||||
<if test="idCardNo != null and idCardNo!=''">id_card_no,</if>
|
||||
<if test="birthDay != null and birthDay!=''">birth_day,</if>
|
||||
<if test="address != null and address!=''">address,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
|
|
@ -293,6 +302,9 @@
|
|||
<if test="approvalStatus != null and approvalStatus!=''">#{approvalStatus},</if>
|
||||
<if test="isPermanent != null and isPermanent!=''">#{isPermanent},</if>
|
||||
<if test="isBuiltIn != null and isBuiltIn!=''">#{isBuiltIn},</if>
|
||||
<if test="idCardNo != null and idCardNo!=''">#{idCardNo},</if>
|
||||
<if test="birthDay != null and birthDay!=''">#{birthDay},</if>
|
||||
<if test="address != null and address!=''">#{address},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
|
@ -316,6 +328,9 @@
|
|||
<if test="loginType != null and loginType!=''">login_type = #{loginType},</if>
|
||||
<if test="isPermanent != null and isPermanent!=''">is_permanent = #{isPermanent},</if>
|
||||
<if test="isBuiltIn != null and isBuiltIn!=''">is_built_in = #{isBuiltIn},</if>
|
||||
<if test="idCardNo != null and idCardNo!=''">id_card_no = #{idCardNo},</if>
|
||||
<if test="birthDay != null and birthDay!=''">birth_day = #{birthDay},</if>
|
||||
<if test="address != null and address!=''">address = #{address},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where user_id = #{userId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue