Commit graph

3875 commits

Author SHA1 Message Date
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
2298d4847d Migration Field Status Issues
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m1s
2026-05-08 10:01:02 +07:00
c1a4df63e5 fix save history posMaster null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
2026-05-06 17:09:55 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
a532fcf23d refactor(ProfileController): add subquery to sortBy commandNo for Post probation API 2026-05-06 16:38:56 +07:00
0ba5e36a4f fixed performance function GetOfficersByAdminRoleV3
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
2026-05-06 14:24:24 +07:00
362515a7ca fixed bug field 2026-05-06 13:36:43 +07:00
0052f5cb9b #235 เพิ่มบันทึกฟิวเมื่อลบคนครองและเผยแพร่ย่อย (แบบร่าง>>โครงสร้างปัจจุบัน) 2026-05-06 11:59: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
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