清关相关的流程图、时序图

一、业务完整泳道流程图(电商下单→清关放行全链路)

#mermaid-svg-csLHfm9YfnBISYvX{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-csLHfm9YfnBISYvX .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-csLHfm9YfnBISYvX .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-csLHfm9YfnBISYvX .error-icon{fill:#552222;}#mermaid-svg-csLHfm9YfnBISYvX .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-csLHfm9YfnBISYvX .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-csLHfm9YfnBISYvX .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-csLHfm9YfnBISYvX .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-csLHfm9YfnBISYvX .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-csLHfm9YfnBISYvX .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-csLHfm9YfnBISYvX .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-csLHfm9YfnBISYvX .marker{fill:#333333;stroke:#333333;}#mermaid-svg-csLHfm9YfnBISYvX .marker.cross{stroke:#333333;}#mermaid-svg-csLHfm9YfnBISYvX svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-csLHfm9YfnBISYvX p{margin:0;}#mermaid-svg-csLHfm9YfnBISYvX .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-csLHfm9YfnBISYvX .cluster-label text{fill:#333;}#mermaid-svg-csLHfm9YfnBISYvX .cluster-label span{color:#333;}#mermaid-svg-csLHfm9YfnBISYvX .cluster-label span p{background-color:transparent;}#mermaid-svg-csLHfm9YfnBISYvX .label text,#mermaid-svg-csLHfm9YfnBISYvX span{fill:#333;color:#333;}#mermaid-svg-csLHfm9YfnBISYvX .node rect,#mermaid-svg-csLHfm9YfnBISYvX .node circle,#mermaid-svg-csLHfm9YfnBISYvX .node ellipse,#mermaid-svg-csLHfm9YfnBISYvX .node polygon,#mermaid-svg-csLHfm9YfnBISYvX .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-csLHfm9YfnBISYvX .rough-node .label text,#mermaid-svg-csLHfm9YfnBISYvX .node .label text,#mermaid-svg-csLHfm9YfnBISYvX .image-shape .label,#mermaid-svg-csLHfm9YfnBISYvX .icon-shape .label{text-anchor:middle;}#mermaid-svg-csLHfm9YfnBISYvX .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-csLHfm9YfnBISYvX .rough-node .label,#mermaid-svg-csLHfm9YfnBISYvX .node .label,#mermaid-svg-csLHfm9YfnBISYvX .image-shape .label,#mermaid-svg-csLHfm9YfnBISYvX .icon-shape .label{text-align:center;}#mermaid-svg-csLHfm9YfnBISYvX .node.clickable{cursor:pointer;}#mermaid-svg-csLHfm9YfnBISYvX .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-csLHfm9YfnBISYvX .arrowheadPath{fill:#333333;}#mermaid-svg-csLHfm9YfnBISYvX .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-csLHfm9YfnBISYvX .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-csLHfm9YfnBISYvX .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-csLHfm9YfnBISYvX .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-csLHfm9YfnBISYvX .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-csLHfm9YfnBISYvX .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-csLHfm9YfnBISYvX .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-csLHfm9YfnBISYvX .cluster text{fill:#333;}#mermaid-svg-csLHfm9YfnBISYvX .cluster span{color:#333;}#mermaid-svg-csLHfm9YfnBISYvX div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-csLHfm9YfnBISYvX .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-csLHfm9YfnBISYvX rect.text{fill:none;stroke-width:0;}#mermaid-svg-csLHfm9YfnBISYvX .icon-shape,#mermaid-svg-csLHfm9YfnBISYvX .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-csLHfm9YfnBISYvX .icon-shape p,#mermaid-svg-csLHfm9YfnBISYvX .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-csLHfm9YfnBISYvX .icon-shape .label rect,#mermaid-svg-csLHfm9YfnBISYvX .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-csLHfm9YfnBISYvX .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-csLHfm9YfnBISYvX .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-csLHfm9YfnBISYvX :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 海关总署跨境电商系统
电子口岸DXP交换平台
Go清关申报服务
电商前端业务系统
消费者下单
支付完成,生成支付单
商品出库,生成物流包裹
组装CEB311订单报文
组装CEB621清单报文
定时轮询回执,更新单据状态
报文身份/格式/签名校验、路由转发
缓存海关回执数据
订单基础信息校验
清单计税、价格/重量校验
审结放行 / 退单 / 人工查验

