调整 音频合成
This commit is contained in:
@@ -212,6 +212,8 @@ public class AuthController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -348,6 +348,11 @@ public class MenuController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -318,6 +318,11 @@ public class RoleController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -155,6 +155,31 @@ public class UserController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据电话查询用户
|
||||
*/
|
||||
@GetMapping("/getByPhone")
|
||||
@Operation(summary = "根据电话查询用户", description = "根据用户电话查询用户信息")
|
||||
public ResponseEntity<Map<String, Object>> getUserByPhone(
|
||||
@Parameter(description = "用户电话", required = true)
|
||||
@RequestParam String phone) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
try {
|
||||
LambdaQueryWrapper<User> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(User::getPhone, phone);
|
||||
List<User> userList = userService.list(queryWrapper);
|
||||
result.put("success", true);
|
||||
result.put("message", "查询成功");
|
||||
result.put("data", userList);
|
||||
result.put("count", userList.size());
|
||||
return ResponseEntity.ok(result);
|
||||
} catch (Exception e) {
|
||||
result.put("success", false);
|
||||
result.put("message", "查询异常:" + e.getMessage());
|
||||
return ResponseEntity.internalServerError().body(result);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询用户列表
|
||||
*/
|
||||
@@ -168,7 +193,9 @@ public class UserController {
|
||||
@Parameter(description = "用户名(模糊查询)")
|
||||
@RequestParam(required = false) String userName,
|
||||
@Parameter(description = "邮箱(模糊查询)")
|
||||
@RequestParam(required = false) String email) {
|
||||
@RequestParam(required = false) String email,
|
||||
@Parameter(description = "电话(模糊查询)")
|
||||
@RequestParam(required = false) String phone) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
try {
|
||||
Page<User> page = new Page<>(current, size);
|
||||
@@ -181,6 +208,9 @@ public class UserController {
|
||||
if (email != null && !email.trim().isEmpty()) {
|
||||
queryWrapper.like(User::getEmail, email);
|
||||
}
|
||||
if (phone != null && !phone.trim().isEmpty()) {
|
||||
queryWrapper.like(User::getPhone, phone);
|
||||
}
|
||||
|
||||
// 按用户ID倒序排列
|
||||
queryWrapper.orderByDesc(User::getUserId);
|
||||
|
||||
@@ -324,6 +324,11 @@ public class UserRoleController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user