update订单逻辑改造工厂模式

This commit is contained in:
2023-09-01 14:56:45 +08:00
parent 0ce2746a24
commit 9366841a98
2 changed files with 2 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ public class DelayMerchantOrderLogic extends AbstractOrderLogic {
@Override
public void afterPropertiesSet() throws Exception {
// 注册为 延时分账
OrderLogicFactory.register(MerchantDelayModeEnum.DELAY.getValue(), this);
}

View File

@@ -44,6 +44,7 @@ public class NotDelayMerchantOrderLogic extends AbstractOrderLogic{
@Override
public void afterPropertiesSet() throws Exception {
// 注册为 非延时分账
OrderLogicFactory.register(MerchantDelayModeEnum.NOT_DELAY.getValue(), this);
}