后台接口修改

This commit is contained in:
2024-12-03 15:35:49 +08:00
parent 8c0c2dce34
commit 2239c6556c
8 changed files with 25 additions and 22 deletions

View File

@ -27,7 +27,7 @@
<update id="update" parameterType="com.ycwl.basic.model.pc.adminUser.req.AddOrUpdateAdminUserReqVO">
update admin_user
set `role_id` =#{roleId}
set `role_id` =#{roleId}, `account`=#{account}, `name`=#{name}, `phone`=#{phone}
where id = #{id}
</update>
<update id="updatePassword">
@ -44,6 +44,9 @@
au.id,
au.phone,
au.name,
au.account,
au.create_time,
au.status,
r.id as roleId,
r.name as roleName
from admin_user au,
@ -54,6 +57,10 @@
and
locate(#{name},au.`name`) > 0
</if>
<if test="account!=null and account!=''">
and
locate(#{account},au.`account`) > 0
</if>
<if test="phone!=null and phone!=''">
and
locate(#{phone},au.`phone`) > 0