Commit graph

3866 commits

Author SHA1 Message Date
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
e6c3e80a3d เปลี่ยนปีคศเป็นพศคำสั่งช่วยราชการ (:4845)
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-05-05 12:02:40 +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
cba5991097 #2453
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m16s
2026-05-01 12:08:41 +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
harid
2aaaf53ab0 API ดึงข้อมูลระบบจากตำแหน่งรักษาการ
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-04-29 14:39:23 +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
7c6991abe5 fixed isGov
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m14s
2026-04-28 18:07:01 +07:00
5caa7db75a fixed
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m10s
2026-04-28 17:12:54 +07:00
190a5d665a fixed add isGovernment & commandDateAffect
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s
2026-04-28 16:53:15 +07:00
2a5fba2dfc fix import temp profile salary add isGovernment & dateGovernment 2026-04-28 16:31:08 +07:00
3163b701c9 reset password change profileId to keycloak
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s
2026-04-28 15:50:00 +07:00
harid
58afa49fcd insert profileSalary เดิมเข้ามายัง profile ใหม่ #232
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m8s
2026-04-28 15:17:16 +07:00
d82cd842f6 add reset password by admin & super_admin
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m10s
2026-04-28 15:14:47 +07:00
3833901bea fixed #2436 add link in noti request idp 2026-04-28 14:57:51 +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
b5fb2346ab fixed handle error connect keycloak 2026-04-28 11:05:00 +07:00
071140d98a fixed error update user keycloak data lost
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m17s
2026-04-28 10:03:51 +07:00
28319f443f add api get profile keycloak/position-checkin
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m26s
2026-04-27 19:13:21 +07:00
8705d1abf5 update 2026-04-24 16:15:47 +07:00
2cbc6569e3 update script sql 2026-04-24 13:41:10 +07:00
b9b73ca994 rollback code cronjob time
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m27s
2026-04-24 13:07:26 +07:00
ec6b4a7ac8 fix calculate
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m22s
2026-04-24 12:19:17 +07:00
c348a10207 Merge branch 'develop' into refactor/cronjob-position
* develop:
  fixed#1568 แก้ไขรายการตำแหน่งติดเงื่อนไข
  fix bug
  update path sql script
  #231 และ #2438 checkpoint
2026-04-24 11:39:23 +07:00
b8ef607078 Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
* 'develop' of github.com:Frappet/bma-ehr-organization:
  fix bug
  update path sql script
  #231 และ #2438 checkpoint
2026-04-24 11:38:57 +07:00
5980c140f0 fixed#1568 แก้ไขรายการตำแหน่งติดเงื่อนไข 2026-04-24 11:38:45 +07:00
da4fd18e08 fix bug
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m22s
2026-04-24 11:07:55 +07:00
1d16f78132 update path sql script
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m24s
2026-04-24 10:31:42 +07:00
8f83ab781b fix.save batch insert 2026-04-24 10:28:30 +07:00
d46dd03eaf Merge branch 'develop' into adiDev 2026-04-24 09:26:03 +07:00
harid
8912e83227 api import profileSalaryTemp #1570
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s
& Fix Report KK1 #2439
2026-04-23 16:31:22 +07:00
adisak
194d79bf04 #231 และ #2438 checkpoint 2026-04-21 17:37:17 +07:00
7e3982a96d fixed calculate tenure (สูตรคำนวนอายุราชการจาก diff date)
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-04-20 18:20:20 +07:00
5e52206987 update
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-04-20 17:23:15 +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
99bd789702 fixed#230 noti เพิ่มลิ้งค์ไปหน้ารายละเอียดแก้ไขข้อมูล "ขอแก้ไขทะเบียนประวัติ"
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m37s
2026-04-17 14:00:00 +07:00
harid
e7a973b764 fix issues #2428 #2383
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
2026-04-16 15:59:36 +07:00
harid
57dc171997 ปัดเศษจำนวนวันขึ้น
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m7s
2026-04-10 17:55:29 +07:00
harid
a07d436db8 fix ข้อมูลผู้พ้นจากราชการก่อนปี 2568 ระบบไม่เก็บ logs #2383
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m9s
2026-04-10 16:00:12 +07:00