find profile by nodeId
This commit is contained in:
parent
75e1d761b5
commit
1f0c6cb192
1 changed files with 18 additions and 4 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue