From 4269e6399b28ae95de3f5da7ecbf148816f3f13d Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期一, 13 一月 2025 14:06:41 +0800 Subject: [PATCH] 12.18 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java index cfe3d51..ef1e872 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TechnicianController.java @@ -70,10 +70,11 @@ @GetMapping("/manage/list") @ApiOperation(value = "技师列表", tags = {"门店-技师列表"}) public R<Page<Technician>> managelist(@RequestParam Integer pageNum,@RequestParam Integer pageSize,@ApiParam("技师姓名") String name,@ApiParam("技师电话") String phone) { - Integer objectId = tokenService.getLoginUser().getSysUser().getObjectId(); + Long userid = tokenService.getLoginUser().getSysUser().getUserId(); + SysUser sysUser = sysUserClient.getSysUser(userid).getData(); Page<Technician> page = technicianService.lambdaQuery().like(name != null, Technician::getName, name) .like(phone != null, Technician::getPhone, phone) - .eq(Technician::getShopId, objectId) + .eq(Technician::getShopId, sysUser.getObjectId()) .page(Page.of(pageNum, pageSize)); return R.ok(page); } -- Gitblit v1.7.1