ผูกสิท
This commit is contained in:
parent
92b2291c4b
commit
5b63aa9fad
7 changed files with 181 additions and 22 deletions
|
|
@ -185,7 +185,8 @@ export class KpiUserRoleController extends Controller {
|
|||
* @param {string} id Id งานตามหน้าที่ความรับผิดชอบหลัก
|
||||
*/
|
||||
@Get("{id}")
|
||||
async GetKpiUserRoleDetail(@Path() id: string) {
|
||||
async GetKpiUserRoleDetail(@Request() request: RequestWithUser, @Path() id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const getKpiUserRole = await this.kpiUserRoleRepository.findOne({
|
||||
relations: ["kpiRole", "kpiUserEvaluation"],
|
||||
where: { id: id },
|
||||
|
|
@ -227,7 +228,8 @@ export class KpiUserRoleController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get()
|
||||
async GetKpiUserRole(@Query("id") id: string) {
|
||||
async GetKpiUserRole(@Request() request: RequestWithUser, @Query("id") id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const kpiUserRole = await this.kpiUserRoleRepository.find({
|
||||
where: {
|
||||
kpiUserEvaluationId: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue