物流运单领域模型
2023-09-15 13:34:08 1 举报
运输领域模型
作者其他创作
大纲/内容
Address
- province- city- district- address- contactMobile- contactName
WaybillUpdated
WaybillTrack
- trackNo: TrackNo- trackType: TrackType- routes: List<Route>
CombineItem
- id: CombineItemId- waybillId: WaybillId
WaybillCreated
实体
WaybillReceipted
WaybillQuoted
WaybillRejected
WaybillSigned
Customer
- customerId: CustomerId- customerName- customerType
WaybillDispatched
Vehicle
- model- length- volume- weight- quantity
WaybillDivided
WaybillSign
- id: WaybillSignId- orderId: OrderId- items: List<WaybillSignItem>- remarks
WaybillRelation
- id: WaybillRelationId- waybillId : WaybillId- signId: WaybillSignId- receiptId: WaybillRecceiptId- closeId: WaybillCloseId- status: WaybillStatus- tenantId: TenantId
+ sign(WaybillSign)+ receipt(WaybillReceipt)+ close(WaybillClose)+ quote(WaybillQuote)
WaybillReceiptItem
- itemId : WaybillItemId- quantity- exceptionQuantity- remarks
DivideItem
- id: DivideItemId- waybillId: WaybillId- voucher: JSONObject
Combine
- id: CombineId- contractNo- fromTime- toTime- customer: Customer- carrier: Carrier- status: CombineStatus- tenantId: TenantId
+ cancel()+ dispatch(Carrier)+ accept()+ reject()+ recall()
Waybill
- id: WaybillId- contractNo: ContractNo- orderId: OrderId- fromAddress- fromTime- toAddress- toTime- customer: Customer- consignee: Consignee- carrier: Carrier- arguments: Arguments- differences: Differences- items: List<WaybillItem>- status: WaybillStatus- combineId: CombineId- divideId: DivideId- relations: List<WaybillRelation>- tenantId: TenantId
- sign(WaybillSign)- receipt(WaybillReceipt)- dispatch(WaybillDispatch)- accept()- reject()- divide(WaybillDivide)/cancelDivide()- combine(WaybillCombine)/cancelCombine- close(WaybillClose)- quote(WaybillQuote)
WaybillClosed
WaybillCombineCancelled
聚合根
WaybillScored
图例:
WaybillSignItem
WaybillItem
- id: WaybillItemId- goodsId: GoodsId- batchNo: BatchNo- quantity- name- spec- weight- volume- value- remarks- signQuantity- receiptQuantity
+ sign(quantity)+ receipt(quantity)
Goods
- id :GoodsId- type: GoodsTypeId- name- barcode: Barcode- spec- weight- volume- value- boxInput- remarks
WaybillReceipt
- id: WaybillReceiptId- orderId: OrderId- items: List<WaybillReceiptItem>- remarks
WaybillDivideCancelled
WaybillAccepted
领域事件
Arguments
- transportMode: TransportMode- packageMode: PackageMode- cargoType: CargoType- billingMode: BillingMode- billingUnit: BillingUnit- pick- deliver- load- unload- insure
Divide
- id: WaybillDivideId- waybillId: WaybillId- mode: DivideMode- remarks- status: DivideStatus- items: List<DivideItem>- tenantId: TenantId
+ apply(font color=\"#323232\
WaybillTracked
WaybillCombined
Consignee
- consigneeId : ConsigneeId- consigneeName- consigneeType
值对象
0 条评论
下一页