...
|
...
|
@@ -8,13 +8,19 @@ |
|
|
<id column="id" jdbcType="VARCHAR" property="id"/>
|
|
|
<result column="username" jdbcType="VARCHAR" property="username"/>
|
|
|
<result column="password" jdbcType="VARCHAR" property="password"/>
|
|
|
<result column="server_id" jdbcType="VARCHAR" property="serverId"/>
|
|
|
<result column="server_name" jdbcType="VARCHAR" property="serverName"/>
|
|
|
<result column="virtual_host_id" jdbcType="VARCHAR" property="virtualHostId"/>
|
|
|
<result column="virtual_host_name" jdbcType="VARCHAR" property="virtualHostName"/>
|
|
|
<result column="real_name" jdbcType="VARCHAR" property="realName"/>
|
|
|
<result column="description" jdbcType="VARCHAR" property="description"/>
|
|
|
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate"/>
|
|
|
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--@mbg.generated-->
|
|
|
id, username, `password`, description, gmt_create, gmt_modified
|
|
|
id, username, `password`, server_id, `server_name`, virtual_host_id, virtual_host_name,
|
|
|
real_name, description, gmt_create, gmt_modified
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
...
|
...
|
@@ -23,25 +29,6 @@ |
|
|
from user_info
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByUsername" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from user_info
|
|
|
where username = #{username,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="getUserInfoList" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select id,
|
|
|
username,
|
|
|
description,
|
|
|
gmt_create,
|
|
|
gmt_modified
|
|
|
from user_info
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
<!--@mbg.generated-->
|
|
|
delete
|
...
|
...
|
@@ -51,9 +38,13 @@ |
|
|
<insert id="insert" parameterType="com.sunyo.wlpt.message.bus.service.domain.UserInfo">
|
|
|
<!--@mbg.generated-->
|
|
|
insert into user_info (id, username, `password`,
|
|
|
description, gmt_create, gmt_modified)
|
|
|
server_id, `server_name`, virtual_host_id,
|
|
|
virtual_host_name, real_name, description,
|
|
|
gmt_create, gmt_modified)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
#{description,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP})
|
|
|
#{serverId,jdbcType=VARCHAR}, #{serverName,jdbcType=VARCHAR}, #{virtualHostId,jdbcType=VARCHAR},
|
|
|
#{virtualHostName,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
|
|
|
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sunyo.wlpt.message.bus.service.domain.UserInfo">
|
|
|
<!--@mbg.generated-->
|
...
|
...
|
@@ -68,6 +59,21 @@ |
|
|
<if test="password != null">
|
|
|
`password`,
|
|
|
</if>
|
|
|
<if test="serverId != null">
|
|
|
server_id,
|
|
|
</if>
|
|
|
<if test="serverName != null">
|
|
|
`server_name`,
|
|
|
</if>
|
|
|
<if test="virtualHostId != null">
|
|
|
virtual_host_id,
|
|
|
</if>
|
|
|
<if test="virtualHostName != null">
|
|
|
virtual_host_name,
|
|
|
</if>
|
|
|
<if test="realName != null">
|
|
|
real_name,
|
|
|
</if>
|
|
|
<if test="description != null">
|
|
|
description,
|
|
|
</if>
|
...
|
...
|
@@ -88,6 +94,21 @@ |
|
|
<if test="password != null">
|
|
|
#{password,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="serverId != null">
|
|
|
#{serverId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="serverName != null">
|
|
|
#{serverName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="virtualHostId != null">
|
|
|
#{virtualHostId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="virtualHostName != null">
|
|
|
#{virtualHostName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="realName != null">
|
|
|
#{realName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="description != null">
|
|
|
#{description,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -109,6 +130,21 @@ |
|
|
<if test="password != null">
|
|
|
`password` = #{password,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="serverId != null">
|
|
|
server_id = #{serverId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="serverName != null">
|
|
|
`server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="virtualHostId != null">
|
|
|
virtual_host_id = #{virtualHostId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="virtualHostName != null">
|
|
|
virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="realName != null">
|
|
|
real_name = #{realName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="description != null">
|
|
|
description = #{description,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -126,12 +162,41 @@ |
|
|
update user_info
|
|
|
set username = #{username,jdbcType=VARCHAR},
|
|
|
`password` = #{password,jdbcType=VARCHAR},
|
|
|
server_id = #{serverId,jdbcType=VARCHAR},
|
|
|
`server_name` = #{serverName,jdbcType=VARCHAR},
|
|
|
virtual_host_id = #{virtualHostId,jdbcType=VARCHAR},
|
|
|
virtual_host_name = #{virtualHostName,jdbcType=VARCHAR},
|
|
|
real_name = #{realName,jdbcType=VARCHAR},
|
|
|
description = #{description,jdbcType=VARCHAR},
|
|
|
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
|
|
|
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectByUsername" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from user_info
|
|
|
where username = #{username,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="getUserInfoList" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select id,
|
|
|
username,
|
|
|
`password`,
|
|
|
server_id,
|
|
|
`server_name`,
|
|
|
virtual_host_id,
|
|
|
virtual_host_name,
|
|
|
real_name,
|
|
|
description,
|
|
|
gmt_create,
|
|
|
gmt_modified
|
|
|
from user_info
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUserExist" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
<!--@mbg.generated-->
|
|
|
select
|
...
|
...
|
|