recheck เมนู ข้าราชการ กทม. สามัญ (list to get)
This commit is contained in:
parent
7430c3c86f
commit
271e6964b3
17 changed files with 24 additions and 24 deletions
|
|
@ -145,7 +145,7 @@ export class ProfileSalaryController extends Controller {
|
|||
public async salaryHistory(@Path() salaryId: string, @Request() req: RequestWithUser) {
|
||||
const _record = await this.salaryRepo.findOneBy({ id: salaryId });
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
}
|
||||
const record = await this.salaryHistoryRepo.findBy({
|
||||
profileSalaryId: salaryId,
|
||||
|
|
@ -241,9 +241,9 @@ export class ProfileSalaryController extends Controller {
|
|||
@Get("swap/{direction}/{salaryId}")
|
||||
public async swapSalary(@Path() direction: string, salaryId: string, @Request() req: RequestWithUser) {
|
||||
const source_item = await this.salaryRepo.findOne({ where: { id: salaryId } });
|
||||
if (source_item) {
|
||||
await new permission().PermissionOrgUserList(req, "SYS_REGISTRY_OFFICER", source_item.profileId);
|
||||
}
|
||||
// if (source_item) {
|
||||
// await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", source_item.profileId);//ไม่แน่ใจOFFปิดไว้ก่อน
|
||||
// }
|
||||
if (source_item == null) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
const sourceOrder = source_item.order;
|
||||
if (direction.trim().toUpperCase() == "UP") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue