Commit Graph

17 Commits

Author SHA1 Message Date
反编译工作区 1352850cc3 fix: CpImageStorePersonSynManager cleared (12→0) via RedisCallback re-apply
Total: 200→122→110 (-90, -45%)
2026-05-06 00:38:17 +08:00
反编译工作区 9234c98ef2 fix: replace PersonAuditServiceImpl with cleaned alt version (38→16)
Alt version preserves generics (0 raw List, 0 Object casts).
Pre-cleaned: lambda fixes + computeIfAbsent fix + array comma removal.

Total: 200→122 (-78, -39%)
2026-05-06 00:34:19 +08:00
反编译工作区 6376384672 fix: hybrid approach — keep CFR for files where alt has import/lambda issues
Restored CFR versions for: OrganizationServiceImpl, ValidateManager,
PersonAuditServiceImpl, DeviceGroupRefChangeEventHandler,
CommonAppExportTaskServiceImpl, CommonAppFileManageServiceImpl,
CommonAppExportExecuteTask

Deleted re-appeared orphans: CpImageStoreServiceImpl, SelfRegistryHandler

Applied batch fixes: map(()), computeIfAbsent(()), (Object) removal,
Lists/Sets.newHashSet cleanup

Result: 200→144 errors (-56, -28%)
2026-05-06 00:32:57 +08:00
反编译工作区 5f22d6f8f7 fix: replace 43 service files with alt decompiler versions
Alt source (JD-GUI/Procyon based): preserves generics, 0 raw Lists, 0 (Object) casts
But introduces lambda corruption (.map(()), .forEach(()), computeIfAbsent(())

Replaced 43 files where alt has significantly fewer errors:
- OrganizationServiceImpl: 141 (Object) casts → 0
- CpImageStoreToolServiceImpl: 79 (Object) casts → 0
- ImgPersonServiceImpl: 37 (Object) casts → 0
- And 40 more files with similar improvements

Remaining: 200 errors (different distribution than CFR baseline)
- Mostly lambda corruption from alt decompiler
- Fixable with targeted .map(())→orElse, forEach(())→reconstruction
2026-05-06 00:26:16 +08:00
反编译工作区 83c3050ef2 fix: delete 7 orphan files + P0-P3 fixes
Orphan analysis: 134 files → 5+2 orphan files identified and removed:
- CpImageStoreServiceImpl, SelfRegistryHandler, AreaTypeServiceImpl
- ImgPersonBatchServiceImpl, ImgPersonBatchDetailServiceImpl
- OrganizationTypeServiceImpl, CpDeviceImagePersonServiceImpl

All 7 have NO callers in module or elevator app.

P0-P3 verified clean:
- CpOrgDevieKitServiceImpl (54→0)
- CpImageStorePersonValidateManager (36→0)
- OrganizationServiceImpl (32→0)
- CpImageStorePersonSynManager (38→10)

Remaining: 200 errors in service module (CFR systemic generic loss).
Interface + Data modules: BUILD SUCCESS.
2026-05-06 00:01:00 +08:00
反编译工作区 12846820dd fix: P1 partial — CpImageStorePersonSynManager 38→10
Fixed:
- RedisCallback cast on 6 execute() calls
- Set cast to Set<String> in checkHandleSynTaskException (4 locations)
- Removed (Object) from hasKey call
- Fixed Lists.newArrayList((Object[])new String[]{x}) → Lists.newArrayList(x) (2 locations)
- Added RedisCallback import

Remaining: 10 errors — lambda effectively-final violations (Java 8)
2026-05-05 23:49:16 +08:00
反编译工作区 50af6e739d fix: P0+P2+P3 — CpOrgDevieKit, ValidateManager, OrganizationServiceImpl clean
P0: CpOrgDevieKitServiceImpl (54→0)
- Fixed 10 $\$ artifacts with correct variable names
- Typed 7 raw Collection/List/Set declarations
- Removed (Object) casts from redisTemplate calls

P2: CpImageStorePersonValidateManager (36→0)
- Added RedisCallback cast for execute() ambiguity
- Typed Map.Entry for-each with proper generics
- Fixed ternary type mismatch (List<Object>→SyncPersonLocal)
- Typed waitAddValidateList as List<GroupPersonRef>

P3: OrganizationServiceImpl (32→0)
- Typed 7 raw List declarations (refDTOS, data, organizations, etc)
- Fixed ArrayList<> vs List<> assignment
- Typed passableArea/officeArea streams
2026-05-05 23:47:18 +08:00
反编译工作区 99ecbbd6f5 fix: for-each cast + methodref fixes in 5 service files
OrganizationServiceImpl: 62->32 errors (for-each casts + methodref lambdas)
CpImageStorePersonSynManager: 44->38 errors (for-each casts)
CpImageStorePersonValidateManager: 36->28 errors (explicit type casts + lambdas)
OrganizationUnitTypeServiceImpl: 28->14 errors (typed List declarations)
CpImageStorePersonTxHandler: methodref->lambda fix

All fixes are decompile artifacts - explicit (List<Type>) casts at
for-each loops and method reference conversions to lambdas.
2026-05-05 23:15:50 +08:00
反编译工作区 01218394f0 fix: auto-fix decompile type errors in component-org service module
- Delete 5 duplicate Java files in wrong nested cn/ directory
- Fix 15 raw List declarations with generic type params in OrganizationServiceImpl
- Apply (CloudwalkResult) raw cast to 107 fail() + 165 success() calls
  across all 46 service files via ast-grep
- Remaining: 106 Object->cast and other manual-context errors
2026-05-05 22:50:58 +08:00
反编译工作区 18810ef9c6 feat: add component-organization decompiled Maven module
- Reactor POM with 4 sub-modules (interface/data/service/web)
- all-lib/ with 255 extracted JARs from original fat JAR
- .m2-isolated/ repo with 252 installed JARs
- interface module: BUILD SUCCESS (325 classes)
- data module: BUILD SUCCESS (120 classes)
- service module: 200 type errors (CFR decompilation artifacts)
- install-libs.sh for isolated repo setup
- Feign fallback inner classes separated
2026-05-05 22:36:52 +08:00
反编译工作区 3cc487cd3b chore: final comment cleanup 2026-05-05 20:13:57 +08:00
反编译工作区 018f1d1a93 chore: add chinese comments to all 564 component-org files
- Auto-generate class-level Chinese comments based on annotations
  and package paths (@RestController → Web控制器, @FeignClient → Feign客户端, etc.)
- Remove redundant // comments where /** Javadoc already exists
- Preserve existing hand-written Chinese Javadoc
2026-05-05 20:13:41 +08:00
反编译工作区 c817f5785d chore: convert unicode escapes to chinese (123 files)
- Convert \uXXXX (single backslash) to actual Chinese characters
- Preserve \uXXXX (double backslash) regex patterns
- All logger messages, enum descriptions, and constants now readable
2026-05-05 20:09:17 +08:00
反编译工作区 d134b5c4a7 chore: cleanup decompilation artifacts, add chinese comments
- Fix Objects.equals → direct .equals for 00000000 code checks (11 files)
- Remove (Throwable)e casts (158 occurrences)
- Add Chinese Javadoc to: ImgPersonServiceImpl, PersonController,
  ImgStorePersonBaseResult, ElevatorFeignClient, ElevatorAppFeignClient,
  CrkAccessFeignClient
- JAR comparison verified: 56 methods match, structural equivalence
- Cleanup script removed
2026-05-05 20:06:25 +08:00
反编译工作区 9749e7531e docs: add policy redesign doc with sequence diagrams
- Full business logic redesign with UC-01/UC-02 sequence diagrams
- Policy ALWAYS evaluated, intersect candidate with allow
- Scenario matrix covering all combinations
- v2.0.19 implementation with intersection fix
2026-05-05 20:05:37 +08:00
反编译工作区 2310d3f059 chore: remove decompilation artifacts from component-organization src
- Strip CFR header comments (Decompiled with CFR, Could not load)
- Remove redundant (Throwable)e casts in logger and throw calls
- Cleanup script removed after use
2026-05-05 20:01:32 +08:00
反编译工作区 5c7c540e74 chore: add maven-ninca-common-component-organization module
- Decompiled from ninca-common-component-organization-V2.9.2_20210730.jar
- 4 sub-modules: web, service, data, interface (564 Java files)
- Contains POST /component/person/detail implementation
- floorList assembled via elevatorFeignClient.listByImageId()
2026-05-05 19:58:34 +08:00