ผูกสิท
This commit is contained in:
parent
92b2291c4b
commit
5b63aa9fad
7 changed files with 181 additions and 22 deletions
|
|
@ -221,7 +221,8 @@ export class KpiUserDevelopmentController extends Controller {
|
|||
* @param {string} id Id พัฒนาตนเอง
|
||||
*/
|
||||
@Get("{id}")
|
||||
async GetKpiUserDevelopmentDetail(@Path() id: string) {
|
||||
async GetKpiUserDevelopmentDetail(@Request() request: RequestWithUser, @Path() id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const getKpiUserDevelopment = await this.kpiUserDevelopmentRepository.findOne({
|
||||
relations: ["kpiUserEvaluation", "developmentProjects"],
|
||||
where: { id: id },
|
||||
|
|
@ -262,7 +263,8 @@ export class KpiUserDevelopmentController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get()
|
||||
async GetKpiUserDevelopment(@Query("id") id: string) {
|
||||
async GetKpiUserDevelopment(@Request() request: RequestWithUser, @Query("id") id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const kpiUserDevelopment = await this.kpiUserDevelopmentRepository.find({
|
||||
where: {
|
||||
kpiUserEvaluationId: id,
|
||||
|
|
@ -424,7 +426,11 @@ export class KpiUserDevelopmentController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get("admin/detail/{id}")
|
||||
async GetKpiDevelopmentStatusKP7ById(@Path("id") id: string) {
|
||||
async GetKpiDevelopmentStatusKP7ById(
|
||||
@Request() request: RequestWithUser,
|
||||
@Path("id") id: string,
|
||||
) {
|
||||
await new permission().PermissionGet(request, "SYS_RESULT");
|
||||
const kpiUserDevelopment = await this.kpiUserDevelopmentRepository.findOne({
|
||||
relations: [
|
||||
"kpiUserEvaluation",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue