How hz-xigang/server works
XG-WMS is a manufacturing warehouse-management application for PC and PDA clients. Users manage identities and permissions, synchronize ERP orders, generate and print production labels, then execute receiving, palletizing, moves, transfers and shipping with label-level inventory tracking. The README documents these capabilities and cross-module dependencies; the sampled source confirms production-order conversion, template persistence and stock-in orchestration. Many controllers and warehouse services are not sampled, so their detailed call paths are not asserted.
Main entry points: StockInService.kt Receiving and stock-in · U8StockInSyncService.kt U8 inventory posting · XgApplication.java Web application · ProdOrderSyncService.kt Order synchronization
Components 19
Access and setup
- Web application
xg-app/src/main/java/com/gz/xg/XgApplication.java - Identity and RBAC
xg-system/src/main/java/com/gz/xg/service/SysUserService.kt - Location records
xg-basic/src/main/java/com/gz/xg/domain/entity/LocArchive.java - Print templates
xg-basic/src/main/java/com/gz/xg/service/FileTempService.kt
ERP and orders
- U8 order adapter
xg-u8/src/main/java/com/gz/xg/u8/service/U8OrderSyncService.kt - Order synchronization
xg-order/src/main/java/com/gz/xg/service/ProdOrderSyncService.kt - Production and shipping orders
xg-order/src/main/java/com/gz/xg/domain/entity/ProdOrder.java - U8 inventory posting
xg-warehouse/src/main/java/com/gz/xg/service/U8StockInSyncService.kt
Warehouse operations
- Production labels
xg-warehouse/src/main/java/com/gz/xg/domain/view/VProdTag.java - Barcode and PDF output
xg-print/src/main/java/com/gz/xg/report/ProdTagReport.java - Receiving and stock-in
xg-warehouse/src/main/java/com/gz/xg/service/StockInService.kt - Live inventory
xg-warehouse/src/main/java/com/gz/xg/domain/entity/StockIn.java - Pallet and unpack
xg-warehouse/src/main/java/com/gz/xg/service/PalletService.kt - Moves and transfers
xg-warehouse/src/main/java/com/gz/xg/controller/StockMoveController.kt - Shipping and stock-out
xg-warehouse/src/main/java/com/gz/xg/controller/StockOutController.kt
Shared runtime
- Shared context and utilities
xg-shared/src/main/java/com/gz/xg/UserContext.kt - Business numbering
xg-system/src/main/java/com/gz/xg/service/SysSequenceService.kt
Other components
- PC / PDA user
- U8 ERP
Connections 22
- PC / PDA user → Web application: submits requests
README.md - Web application → Identity and RBAC: routes access
README.md - PC / PDA user → Print templates: manages templates
README.md - PC / PDA user → Location records: queries locations
README.md - U8 ERP → U8 order adapter: serves order data
README.md - U8 order adapter → Order synchronization: converts orders
xg-order/src/main/java/com/gz/xg/service/ProdOrderSyncService.kt - Order synchronization → Production and shipping orders: saves orders
xg-order/src/main/java/com/gz/xg/service/ProdOrderSyncService.kt - Order synchronization → Business numbering: generates numbers
xg-order/src/main/java/com/gz/xg/service/ProdOrderSyncService.kt - Production and shipping orders → Production labels: supplies order data
README.md - Production labels → Barcode and PDF output: renders labels
README.md - Print templates → Barcode and PDF output: provides templates
README.md - PC / PDA user → Receiving and stock-in: executes receiving
README.md - Receiving and stock-in → Location records: validates location
xg-warehouse/src/main/java/com/gz/xg/service/StockInService.kt - Receiving and stock-in → Live inventory: adds stock
xg-warehouse/src/main/java/com/gz/xg/service/StockInService.kt - PC / PDA user → Pallet and unpack: handles pallets
README.md - PC / PDA user → Moves and transfers: moves stock
README.md - PC / PDA user → Shipping and stock-out: ships goods
README.md - Receiving and stock-in → U8 inventory posting: posts receipt
README.md - Shipping and stock-out → U8 inventory posting: posts shipment
README.md - Moves and transfers → U8 inventory posting: posts adjustment
README.md - U8 inventory posting → U8 ERP: sends inventory documents
xg-warehouse/src/main/java/com/gz/xg/service/U8StockInSyncService.kt - Web application → Shared context and utilities: uses common runtime
README.md