【项目】结算站点Remit 发表于 2019-02-26 | 更新于 2019-03-25 | 分类于 Company | 热度: ℃ 公司项目逻辑整理,结算站点Remit逻辑 RemitFacede业务逻辑 GatewayServicest=>start: 开始 ex=>subroutine: 业务异常 e=>end: 结束 facadeIn=>inputoutput: Facade_Remit收到请求 voreqConvert=>operation: 请求模型转换 preFilter=>subroutine: 执行前拦截器 execute=>operation: 执行业务逻辑|past:>#GatewayService postFilter=>subroutine: 执行后拦截器 voresConvert=>operation: 响应模型转换 cond1=>condition: gatewayMethod != null cond2=>condition: request != null cond3=>condition: response != null cond4=>condition: validate(request) io=>inputoutput: 输出Response st->facadeIn->cond1() cond1(yes)->cond2() cond1(no)->ex->io->e cond2(yes)->cond3() cond2(no)->ex->io->e cond3(yes)->cond4() cond3(no)->ex->io->e cond4(no)->ex->io->e cond4(yes)->voreqConvert->preFilter->execute->postFilter->voresConvert->io->e{"scale":1,"line-width":2,"line-length":50,"text-margin":10,"font-size":12,"theme":"simple"}st=>start: 开始 ex=>subroutine: GatewayServiceException input=>inputoutput: service(Request) io=>inputoutput: 输出Response e=>end: 结束 cond1=>condition: validate(client_uid) retrieveOrder=>subroutine: getOrderFromDataBase cond2=>condition: order == null createOrder=>operation: 创建打款申请单数据模型 cond3=>condition: 校验order中打款金额与结算渠道 insertOrder=>operation: 写入订单对象 publishSuccess=>subroutine: 广播申请成功事件 asyncStatistic=>subroutine: 记录统计信息 st->input->cond1 cond1(no)->ex->e cond1(yes)->retrieveOrder->cond2 cond2(no)->publishSuccess->asyncStatistic->io->e cond2(yes)->createOrder->cond3 cond3(no)->ex->e cond3(yes)->insertOrder->publishSuccess->asyncStatistic->io->e{"scale":1,"line-width":2,"line-length":50,"text-margin":10,"font-size":12,"theme":"simple"}