Commit graph

3710 commits

Author SHA1 Message Date
1a9947d362 fix error Invalid time value
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m16s
2026-02-13 17:03:43 +07:00
0a3deb4293 fix
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
2026-02-13 16:56:56 +07:00
7029b18a97 fix: error Invalid time value
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m16s
2026-02-13 16:49:00 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
307be83574 fix: path url attachmentPayloads == 'sub-file'
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m14s
2026-02-13 15:10:01 +07:00
a16ae79c7e fix: ไฟล์แนบท้ายดาวน์โหลดไม่ได้
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m20s
2026-02-13 12:50:35 +07:00
74b2694aef Merge branch 'develop' into task/#1542 2026-02-13 09:30:06 +07:00
cfd5ced28a feat: isAllRoot 2026-02-13 09:29:31 +07:00
harid
9a1acc0b7d อัปเดตจำนวนสิทธิ์การลาเมื่อผ่านทดลองงานฯ #2304
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m19s
2026-02-12 18:31:24 +07:00
d555c70af9 fix: script insert
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m23s
2026-02-12 18:18:29 +07:00
0f4bee4489 fix script 2026-02-12 18:06:46 +07:00
22fd9152bf fix: new root
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m19s
2026-02-12 17:10:44 +07:00
d916334537 fix bug: add ancestorDNA org all leavel
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m11s
2026-02-12 15:39:16 +07:00
82ecf2cb81 fix: save posMasterHistory null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m19s
2026-02-12 14:06:07 +07:00
ed70999eac Merge branch 'feat/org-move-draf-current' into develop
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m18s
* feat/org-move-draf-current:
  fix: bug save posMasterHistory, tuning performance script
2026-02-12 13:17:50 +07:00
ef17236eb0 fix: bug save posMasterHistory, tuning performance script 2026-02-12 13:16:43 +07:00
harid
3e684df6c5 Merge branch 'develop' into develop-Bright
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m19s
2026-02-12 12:12:25 +07:00
harid
64aca4f5fa Migrate move isDeleted in profileSalary 2026-02-12 12:12:19 +07:00
harid
f03ccb78ac Migrate move isDeleted in profileSalary 2026-02-12 12:10:14 +07:00
9927c73547 Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m10s
* 'develop' of github.com:Frappet/bma-ehr-organization:
  Migration add fields isDeleted #210
2026-02-12 11:53:55 +07:00
13fa8cbf24 fix: script case nextholder id null 2026-02-12 11:53:24 +07:00
harid
65e3740cc2 Migration add fields isDeleted #210 2026-02-12 11:47:53 +07:00
3c9e3a1bb6 fix: script org move draf to current save posMasterHistory
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m57s
2026-02-12 10:38:16 +07:00
7694a83d5a fix
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m29s
2026-02-11 16:50:32 +07:00
harid
b11d7e45e2 Fix bug แก้ไขอัตรากำลัง แล้วระบบแจ้ง error #211
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s
2026-02-11 15:45:03 +07:00
1f809d3e22 fix: #2234
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m26s
2026-02-11 15:13:40 +07:00
17760212d1 Merge branch 'feat/org-move-draf-current' into develop
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m47s
* feat/org-move-draf-current:
  fix time out
2026-02-11 13:11:10 +07:00
c5e600900c fix time out 2026-02-11 13:10:42 +07:00
harid
a3d9d40a52 api getProfile (No token)
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m15s
2026-02-11 11:31:09 +07:00
harid
073da70a68 move isProbatin
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m22s
2026-02-11 10:40:01 +07:00
harid
5bee360280 add orgDnaId
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m17s
2026-02-11 09:52:35 +07:00
harid
4f900ba4d2 no message
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m20s
2026-02-11 09:47:45 +07:00
520b42f2c7 fix: script update profile
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m10s
2026-02-10 17:43:01 +07:00
c344804936 Merge branch 'develop' into feat/org-move-draf-current
* develop:
  Fix Script #2292
  Fix Script #2292
  comment ห้ามลบเจ้าหน้าที่ลำดับที่ 1 #2220
  optimize sort #2260
2026-02-10 16:24:34 +07:00
3b97e52bd6 complete script move draf to current 2026-02-10 16:23:52 +07:00
harid
19d7799b5a Fix Script #2292
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2026-02-10 13:19:09 +07:00
harid
ecfb65e159 Fix Script #2292
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s
2026-02-10 11:33:50 +07:00
harid
d6bb9be93d comment ห้ามลบเจ้าหน้าที่ลำดับที่ 1 #2220
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m3s
2026-02-10 10:44:58 +07:00
harid
47f7f4d55e optimize sort #2260
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2026-02-09 17:50:53 +07:00
1cab2b3afc Merge branch 'develop' into feat/org-move-draf-current
* develop:
  add fields
2026-02-09 17:46:37 +07:00
f9d626a499 add test, and fix script 2026-02-09 17:45:50 +07:00
638362df1c feat: improve move-draft-to-current with differential sync
Implement differential sync for organization structure and positions
instead of delete-all-and-insert-all approach.

Changes:
- Add OrgIdMapping and AllOrgMappings interfaces for tracking ID mappings
- Implement syncOrgLevel() helper for differential sync per org level
- Add syncPositionsForPosMaster() helper for position table sync
- Process org levels bottom-up (Child4→Child3→Child2→Child1→Root)
- Use ancestorDNA matching with Like operator for descendant sync
- Cascade delete positions before deleting org nodes
- Batch DELETE/UPDATE/INSERT operations for better performance
- Track draft→current ID mappings for position updates
- Add comprehensive documentation in docs/move-draft-to-current.md

Benefits:
- Preserve IDs for unchanged nodes (better tracking)
- More efficient (fewer database operations)
- Better data integrity with proper FK handling
- Sync all descendants under given rootDnaId

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 12:35:59 +07:00
harid
f2ab1ec91e add fields
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
2026-02-09 11:13:15 +07:00
22fc43fe17 Merge branch 'develop' into feat/org-move-draf-current
* develop:
  fix: ช่วยรายการและรักษาการ endDate null
  fix salaryId set null
  fix script move positionSalaryTemp to positionSalary
2026-02-09 09:55:30 +07:00
922a0ab1c2 fix: ช่วยรายการและรักษาการ endDate null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2026-02-06 22:11:07 +07:00
e750b39639 fix salaryId set null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s
2026-02-06 21:58:45 +07:00
2627c58244 fix script move positionSalaryTemp to positionSalary
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2026-02-06 21:47:56 +07:00
3177ffc42f merge 2026-02-06 21:46:41 +07:00
9aa0a97a53 fix script
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2026-02-06 17:02:08 +07:00
528f8f75c1 add query 2026-02-06 16:50:31 +07:00
256296672d privilege
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2026-02-06 15:25:54 +07:00