| | |
| | | package com.ruoyi.account.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.account.api.model.UserCancellationLog; |
| | | import com.ruoyi.account.api.model.UserCoupon; |
| | |
| | | AppUser superiorLeader = appUserService.getSuperiorLeader(id); |
| | | return R.ok(superiorLeader); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/onlineRecord") |
| | | @ApiOperation(value = "10分钟定时任务调用,记录用户在线时长", tags = {"小程序-个人中心首页"}) |
| | | public R onlineRecord(){ |
| | | appUserService.onlineRecord(); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户名称模糊搜索用户列表 |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @PostMapping("/getAppUserByName") |
| | | public R<List<AppUser>> getAppUserByName(@RequestParam("name") String name){ |
| | | List<AppUser> list = appUserService.list(new LambdaQueryWrapper<AppUser>().eq(AppUser::getDelFlag, 0).eq(AppUser::getStatus, 1) |
| | | .like(AppUser::getName, name)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户电话模糊搜索用户列表 |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | @PostMapping("/getAppUserByPhone") |
| | | public R<List<AppUser>> getAppUserByPhone(@RequestParam("phone") String phone){ |
| | | List<AppUser> list = appUserService.list(new LambdaQueryWrapper<AppUser>().eq(AppUser::getDelFlag, 0).eq(AppUser::getStatus, 1) |
| | | .like(AppUser::getPhone, phone)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | } |
| | | |