二、三层报文分层结构图(理清XML嵌套关系)

#mermaid-svg-DYbeA5db7L5YYfG9{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-DYbeA5db7L5YYfG9 .error-icon{fill:#552222;}#mermaid-svg-DYbeA5db7L5YYfG9 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-DYbeA5db7L5YYfG9 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-DYbeA5db7L5YYfG9 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-DYbeA5db7L5YYfG9 .marker.cross{stroke:#333333;}#mermaid-svg-DYbeA5db7L5YYfG9 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-DYbeA5db7L5YYfG9 p{margin:0;}#mermaid-svg-DYbeA5db7L5YYfG9 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster-label text{fill:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster-label span{color:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster-label span p{background-color:transparent;}#mermaid-svg-DYbeA5db7L5YYfG9 .label text,#mermaid-svg-DYbeA5db7L5YYfG9 span{fill:#333;color:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 .node rect,#mermaid-svg-DYbeA5db7L5YYfG9 .node circle,#mermaid-svg-DYbeA5db7L5YYfG9 .node ellipse,#mermaid-svg-DYbeA5db7L5YYfG9 .node polygon,#mermaid-svg-DYbeA5db7L5YYfG9 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-DYbeA5db7L5YYfG9 .rough-node .label text,#mermaid-svg-DYbeA5db7L5YYfG9 .node .label text,#mermaid-svg-DYbeA5db7L5YYfG9 .image-shape .label,#mermaid-svg-DYbeA5db7L5YYfG9 .icon-shape .label{text-anchor:middle;}#mermaid-svg-DYbeA5db7L5YYfG9 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-DYbeA5db7L5YYfG9 .rough-node .label,#mermaid-svg-DYbeA5db7L5YYfG9 .node .label,#mermaid-svg-DYbeA5db7L5YYfG9 .image-shape .label,#mermaid-svg-DYbeA5db7L5YYfG9 .icon-shape .label{text-align:center;}#mermaid-svg-DYbeA5db7L5YYfG9 .node.clickable{cursor:pointer;}#mermaid-svg-DYbeA5db7L5YYfG9 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-DYbeA5db7L5YYfG9 .arrowheadPath{fill:#333333;}#mermaid-svg-DYbeA5db7L5YYfG9 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-DYbeA5db7L5YYfG9 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-DYbeA5db7L5YYfG9 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-DYbeA5db7L5YYfG9 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-DYbeA5db7L5YYfG9 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-DYbeA5db7L5YYfG9 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster text{fill:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 .cluster span{color:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-DYbeA5db7L5YYfG9 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-DYbeA5db7L5YYfG9 rect.text{fill:none;stroke-width:0;}#mermaid-svg-DYbeA5db7L5YYfG9 .icon-shape,#mermaid-svg-DYbeA5db7L5YYfG9 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-DYbeA5db7L5YYfG9 .icon-shape p,#mermaid-svg-DYbeA5db7L5YYfG9 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-DYbeA5db7L5YYfG9 .icon-shape .label rect,#mermaid-svg-DYbeA5db7L5YYfG9 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-DYbeA5db7L5YYfG9 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-DYbeA5db7L5YYfG9 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-DYbeA5db7L5YYfG9 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} Data节点Base64存储
HTTP请求外层JSON
DxpMsg传输信封XML
CEB311/CEB621业务XML
BaseTransfer节点

承载DxpId、CopCode传输身份
业务主体

CEB311:Order表头+Order明细

CEB621:Inventory表头+Inventory明细
ds:Signature国密签名节点

appStatus=2申报时必填

三、异常场景时序图(覆盖联调所有报错分支)

