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 แล้ว
|
* @summary 5. เอารายชื่อคนที่มีการ ,map keycloak id แล้ว
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Get("keycloak-all-officer")
|
@Post("keycloak-all-officer")
|
||||||
async GetProfileWithKeycloakAllOfficer() {
|
async PostProfileWithKeycloakAllOfficer(
|
||||||
|
@Request() req: RequestWithUser,
|
||||||
|
@Body()
|
||||||
|
body: {
|
||||||
|
node: string;
|
||||||
|
nodeId: string;
|
||||||
|
},
|
||||||
|
) {
|
||||||
const profile = await this.profileRepo.find({
|
const profile = await this.profileRepo.find({
|
||||||
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
|
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
|
||||||
relations: [
|
relations: [
|
||||||
|
|
@ -2818,8 +2825,15 @@ export class OrganizationDotnetController extends Controller {
|
||||||
* @summary 5. เอารายชื่อคนที่มีการ ,map keycloak id แล้ว
|
* @summary 5. เอารายชื่อคนที่มีการ ,map keycloak id แล้ว
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Get("keycloak-all-employee")
|
@Post("keycloak-all-employee")
|
||||||
async GetProfileWithKeycloakAllEmployee() {
|
async PostProfileWithKeycloakAllEmployee(
|
||||||
|
@Request() req: RequestWithUser,
|
||||||
|
@Body()
|
||||||
|
body: {
|
||||||
|
node: string;
|
||||||
|
nodeId: string;
|
||||||
|
},
|
||||||
|
) {
|
||||||
const profile = await this.profileEmpRepo.find({
|
const profile = await this.profileEmpRepo.find({
|
||||||
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
|
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
|
||||||
relations: [
|
relations: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue