|
|
@ -41,16 +41,16 @@ public interface SecUserMapper extends SecUserMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into sec_user (avatar, user_name, ", |
|
|
|
"insert into sec_user (avatar, user_name, ", |
|
|
|
"login_name, `password`, ", |
|
|
|
"login_name, `password`, ", |
|
|
|
"telephone, object_type, ", |
|
|
|
"telephone, platform_code, ", |
|
|
|
"object_id, role_id, ", |
|
|
|
"object_type, object_id, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"role_id, `status`, create_time, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{avatar,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{avatar,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
"#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ", |
|
|
|
"#{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ", |
|
|
|
"#{telephone,jdbcType=VARCHAR}, #{objectType,jdbcType=INTEGER}, ", |
|
|
|
"#{telephone,jdbcType=VARCHAR}, #{platformCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{objectId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}, ", |
|
|
|
"#{objectType,jdbcType=INTEGER}, #{objectId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{roleId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -69,6 +69,7 @@ public interface SecUserMapper extends SecUserMapperExt { |
|
|
|
@Result(column="login_name", property="loginName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="login_name", property="loginName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="password", property="password", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="password", property="password", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="role_id", property="roleId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="role_id", property="roleId", jdbcType=JdbcType.BIGINT), |
|
|
@ -83,8 +84,8 @@ public interface SecUserMapper extends SecUserMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, avatar, user_name, login_name, `password`, telephone, object_type, object_id, ", |
|
|
|
"id, avatar, user_name, login_name, `password`, telephone, platform_code, object_type, ", |
|
|
|
"role_id, `status`, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
"object_id, role_id, `status`, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
"from sec_user", |
|
|
|
"from sec_user", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -95,6 +96,7 @@ public interface SecUserMapper extends SecUserMapperExt { |
|
|
|
@Result(column="login_name", property="loginName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="login_name", property="loginName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="password", property="password", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="password", property="password", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="role_id", property="roleId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="role_id", property="roleId", jdbcType=JdbcType.BIGINT), |
|
|
@ -123,6 +125,7 @@ public interface SecUserMapper extends SecUserMapperExt { |
|
|
|
"login_name = #{loginName,jdbcType=VARCHAR},", |
|
|
|
"login_name = #{loginName,jdbcType=VARCHAR},", |
|
|
|
"`password` = #{password,jdbcType=VARCHAR},", |
|
|
|
"`password` = #{password,jdbcType=VARCHAR},", |
|
|
|
"telephone = #{telephone,jdbcType=VARCHAR},", |
|
|
|
"telephone = #{telephone,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
"object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
"object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
"role_id = #{roleId,jdbcType=BIGINT},", |
|
|
|
"role_id = #{roleId,jdbcType=BIGINT},", |
|
|
|