find profile by nodeId

This commit is contained in:
kittapath 2024-12-12 15:21:55 +07:00
parent 75e1d761b5
commit 1f0c6cb192

View file

@ -2752,8 +2752,15 @@ export class OrganizationDotnetController extends Controller {
* @summary 5. ,map keycloak id
*
*/
@Get("keycloak-all-officer")
async GetProfileWithKeycloakAllOfficer() {
@Post("keycloak-all-officer")
async PostProfileWithKeycloakAllOfficer(
@Request() req: RequestWithUser,
@Body()
body: {
node: string;
nodeId: string;
},
) {
const profile = await this.profileRepo.find({
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
relations: [
@ -2818,8 +2825,15 @@ export class OrganizationDotnetController extends Controller {
* @summary 5. ,map keycloak id
*
*/
@Get("keycloak-all-employee")
async GetProfileWithKeycloakAllEmployee() {
@Post("keycloak-all-employee")
async PostProfileWithKeycloakAllEmployee(
@Request() req: RequestWithUser,
@Body()
body: {
node: string;
nodeId: string;
},
) {
const profile = await this.profileEmpRepo.find({
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
relations: [