海关统一版系统 DXP交换平台 Go申报服务 海关统一版系统 DXP交换平台 Go申报服务 #mermaid-svg-PPceSHsB4ZQkv0m9{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-PPceSHsB4ZQkv0m9 .error-icon{fill:#552222;}#mermaid-svg-PPceSHsB4ZQkv0m9 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-PPceSHsB4ZQkv0m9 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-PPceSHsB4ZQkv0m9 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-PPceSHsB4ZQkv0m9 .marker.cross{stroke:#333333;}#mermaid-svg-PPceSHsB4ZQkv0m9 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-PPceSHsB4ZQkv0m9 p{margin:0;}#mermaid-svg-PPceSHsB4ZQkv0m9 .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PPceSHsB4ZQkv0m9 text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-PPceSHsB4ZQkv0m9 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-PPceSHsB4ZQkv0m9 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-PPceSHsB4ZQkv0m9 #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-PPceSHsB4ZQkv0m9 .sequenceNumber{fill:white;}#mermaid-svg-PPceSHsB4ZQkv0m9 #sequencenumber{fill:#333;}#mermaid-svg-PPceSHsB4ZQkv0m9 #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-PPceSHsB4ZQkv0m9 .messageText{fill:#333;stroke:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PPceSHsB4ZQkv0m9 .labelText,#mermaid-svg-PPceSHsB4ZQkv0m9 .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .loopText,#mermaid-svg-PPceSHsB4ZQkv0m9 .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-PPceSHsB4ZQkv0m9 .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-PPceSHsB4ZQkv0m9 .noteText,#mermaid-svg-PPceSHsB4ZQkv0m9 .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-PPceSHsB4ZQkv0m9 .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PPceSHsB4ZQkv0m9 .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PPceSHsB4ZQkv0m9 .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PPceSHsB4ZQkv0m9 .actorPopupMenu{position:absolute;}#mermaid-svg-PPceSHsB4ZQkv0m9 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-PPceSHsB4ZQkv0m9 .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PPceSHsB4ZQkv0m9 .actor-man circle,#mermaid-svg-PPceSHsB4ZQkv0m9 line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-PPceSHsB4ZQkv0m9 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 清关全流程异常分支处理 loop定时轮询任务 推送CEB申报报文同步返回错误码+失败原因,不转发海关记录失败日志,标记单据失败,支持修改重推推送CEB报文校验通过转发海关生成退单回执 returnStatus=2拉取未处理回执返回退单回执+驳回说明锁定单据,修正数据后重新推送HTTP请求超时,无响应等待轮询任务,查询回执判断是否入库,避免重复申报

四、CEB311订单正常申报时序图

海关统一版系统 电子口岸DXP平台 Go申报服务 海关统一版系统 电子口岸DXP平台 Go申报服务 #mermaid-svg-oiEGbLWGfJUoUUYr{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-oiEGbLWGfJUoUUYr .error-icon{fill:#552222;}#mermaid-svg-oiEGbLWGfJUoUUYr .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-oiEGbLWGfJUoUUYr .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-oiEGbLWGfJUoUUYr .marker{fill:#333333;stroke:#333333;}#mermaid-svg-oiEGbLWGfJUoUUYr .marker.cross{stroke:#333333;}#mermaid-svg-oiEGbLWGfJUoUUYr svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-oiEGbLWGfJUoUUYr p{margin:0;}#mermaid-svg-oiEGbLWGfJUoUUYr .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-oiEGbLWGfJUoUUYr text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-oiEGbLWGfJUoUUYr .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-oiEGbLWGfJUoUUYr .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-oiEGbLWGfJUoUUYr #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-oiEGbLWGfJUoUUYr .sequenceNumber{fill:white;}#mermaid-svg-oiEGbLWGfJUoUUYr #sequencenumber{fill:#333;}#mermaid-svg-oiEGbLWGfJUoUUYr #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-oiEGbLWGfJUoUUYr .messageText{fill:#333;stroke:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-oiEGbLWGfJUoUUYr .labelText,#mermaid-svg-oiEGbLWGfJUoUUYr .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .loopText,#mermaid-svg-oiEGbLWGfJUoUUYr .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-oiEGbLWGfJUoUUYr .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-oiEGbLWGfJUoUUYr .noteText,#mermaid-svg-oiEGbLWGfJUoUUYr .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-oiEGbLWGfJUoUUYr .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-oiEGbLWGfJUoUUYr .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-oiEGbLWGfJUoUUYr .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-oiEGbLWGfJUoUUYr .actorPopupMenu{position:absolute;}#mermaid-svg-oiEGbLWGfJUoUUYr .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-oiEGbLWGfJUoUUYr .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-oiEGbLWGfJUoUUYr .actor-man circle,#mermaid-svg-oiEGbLWGfJUoUUYr line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-oiEGbLWGfJUoUUYr :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} CEB311 进口订单申报全流程 loop定时轮询任务 初始化CEB311Message结构体填充OrderHead、OrderList、BaseTransfer(DXP身份)appStatus=2(申报),生成ds国密签名CEB311 XML Base64编码,封装外层DxpMsgHTTPS POST 提交DxpMsg报文校验DxpId企业备案资质XSD校验CEB311字段规范XML签名验签GUID全局幂等校验校验失败,同步返回错误信息校验通过,转发CEB311订单至海关系统校验订购人、支付、商品、金额信息生成CEB312订单回执,缓存至DXP拉取未处理回执返回CEB312回执报文解析回执状态,更新本地订单

