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
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
Build & Deploy on Dev / build (push) Successful in 1m5s
2026-06-12 09:05:11 +07:00
harid
7686ec2eac
กรณีนั่งทับที่ต้องเป็นตำแหน่งจริงของเขา #251
Build & Deploy on Dev / build (push) Successful in 59s
2026-06-11 16:55:16 +07:00
harid
7d463806a9
ปั๊มประวัติคนครองกรณีมีแก้ไขชื่อและนามสกุล #244
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
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 ดึงรายชื่อลูกจ้างประจำตามประวัติตำแหน่ง
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
Build & Deploy on Dev / build (push) Successful in 1m0s
2026-05-12 11:51:57 +07:00
7a6cf119bd
update 2473
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-05-11 13:25:26 +07:00
7104ce4f34
fixed condition check
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
...
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
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
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
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
Build & Deploy on Dev / build (push) Successful in 1m7s
2026-05-01 00:22:16 +07:00
7827e19254
fix handler_org and remove retry
Build & Deploy on Dev / build (push) Successful in 1m10s
2026-05-01 00:03:39 +07:00
ac6b487d66
fix handler_org and add transaction
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-04-30 22:41:29 +07:00
b5e80ba1e9
fix error
Build & Deploy on Dev / build (push) Successful in 1m31s
2026-04-30 20:15:37 +07:00
519fd97968
fix performance
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-04-30 16:35:00 +07:00
adisak
3ccdb691f6
log test publish
Build & Deploy on Dev / build (push) Successful in 1m15s
2026-04-30 11:48:36 +07:00
d822626404
แก้ไข rabbitMQ เผยแพร่โครงสร้างค้าง
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-04-29 14:27:50 +07:00
2417c90dc2
add api sync-missing-emptype
Build & Deploy on Dev / build (push) Successful in 1m4s
2026-04-28 11:38:47 +07:00
f1c8ecf699
insert position to profile
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
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
Build & Deploy on Dev / build (push) Successful in 1m22s
2026-03-12 14:53:45 +07:00
harid
6a07841763
fix bug ออกคำสั่งยกเลิกลาออก #2183 + api แก้ไขเปลี่ยนผู้สร้างคำสั่ง #1551
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
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
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