保证金回写金额整体设计
2022-09-28 16:41:52 8 举报
策略模式加工厂模式整体设计代码UML图,方便理解复杂业务逻辑
作者其他创作
大纲/内容
具体策略
AbstractDepositWriteBackStrategy
+ handle+validate+initCalculator
PaymentDepositAmountCalculator
+ calculate
上下文
PaymentAPTakeBackDepositStrategy
+validate+initCalculator
具体计算器
ReverseDepositAmountCalculator
计算器抽象
自定义注解
DepositDTOBuilder
+ addContractId+addDepositAmount+addDepositColumnType
WriteBackStrategy
ContractDepositUtil
策略工厂
<<interface>>IDepositWriteBackStrategy
+ handle
Context
记录建造者
<<realize>>
DepositWriteBackStrategyFactory
- writeBackDepositStrategyList
+ getWriteBackStrategy
PaymentARDepositStrategy
PaymentARTakeBackDepositStrategy
<<interface>>IContractDepositCalculator
TakeBackDepositAmountCalculator
PaymentAPDepositStrategy
工具类
策略抽象
0 条评论
下一页