mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 07:33:53 +08:00
fix:删除用户时调错agent接口bug
This commit is contained in:
@@ -25,7 +25,8 @@ public interface AgentService extends BaseService<AgentEntity> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除这个用户的所有
|
* 删除这个用户的所有
|
||||||
|
*
|
||||||
* @param userId
|
* @param userId
|
||||||
*/
|
*/
|
||||||
void deleteAgentByUserId(String userId);
|
void deleteAgentByUserId(Long userId);
|
||||||
}
|
}
|
||||||
+1
-1
@@ -65,7 +65,7 @@ public class AgentServiceImpl extends BaseServiceImpl<AgentDao, AgentEntity> imp
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteAgentByUserId(String userId) {
|
public void deleteAgentByUserId(Long userId) {
|
||||||
UpdateWrapper<AgentEntity> wrapper = new UpdateWrapper<>();
|
UpdateWrapper<AgentEntity> wrapper = new UpdateWrapper<>();
|
||||||
wrapper.eq("user_id", userId);
|
wrapper.eq("user_id", userId);
|
||||||
baseDao.delete(wrapper);
|
baseDao.delete(wrapper);
|
||||||
|
|||||||
+1
-1
@@ -98,7 +98,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<SysUserDao, SysUserEntit
|
|||||||
// 删除设备
|
// 删除设备
|
||||||
deviceService.deleteByUserId(id);
|
deviceService.deleteByUserId(id);
|
||||||
// 删除智能体
|
// 删除智能体
|
||||||
agentService.deleteById(id);
|
agentService.deleteAgentByUserId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -55,8 +55,7 @@
|
|||||||
<button v-for="page in visiblePages" :key="page" class="pagination-btn"
|
<button v-for="page in visiblePages" :key="page" class="pagination-btn"
|
||||||
:class="{ active: page === currentPage }" @click="goToPage(page)">
|
:class="{ active: page === currentPage }" @click="goToPage(page)">
|
||||||
{{ page }}
|
{{ page }}
|
||||||
</button>getUserList <button class="pagination-btn" :disabled="currentPage === pageCount"
|
</button> <button class="pagination-btn" :disabled="currentPage === pageCount" @click="goNext">
|
||||||
@click="goNext">
|
|
||||||
下一页
|
下一页
|
||||||
</button>
|
</button>
|
||||||
<span class="total-text">共{{ total }}条记录</span>
|
<span class="total-text">共{{ total }}条记录</span>
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
<el-header>
|
<el-header>
|
||||||
<div style="display: flex;align-items: center;margin-top: 15px;margin-left: 10px;gap: 10px;">
|
<div style="display: flex;align-items: center;margin-top: 15px;margin-left: 10px;gap: 10px;">
|
||||||
<img loading="lazy" alt="" src="@/assets/xiaozhi-logo.png" style="width: 45px;height: 45px;" />
|
<img loading="lazy" alt="" src="@/assets/xiaozhi-logo.png" style="width: 45px;height: 45px;" />
|
||||||
<img loading="lazy" alt="" src="@/assets/xiaozhi-ai.png" style="width: 70px;height: 13px;" />
|
<img loading="lazy" alt="" src="@/assets/xiaozhi-ai.png" style="height: 18px;" />
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
|
<div class="login-person">
|
||||||
|
<img loading="lazy" alt="" src="@/assets/login/login-person.png" style="width: 100%;" />
|
||||||
|
</div>
|
||||||
<el-main style="position: relative;">
|
<el-main style="position: relative;">
|
||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<!-- 修改标题部分 -->
|
<!-- 修改标题部分 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user