Commit graph

167 commits

Author SHA1 Message Date
44793fbfbb api web service add join for show name 2026-05-21 13:44:03 +07:00
e374f2e339 fixed service crash
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-05-20 20:40:09 +07:00
9a5184bb55 add script delete org old 2026-05-20 17:51:15 +07:00
0e80acfb1b ลบ log ออกเพื่อให้สามารถดู log อื่นๆ ได้ง่ายขึ้น 2026-05-20 11:26:27 +07:00
harid
e04d1ad7d3 Migrate + API ดึงรายชื่อลูกจ้างประจำตามประวัติตำแหน่ง
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-05-20 10:57:18 +07:00
af2bd5054f feat: clear menu and role cache when organization structure is published
Add Redis cache clearing to handler_org function to clear all menu_* and role_* keys
after successfully publishing organization structure changes. This ensures users
see updated permissions and menus immediately after publish.

- Add promisify import and Redis client setup
- Add clearMenuAndRoleCache helper function
- Call cache clearing before successful return

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 11:37:57 +07:00
harid
60191a23d7 fix แสดงกรณีรักษาการแทนผิด #2472
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s
2026-05-12 11:51:57 +07:00
7a6cf119bd update 2473
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-05-11 13:25:26 +07:00
7104ce4f34 fixed condition check
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-05-08 14:47:58 +07:00
1c5faecf04 fixed throw error 2026-05-08 14:45:17 +07:00
0e8808e371 fixed remove PostRetireToExprofile ย้ายไปรันใน cronjob ที่เดียว 2026-05-08 14:37:40 +07:00
afc58b767e Merge branch 'develop' into refactor/handler_org
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m13s
* develop:
  cronjob ส่งข้อมูลผู้เกษียณไปให้ระบบพ้นราชการ #2330
2026-05-05 18:12:18 +07:00
6c1e4a1e42 Optimize handler_org batch writes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-05 18:11:55 +07:00
harid
93d4857ea1 cronjob ส่งข้อมูลผู้เกษียณไปให้ระบบพ้นราชการ #2330
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m17s
2026-05-05 16:43:47 +07:00
750947f34f 1. เพิ่ม helper สำหรับ build clone rows จาก metadata ของ repository แล้ว pre-generate UUID ให้ parent และ child ล่วงหน้า
2. เปลี่ยน inner clone flow เป็น cloneEmployeeNodeBatch(...) ที่ทำงานเป็นชุด แทนการ save() parent แล้ว save() children ทีละรายการ
3. ใช้ insertInChunks(...) สำหรับ batch insert ของ parent rows และ EmployeePosition rows
4. ใช้ helper เดียวกันซ้ำทุกระดับของ tree (root, child1, child2, child3, child4) เพื่อลด code duplication และคง mapping ของ destination org ids ตาม logic เดิม
2026-05-05 16:38:54 +07:00
e7e4e2075b 1. รวม query_employeePosMaster กับ query_employeeTempPosMaster ให้ดึงแบบขนานด้วย Promise.all
2. ตัด full-table scan ของ ProfileEmployee ออก โดยเปลี่ยนจาก find({ select: ["id"] }) ทั้งตาราง มาเป็น query เฉพาะ current_holderId ที่อ้างถึงจริงในชุดข้อมูล publish
3. เก็บ normalization ของ _orgemployeePosMaster และ _orgemployeeTempPosMaster ไว้หลัง query ชุดเดียวกัน ทำให้ block นี้กระชับขึ้นและลด read cost ที่ไม่จำเป็น
2026-05-05 16:25:06 +07:00
b5c75379ff fixed error and not retry 2026-05-05 15:59:39 +07:00
3335c4f44c refactor transaction
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-05-05 12:32:21 +07:00
869bb093a3 refactor code function handler_org 2026-05-05 12:08:37 +07:00
fd7a2af0a1 rollback code handler_org
Some checks failed
Build & Deploy on Dev / build (push) Has been cancelled
2026-05-01 17:08:53 +07:00
ef279df452 fix handler_org error use temporary table
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
2026-05-01 00:22:16 +07:00
7827e19254 fix handler_org and remove retry
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m10s
2026-05-01 00:03:39 +07:00
ac6b487d66 fix handler_org and add transaction
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-04-30 22:41:29 +07:00
b5e80ba1e9 fix error
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m31s
2026-04-30 20:15:37 +07:00
519fd97968 fix performance
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-04-30 16:35:00 +07:00
adisak
3ccdb691f6 log test publish
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m15s
2026-04-30 11:48:36 +07:00
d822626404 แก้ไข rabbitMQ เผยแพร่โครงสร้างค้าง
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-04-29 14:27:50 +07:00
2417c90dc2 add api sync-missing-emptype
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s
2026-04-28 11:38:47 +07:00
f1c8ecf699 insert position to profile
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m8s
2026-04-20 16:01:38 +07:00
adisak
28b5408d5b #2427 and migration 2026-04-20 08:05:16 +07:00
harid
7f3408e2f5 API permission with acting positions
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m36s
2026-04-17 14:18:54 +07:00
harid
2fd99aaa94 fix ประวัติคนครอง #2405 2026-04-02 17:02:20 +07:00
adisak
38e5ed0e91 #2387 [กทม]. ระบบโครงสร้างอัตรากำลัง >> กรณีนั่งทับตำแหน่ง 2026-04-02 12:04:33 +07:00
harid
bc83a2bc40 แก้ข้อความ/ตัดข้อมูลรายงาน ทปอ.สามัญ #2274 2026-03-20 11:02:53 +07:00
harid
5ef5f7d4ed fix bug #2183
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m22s
2026-03-12 14:53:45 +07:00
harid
6a07841763 fix bug ออกคำสั่งยกเลิกลาออก #2183 + api แก้ไขเปลี่ยนผู้สร้างคำสั่ง #1551
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m20s
2026-03-10 18:12:58 +07:00
76fc488d25 fix sync to keycloak 2026-03-06 19:11:20 +07:00
2951630b7b fix update prefix and profileId
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m45s
2026-02-27 15:24:51 +07:00
e4f46a1762 fix condition org revision current id of perm and term
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m48s
2026-02-27 11:57:27 +07:00
49a8494a8d fix emp temp and add script clear org dna at keycloak 2026-02-27 11:40:56 +07:00
b714dfe239 add script update org and sync keycloak, setup time run cronjob
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m26s
2026-02-27 10:05:13 +07:00
c5c19b6d5e Revert "fix: sync and script keycloak"
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m11s
This reverts commit d667ad9173.
2026-02-26 23:16:43 +07:00
d667ad9173 fix: sync and script keycloak
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m59s
2026-02-26 23:09:22 +07:00
1c629cc6e0 Revert "Merge branch 'feat/keyloak-token-data' into develop"
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m21s
This reverts commit 1b3806c6f7, reversing
changes made to 79dbba2c89.
2026-02-26 22:37:03 +07:00
1b3806c6f7 Merge branch 'feat/keyloak-token-data' into develop
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m18s
* feat/keyloak-token-data:
  completed sync  script update keycloak
  setup auth middleware and sync code
  init claude overview project
  add: sync-users-to-keycloak
2026-02-26 21:25:43 +07:00
625885973e completed sync script update keycloak 2026-02-26 21:25:07 +07:00
d85d245273 #2221 2026-02-23 16:37:50 +07:00
harid
637e995915 Fix bug #54
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m34s
2026-02-20 11:46:46 +07:00
a80fe85032 fix: bug query 2026-02-19 15:41:49 +07:00
ef17236eb0 fix: bug save posMasterHistory, tuning performance script 2026-02-12 13:16:43 +07:00