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