|
|
@@ -4,16 +4,16 @@
|
|
|
<mapper namespace="cn.reghao.tnb.account.app.db.mapper.UserAccountMapper">
|
|
|
<insert id="save">
|
|
|
insert into user_account
|
|
|
- (`user_id`,`account_type`,`username`,`mobile`,`email`,`encoded_password`,`salt`,`create_at`,`role`,`enabled`,`locked`,`screen_name`,`avatar_url`,`notify`,`roles`)
|
|
|
+ (`user_id`,`username`,`mobile`,`email`,`encoded_password`,`salt`,`create_at`,`enabled`,`locked`,`screen_name`,`avatar_url`)
|
|
|
values
|
|
|
- (#{userId},#{accountType},#{username},#{mobile},#{email},#{encodedPassword},#{salt},#{createAt},#{role},#{enabled},#{locked},#{screenName},#{avatarUrl},#{notify},#{roles})
|
|
|
+ (#{userId},#{username},#{mobile},#{email},#{encodedPassword},#{salt},#{createAt},#{enabled},#{locked},#{screenName},#{avatarUrl})
|
|
|
</insert>
|
|
|
<insert id="saveAll" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into user_account
|
|
|
- (`user_id`,`account_type`,`username`,`mobile`,`email`,`encoded_password`,`salt`,`create_at`,`role`,`enabled`,`locked`,`screen_name`,`avatar_url`,`notify`,`roles`)
|
|
|
+ (`user_id`,`username`,`mobile`,`email`,`encoded_password`,`salt`,`create_at`,`enabled`,`locked`,`screen_name`,`avatar_url`)
|
|
|
values
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
- (#{item.userId},#{item.accountType},#{item.username},#{item.mobile},#{item.email},#{item.encodedPassword},#{item.salt},#{item.createAt},#{item.role},#{item.enabled},#{item.locked},#{item.screenName},#{item.avatarUrl},#{item.notify},#{item.roles})
|
|
|
+ (#{item.userId},#{item.username},#{item.mobile},#{item.email},#{item.encodedPassword},#{item.salt},#{item.createAt},#{item.enabled},#{item.locked},#{item.screenName},#{item.avatarUrl})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
@@ -120,10 +120,6 @@
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
- <select id="count" resultType="java.lang.Integer">
|
|
|
- select count(*)
|
|
|
- from user_account
|
|
|
- </select>
|
|
|
<select id="findAccountInfoByMobile" resultType="cn.reghao.tnb.account.api.dto.AccountInfo">
|
|
|
select user_id,screen_name,avatar_url,username,mobile,email
|
|
|
from user_account
|
|
|
@@ -150,8 +146,4 @@
|
|
|
from user_account
|
|
|
where screen_name like concat('%',#{screenName},'%')
|
|
|
</select>
|
|
|
- <select id="findAccountInfoByPage" resultType="cn.reghao.tnb.account.api.dto.AccountInfo">
|
|
|
- select user_id,screen_name,avatar_url,username,mobile,email
|
|
|
- from user_account
|
|
|
- </select>
|
|
|
</mapper>
|