CREATE TABLE IF NOT EXISTS `sys_user_expand` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` char(36) DEFAULT NULL COMMENT '主键', `area_code` varchar(255) DEFAULT NULL COMMENT '名称', `area_name` varchar(255) DEFAULT NULL COMMENT '描述', `user_level` int(2) DEFAULT '1' COMMENT '用户级别', `user_sex` char(36) DEFAULT NULL COMMENT '性别', `user_sex_name` varchar(255) DEFAULT NULL COMMENT '性别', `user_birth` varchar(255) DEFAULT NULL COMMENT '出生年月', `user_politic` char(36) DEFAULT NULL COMMENT '政治面貌', `user_politic_name` varchar(255) DEFAULT NULL COMMENT '政治面貌', `user_education` char(36) DEFAULT NULL COMMENT '学历', `smc_state` varchar(255) DEFAULT NULL COMMENT '融合通信状态', `smc_meeting_id` varchar(255) DEFAULT NULL COMMENT '融合通信会议室ID', `smc_username` varchar(255) DEFAULT NULL COMMENT '融合通信账号', `smc_password` varchar(255) DEFAULT NULL COMMENT '融合通信密码', `smc_number` varchar(255) DEFAULT NULL COMMENT '融合通信会议室号码', `creator` char(36) DEFAULT NULL COMMENT '创建人', `gmt_create` datetime DEFAULT NULL COMMENT '创建时间', `modifier` char(36) DEFAULT NULL COMMENT '修改人', `gmt_modified` datetime DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`), UNIQUE KEY `user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='用户拓展属性'; INSERT INTO sys_user_expand( user_id, area_code, area_name, user_level, user_sex, user_sex_name, user_birth, user_education, user_education_name, user_politic, user_politic_name, smc_state, smc_meeting_id, smc_username, smc_password, smc_number, creator, gmt_create, modifier, gmt_modified ) VALUES( #{userId}, #{areaCode}, #{areaName}, #{userLevel}, #{userSex}, #{userSexName}, #{userBirth}, #{userEducation}, #{userEducationName}, #{userPolitic}, #{userPoliticName}, #{smcState}, #{smcMeetingId}, #{smcUsername}, #{smcPassword}, #{smcNumber}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified} ) DELETE FROM sys_user_expand WHERE user_id IN #{userIds[${index}]} UPDATE sys_user_expand SET area_code = #{areaCode}, area_name = #{areaName}, user_level = #{userLevel}, user_sex = #{userSex}, user_sex_name = #{userSexName}, user_birth = #{userBirth}, user_education = #{userEducation}, user_education_name = #{userEducationName}, user_politic = #{userPolitic}, user_politic_name = #{userPoliticName}, smc_state = #{smcState}, smc_meeting_id = #{smcMeetingId}, smc_username = #{smcUsername}, smc_password = #{smcPassword}, smc_number = #{smcNumber}, gmt_modified = #{gmtModified}, modifier = #{modifier} WHERE user_id = #{userId}