员工详情返回角色名称
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user