ผูกสิท
This commit is contained in:
parent
92b2291c4b
commit
5b63aa9fad
7 changed files with 181 additions and 22 deletions
|
|
@ -210,7 +210,8 @@ export class KpiUserSpecialController extends Controller {
|
|||
* @param {string} id Id งานที่ได้รับมอบหมายพิเศษ
|
||||
*/
|
||||
@Get("{id}")
|
||||
async GetKpiUserSpecialDetail(@Path() id: string) {
|
||||
async GetKpiUserSpecialDetail(@Request() request: RequestWithUser, @Path() id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const getKpiUserSpecial = await this.kpiUserSpecialRepository.findOne({
|
||||
relations: ["kpiUserEvaluation"],
|
||||
where: { id: id },
|
||||
|
|
@ -263,7 +264,8 @@ export class KpiUserSpecialController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get()
|
||||
async GetKpiUserSpecial(@Query("id") id: string) {
|
||||
async GetKpiUserSpecial(@Request() request: RequestWithUser, @Query("id") id: string) {
|
||||
await new permission().PermissionGet(request, "SYS_KPI_LIST");
|
||||
const kpiUserSpecial = await this.kpiUserSpecialRepository.find({
|
||||
where: {
|
||||
kpiUserEvaluationId: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue