Commit graph

186 commits

Author SHA1 Message Date
harid
9dddaf40db Linear Flow (C-PM-01, C-PM-02, C-PM-14) #224
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
2026-06-18 15:48:52 +07:00
harid
c26fb19c1c Linear Flow (ทดสอบเฉพาะคำสั่ง C-PM-01) #224
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
2026-06-18 11:48:46 +07:00
harid
9f7803cc74 fix #2563
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m8s
2026-06-18 10:21:04 +07:00
harid
e6bdea2b20 อัตรากำลังลูกจ้างประจำ กรณีนั่งทับที่ต้องเป็นตำแหน่งจริง #2563
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
2026-06-17 15:42:48 +07:00
84fd3fb9e5 comment เคลียร์ redis 2026-06-15 18:26:34 +07:00
82c94073ff test เผยแพร่ (2) 2026-06-15 11:32:01 +07:00
cf4c8a6388 Merge branch 'dev' into adiDev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m9s
2026-06-15 10:59:28 +07:00
5c5fc08269 test เผยแพร่ 2026-06-15 10:58:56 +07:00
harid
03c57ddcce fix #251
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
2026-06-12 15:01:14 +07:00
ea93a223b1 Merge branch 'develop' into adiDev 2026-06-12 11:32:02 +07:00
7c1a838600 comment code 2026-06-12 11:31:33 +07:00
harid
edb23dd1fe fix กรณีนั่งทับต้องปั๊มตำแหน่งติดตัวลงรายการประวัติคนครอง (เผยแพร่ใหญ่) #2564
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s
2026-06-12 10:51:56 +07:00
1b1a234bfb Merge branch 'develop' into adiDev 2026-06-12 10:01:30 +07:00
055e24273d #1584 test 2026-06-12 10:01:07 +07:00
a830633c7a fix script move
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
2026-06-12 09:05:11 +07:00
harid
7686ec2eac กรณีนั่งทับที่ต้องเป็นตำแหน่งจริงของเขา #251
All checks were successful
Build & Deploy on Dev / build (push) Successful in 59s
2026-06-11 16:55:16 +07:00
harid
7d463806a9 ปั๊มประวัติคนครองกรณีมีแก้ไขชื่อและนามสกุล #244
All checks were successful
Build & Deploy on Dev / build (push) Successful in 58s
2026-05-27 16:41:56 +07:00
442ce20d80 #1588 and performance 2026-05-22 13:33:22 +07:00
b7c80ea6d4 fixed error 2026-05-21 14:03:30 +07:00
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