五、CEB621清单正常申报时序图

海关统一版系统 电子口岸DXP平台 Go申报服务 海关统一版系统 电子口岸DXP平台 Go申报服务 #mermaid-svg-hsRqA5iE1v3oec5E{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-hsRqA5iE1v3oec5E .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-hsRqA5iE1v3oec5E .error-icon{fill:#552222;}#mermaid-svg-hsRqA5iE1v3oec5E .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-hsRqA5iE1v3oec5E .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-hsRqA5iE1v3oec5E .marker{fill:#333333;stroke:#333333;}#mermaid-svg-hsRqA5iE1v3oec5E .marker.cross{stroke:#333333;}#mermaid-svg-hsRqA5iE1v3oec5E svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-hsRqA5iE1v3oec5E p{margin:0;}#mermaid-svg-hsRqA5iE1v3oec5E .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-hsRqA5iE1v3oec5E text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-hsRqA5iE1v3oec5E .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-hsRqA5iE1v3oec5E .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-hsRqA5iE1v3oec5E .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-hsRqA5iE1v3oec5E .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-hsRqA5iE1v3oec5E #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-hsRqA5iE1v3oec5E .sequenceNumber{fill:white;}#mermaid-svg-hsRqA5iE1v3oec5E #sequencenumber{fill:#333;}#mermaid-svg-hsRqA5iE1v3oec5E #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-hsRqA5iE1v3oec5E .messageText{fill:#333;stroke:none;}#mermaid-svg-hsRqA5iE1v3oec5E .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-hsRqA5iE1v3oec5E .labelText,#mermaid-svg-hsRqA5iE1v3oec5E .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-hsRqA5iE1v3oec5E .loopText,#mermaid-svg-hsRqA5iE1v3oec5E .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-hsRqA5iE1v3oec5E .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-hsRqA5iE1v3oec5E .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-hsRqA5iE1v3oec5E .noteText,#mermaid-svg-hsRqA5iE1v3oec5E .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-hsRqA5iE1v3oec5E .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-hsRqA5iE1v3oec5E .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-hsRqA5iE1v3oec5E .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-hsRqA5iE1v3oec5E .actorPopupMenu{position:absolute;}#mermaid-svg-hsRqA5iE1v3oec5E .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-hsRqA5iE1v3oec5E .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-hsRqA5iE1v3oec5E .actor-man circle,#mermaid-svg-hsRqA5iE1v3oec5E line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-hsRqA5iE1v3oec5E :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} CEB621 进口清单申报全流程 loop定时轮询任务 初始化CEB621Message结构体填充InventoryHead、InventoryList、BaseTransfer(DXP身份)appStatus=2(申报),生成ds国密签名CEB621 XML Base64编码,封装外层DxpMsgHTTPS POST 提交DxpMsg报文校验DxpId企业备案资质XSD校验CEB621字段规范XML签名验签GUID全局幂等校验校验失败,同步返回错误信息校验通过,转发CEB621清单至海关系统校验HS编码、税费、毛净重、物流信息生成CEB622清单回执,缓存至DXP拉取未处理回执返回CEB622回执报文解析回执状态,更新本地清单单据