Commit Graph

5 Commits

Author SHA1 Message Date
hpd840321 ee691e1b4b fix: move graceful shutdown listener to correct class location 2026-05-10 11:48:59 +08:00
hpd840321 3f1a23a15e fix: remove _zh_CN suffix from messages basename, add graceful shutdown drain
- messages basename: drop _zh_CN suffix (Spring auto-appends locale),
  eliminating repeated ResourceBundle WARN during every request
- OrganizationServer: add @EventListener(ContextClosedEvent)
  with 30s drain delay to let in-flight requests complete
  before bean destruction begins
2026-05-10 11:44:11 +08:00
hpd840321 f350f318f5 feat: add comprehensive logging to ImgPersonServiceImpl external calls and error paths
detail():
  - [DETAIL] entry log with personId+businessId
  - [DETAIL] person not found warning
  - [DETAIL] zoneFeignClient/vehicleFeignClient failure warnings
  - [DETAIL] query error with personId context

page():
  - [PAGE] query result count
  - [PAGE] organizationService.getOrg failure warning
  - [PAGE] query error with context

listByPage():
  - [LIST-PAGE] listByImageId failure warning
  - [LIST-PAGE] no orgFloor → acrossDay debug

add()/addExt():
  - [ADD] error logs with personId context
2026-05-10 09:50:42 +08:00
hpd840321 d8bcc14563 feat: add policy tracing logs across organization component and elevator
TenantVisitorFloorPolicyService:
  - [POLICY-HIT] log when policy matched with orgId, policyId, allowZones
  - [POLICY-MISS] debug log when no policy found for orgId
  - [POLICY-EMPTY] warn when allow_zone_ids parsed empty
  - [POLICY-FALLBACK] warn on query failure with orgId context
  - [POLICY-RESULT] info on matched orgId and zones in batch check

ImgPersonServiceImpl.detail():
  - [DETAIL] log raw floorList from listByImageId
  - [DETAIL-POLICY] log floorList REPLACED: before→after with orgIds
  - [DETAIL] warn when listByImageId fails

ImgPersonServiceImpl.listByPage():
  - [LIST-PAGE-POLICY] log policy hit with zone count and default
  - [LIST-PAGE-XHW] debug log for 40F/6F hardcoded branch
  - [LIST-PAGE-FILTER] debug log when visitor label filtered

PersonRuleServiceImpl.addVisitor():
  - [ADDV-DETAIL] log detail floorList and orgIds
2026-05-10 09:37:51 +08:00
hpd840321 7b2bd307f1 Initial commit: reorganized source tree
- backend/: 13 Maven modules (cw-elevator-application, cloudwalk-cloud, intelligent-cwoscomponent, ninca-crk, etc.)
- frontend/: 4 Vue projects (elevator-front, cwos-portal, alarm-front, front_acs) + decompiled + scripts
- scripts/: build, test-env, tools (Docker Compose, service templates, API parity)
- docs/: AGENTS.md, superpowers specs, architecture docs
- .gitignore: standard Java/Maven exclusions

Moved from legacy maven-*/ root layout to backend/ organized structure.
2026-05-09 09:56:45 +08:00