SELECT u.id,u.username,u.password,u.name,u.sex,u.mobile,u.status,u.top_office_id,u.office_id,u.iconName,create_time,u.service_expiration_time, (SELECT l.logoAddress FROM t_sys_logo l WHERE u.iconName=l.iconName) as icon,u.user_photo as userPhotoUrl, (SELECT o.office_name FROM t_office o WHERE o.id = u.office_id) AS officeName, (SELECT o.office_logo FROM t_office o WHERE o.id = u.top_office_id) as officeLogoUrl, (SELECT o.office_name FROM t_office o WHERE o.id =u.top_office_id) as topOfficeName, uu.is_sys_role as sysRole,uu.role_id_list as roleIdList,uu.role_name_list as roleNameList FROM t_sys_user u left join (select tr.user_id,sum(sr.is_sys_role) is_sys_role,GROUP_CONCAT(sr.id) role_id_list,GROUP_CONCAT(sr.role_name) role_name_list from t_sys_role sr ,t_sys_user_roles tr where tr.del_flag=1 and tr.role_id=sr.id GROUP BY tr.user_id) uu on u.id=uu.user_id where DATE_SUB(CURDATE(), INTERVAL 90 DAY) <= DATE(u.service_expiration_time) AND u.del_flag = 1 ORDER BY u.service_expiration_time is null , u.service_expiration_time
时间: 2024-04-15 12:26:48 浏览: 23
这是一个查询语句,用于检索用户信息。它从表t_sys_user中选择了一些列,并连接了其他表来获取相关信息。查询的结果按照服务过期时间进行排序。
注意:这是一个复杂的查询语句,包含了子查询和嵌套查询。具体的查询逻辑可能需要结合数据库结构和数据来进行分析和调整。如果需要更详细的说明或修改,请提供更多的信息。
相关问题
U盤製作ubuntu22.04
您可以按照以下步骤制作 Ubuntu 22.04 的 U 盘。
步骤 1: 下载 Ubuntu 22.04 镜像文件
访问 Ubuntu 官方网站(https://ubuntu.com/download)并下载 Ubuntu 22.04 的镜像文件(通常为一个 .iso 文件)。
步骤 2: 准备 U 盘
将您的 U 盘插入计算机,并确保它已经备份,因为在制作过程中会清空 U 盘上的数据。
步骤 3: 使用启动盘制作工具
您可以使用各种启动盘制作工具来制作 Ubuntu 22.04 的 U 盘。以下是两种常用的方法:
a. 使用 Rufus(仅适用于 Windows):
- 下载 Rufus 工具(https://rufus.ie/)。
- 运行 Rufus,并在 "设备" 下拉菜单中选择您的 U 盘。
- 在 "启动选项" 中选择 "光盘或 ISO 镜像",然后单击旁边的图标,选择之前下载的 Ubuntu 22.04 镜像文件。
- 确保 "分区方案" 设置为 "MBR"。
- 单击 "开始" 开始制作 U 盘。
b. 使用 Etcher(适用于 Windows、Mac 和 Linux):
- 下载 Etcher 工具(https://www.balena.io/etcher/)。
- 运行 Etcher,并单击 "Select Image" 选择之前下载的 Ubuntu 22.04 镜像文件。
- 在 "Select target" 中选择您的 U 盘。
- 单击 "Flash!" 开始制作 U 盘。
步骤 4: 安装 Ubuntu 22.04
完成 U 盘制作后,重新启动计算机,并进入计算机的 BIOS 设置。将 U 盘设置为启动优先级最高的设备,并保存更改。然后重新启动计算机。
计算机将从 U 盘启动,并进入 Ubuntu 22.04 的安装界面。您可以按照安装向导指示进行操作,并选择在 U 盘上进行安装或将其安装到计算机硬盘上。
请注意,在安装 Ubuntu 22.04 之前,请确保您已备份重要数据,并确保您了解安装过程中的所有选项和风险。
select u.id,u.name borrower,b.name bookname,b.borrow_time from book b,user u select u.id,u.name borrower,b.name bookname,b.borrow_time from book b,user u
这是一个 SQL 查询语句,但是缺少了连接条件和限制条件,无法正确执行。可以根据具体的数据表结构和需求来编写完整的查询语句。以下是一个示例:
```
SELECT u.id, u.name AS borrower, b.name AS bookname, b.borrow_time
FROM book b
JOIN user u ON b.borrower_id = u.id
WHERE b.returned = 0;
```
该语句用于查询当前借阅中的图书信息,包括借阅者的ID和姓名,图书名称以及借阅时间。其中,"book"和"user"为数据表名,"borrower_id"为"book"表中的借阅者ID字段,"returned"为"book"表中的归还状态字段。