Commit graph

3787 commits

Author SHA1 Message Date
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
77b545d392 fix child privilege
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2026-02-06 15:12:52 +07:00
8a649086f7 fix: #2239
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2026-02-06 14:55:59 +07:00
harid
1696890f74 เพิ่มข้อมูล "อายุราชการ (กทม.)" #2285
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2026-02-06 14:47:47 +07:00
harid
5b726e69c8 Migrate add table profileSalaryBackup & เพิ่ม insert รักษาการ และช่วยราชการ #2292 2026-02-06 14:47:13 +07:00
203ec6cb84 fix: run temp to profileSalary
All checks were successful
Build & Deploy on Dev / build (push) Successful in 53s
2026-02-05 17:18:50 +07:00
af466df0d0 fix mode profileSalaryTemp to profileSalary
All checks were successful
Build & Deploy on Dev / build (push) Successful in 53s
2026-02-05 16:46:32 +07:00
631d634074 #2239
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2026-02-05 13:37:28 +07:00
d0241016fb disciption
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
2026-02-05 11:45:10 +07:00
561dc7f66c change method 2026-02-05 11:43:59 +07:00
39a07482cd add api find dna by keycloak
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s
2026-02-05 11:23:38 +07:00
harid
dbc46e2fb9 เพิ่ม return สถานะการทดลองงาน
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s
2026-02-05 10:14:49 +07:00
a487b73c3b setup auth middleware and sync code 2026-02-04 16:52:39 +07:00
harid
55085ab8d8 กรอง isDeleted
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2026-02-04 16:32:25 +07:00
e76e361981 init claude overview project 2026-02-04 16:18:45 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
22639e72c6 #migrate : add email phone To table issues
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2026-02-04 10:43:11 +07:00
0b09a99e42 add: sync-users-to-keycloak 2026-02-03 18:03:19 +07:00
harid
30bf5ad9e3 migrate add column isDeleted + API ลบข้อมูลฝึกอบรม/ดูงาน + การพัฒนารายบุคคล idp + รักษาการ Task #2276, #2279, #2278
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2026-02-03 17:44:30 +07:00
harid
bb18fed9ae migrate add commandOperator.orderNo & api ส่วนเจ้าหน้าที่ดำเนินการที่คำสั่ง #2220
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2026-02-03 12:22:55 +07:00
4ec334f0d4 fix: cronjob publish fail
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2026-02-03 10:27:48 +07:00
harid
ec04da5611 migrate create table commandOperator #2220 2026-02-02 18:33:30 +07:00
e5e407e122 fix: PUT /org/workflow/commander/operate isAct = true not response posExecutiveNameOrg
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2026-02-02 17:50:48 +07:00
0a3f0d9170 fix: return status of act position
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2026-02-02 16:30:24 +07:00
d7164b603a Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
* 'develop' of github.com:Frappet/bma-ehr-organization:
  #2166
2026-02-02 16:18:44 +07:00
9507040f75 created: script active act position 2026-02-02 16:18:32 +07:00
8b46a2f0f2 #2166
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2026-02-02 09:25:13 +07:00
e92321d360 fix: type avatar & avatarName, clear value null
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m39s
2026-01-31 12:37:25 +07:00