员工详情返回角色名称

This commit is contained in:
张松
2025-02-20 10:02:39 +08:00
parent a16e322a3c
commit f1456ba34f
4 changed files with 22 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ public class ShopStaffController {
@SaAdminCheckPermission("shopStaff:detail")
@GetMapping("/detail")
public CzgResult<ShopStaff> detail(@RequestParam Long id) {
return CzgResult.success(shopStaffService.queryChain().eq(ShopStaff::getId, id).eq(ShopStaff::getShopId, StpKit.USER.getShopId()).one());
return CzgResult.success(shopStaffService.detail(StpKit.USER.getShopId(), id));
}
/**