เช็ค profiletype
This commit is contained in:
parent
501117fae1
commit
48f7c44b9e
3 changed files with 5435 additions and 5017 deletions
10349
package-lock.json
generated
10349
package-lock.json
generated
File diff suppressed because it is too large
Load diff
93
package.json
93
package.json
|
|
@ -1,46 +1,49 @@
|
|||
{
|
||||
"name": "template",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon",
|
||||
"check": "tsc --noEmit",
|
||||
"start": "node ./dist/app.js",
|
||||
"format": "prettier --write .",
|
||||
"build": "tsoa spec-and-routes && tsc",
|
||||
"migration:generate": "typeorm-ts-node-commonjs migration:generate -d src/database/data-source.ts",
|
||||
"migration:run": "typeorm-ts-node-commonjs migration:run -d src/database/data-source.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/node": "^20.11.5",
|
||||
"@types/node-cron": "^3.0.11",
|
||||
"@types/swagger-ui-express": "^4.1.6",
|
||||
"nodemon": "^3.0.3",
|
||||
"prettier": "^3.2.2",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@elastic/elasticsearch": "^8.15.0",
|
||||
"@tsoa/runtime": "^6.0.0",
|
||||
"axios": "^1.6.8",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.3.1",
|
||||
"express": "^4.18.2",
|
||||
"fast-jwt": "^3.3.2",
|
||||
"mysql2": "^3.9.1",
|
||||
"node-cron": "^3.0.3",
|
||||
"promise.any": "^2.0.6",
|
||||
"reflect-metadata": "^0.2.1",
|
||||
"swagger-ui-express": "^5.0.0",
|
||||
"tsoa": "^6.0.1",
|
||||
"typeorm": "^0.3.19",
|
||||
"typeorm-cli": "^1.0.7"
|
||||
}
|
||||
}
|
||||
"name": "template",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon",
|
||||
"check": "tsc --noEmit",
|
||||
"start": "node ./dist/app.js",
|
||||
"format": "prettier --write .",
|
||||
"build": "tsoa spec-and-routes && tsc",
|
||||
"migration:generate": "typeorm-ts-node-commonjs migration:generate -d src/database/data-source.ts",
|
||||
"migration:run": "typeorm-ts-node-commonjs migration:run -d src/database/data-source.ts"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/node": "^20.11.5",
|
||||
"@types/node-cron": "^3.0.11",
|
||||
"@types/swagger-ui-express": "^4.1.6",
|
||||
"nodemon": "^3.0.3",
|
||||
"prettier": "^3.2.2",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@elastic/elasticsearch": "^8.14.0",
|
||||
"@nestjs/platform-express": "^10.3.7",
|
||||
"@tsoa/runtime": "^6.0.0",
|
||||
"axios": "^1.6.8",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.3.1",
|
||||
"express": "^4.18.2",
|
||||
"fast-jwt": "^3.3.2",
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"mysql2": "^3.9.1",
|
||||
"node-cron": "^3.0.3",
|
||||
"promise.any": "^2.0.6",
|
||||
"reflect-metadata": "^0.2.1",
|
||||
"swagger-ui-express": "^5.0.0",
|
||||
"tsoa": "^6.0.1",
|
||||
"typeorm": "^0.3.19",
|
||||
"typeorm-cli": "^1.0.7",
|
||||
"xlsx": "^0.18.5"
|
||||
}
|
||||
}
|
||||
|
|
@ -500,16 +500,14 @@ export class KpiUserDevelopmentController extends Controller {
|
|||
if (!getKpiUserDevelopment) {
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลพัฒนาตนเองนี้");
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "OFFCIER"){
|
||||
if(type.trim().toLocaleUpperCase() == "OFFICER"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_OFFICER", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "EMPLOYEE"){
|
||||
}else if(type.trim().toLocaleUpperCase() == "EMPLOYEE"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_EMP", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}
|
||||
if(type.trim().toLocaleUpperCase() == "TEMP"){
|
||||
}else if(type.trim().toLocaleUpperCase() == "TEMP"){
|
||||
await new permission().PermissionOrgUserGet(request, "SYS_REGISTRY_TEMP", getKpiUserDevelopment.kpiUserEvaluation.profileId);
|
||||
}else{
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถเข้าถึงข้อมูลนี้ได้");
|
||||
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่สามารถเข้าถึงข้อมูลนี้ได้ccc");
|
||||
}
|
||||
|
||||
const mapKpiUserDevelopment = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue