Commit Graph

16 Commits

Author SHA1 Message Date
hpd840321 abc690af09 docs: rewrite implementation log as deployment step document
原内容为开发阶段的git操作日志,现重写为面向运维人员的部署实施步骤文档

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 09:32:55 +08:00
hpd840321 db2cb1966c docs: add visitor floor policy user guide and implementation log
- 功能清单与使用手册:23项功能清单、策略配置说明、部署运维、22项验收检查表

- 实施操作日志:9阶段操作流水、commit清单、关键文件索引、103服务器全库备份记录

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 09:27:57 +08:00
huangping f7c042ca8f docs: component-org 上线日志分析报告与楼层策略触发优化方案 2026-05-10 15:32:44 +08:00
hpd840321 203005aafb refactor: move [POLICY] entry to DEBUG, add [DETAIL-POLICY-CHECK] at caller
- Downgrade [POLICY] entry from INFO→DEBUG (redundant with caller logs)
- Add [DETAIL-POLICY-CHECK] debug log in detail() before policy check
- Enables distinguishing caller context: [DETAIL-POLICY] vs [LIST-PAGE-POLICY]
2026-05-10 13:22:21 +08:00
hpd840321 09b1bbe51e fix: resolve GroupPersonSynPoolProperties bean conflict via TypeFilter exclude
- Add GroupPersonSynExcludeFilter to @ComponentScan excludeFilters
- Filters out cn.cloudwalk.service.organization.config.GroupPersonSyn*
  from component scanning, keeping only the starter module's version
- Service now starts successfully from fat JAR without bean conflicts
2026-05-10 12:32:54 +08:00
hpd840321 c7d4ac4a5c fix: bundle recognition-logback.xml into fat JAR as classpath resource
- Copy recognition-logback.xml to starter/src/main/resources/
- Set logging.config=classpath:recognition-logback.xml
- Eliminates dependency on external --logging.config parameter
2026-05-10 12:01:08 +08:00
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 368d14de0e feat: add release build script for component-organization service
- release-component-organization.sh: Maven build + DDL + config + ZIP
- Includes organization-side active policy SQL (唯一策略维护点)
- Naming: ninca-common-component-organization-{ver}-xinghewan-{date}
2026-05-10 06:54:22 +08:00
hpd840321 73dc34ec2c fix: update DDL policy_type DEFAULT from INTERSECT_ALLOWLIST to REPLACE_ALLOWLIST
- organization_tenant_visitor_floor_policy.sql: DEFAULT REPLACE_ALLOWLIST
- tenant_visitor_floor_policy.sql: @deprecated marker + DEFAULT fix
- Align DDL schema with V2 replacement semantics
2026-05-10 06:43:15 +08:00
hpd840321 03752480a4 feat: normalize policy data (REPLACE_ALLOWLIST), add org-side DDL to release bundle, add release plan
- Update release script: include org-side active DDL/seed + deprecation README
- Normalize seed SQL: policy_type=REPLACE_ALLOWLIST, uniform remark format
- Add version release plan and naming conventions spec
- Disable elevator-side tenant_visitor_floor_policy (V2 no longer queries it)
2026-05-10 01:14:03 +08:00
hpd840321 42c4a9fd6b docs: mark elevator-side tenant policy SQL as deprecated, add guangfa visitor floor design
- Deprecate elevator-side tenant_visitor_floor_policy SQL files
  (V2 queries only component-organization library)
- Add guangfa 28F visitor floor design spec (table-driven approach A)
- Add complete database ER diagram (14 DBs, 537 tables)
- Add implementation plan for guangfa visitor floor policy
- Code walkthrough docs for visitor floor policy analysis
2026-05-09 23:56:12 +08:00
hpd840321 721e88dd89 docs: record reorganization history (master 10f651c..1ab5cad, 16 commits)
Parent-repo master branch reorganization:
- 2026-05-07: Rename Chinese dirs (星中心→runtime, 部署包→packages, 源码→source)
- 2026-05-07: Move nginx/artifacts from submodule to top-level
- 2026-05-07: Archive decompiled sources, frontend backups, misc
- 2026-05-01: Docker Compose test infra, V2 build scripts, API parity tools
- 2026-05-05: Fix policy evaluation bug
Original commits preserved on local master.
2026-05-09 09:57:16 +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