mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update订单逻辑改造工厂模式
This commit is contained in:
@@ -46,6 +46,7 @@ public class DelayMerchantOrderLogic extends AbstractOrderLogic {
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
// 注册为 延时分账
|
||||
OrderLogicFactory.register(MerchantDelayModeEnum.DELAY.getValue(), this);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ public class NotDelayMerchantOrderLogic extends AbstractOrderLogic{
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
// 注册为 非延时分账
|
||||
OrderLogicFactory.register(MerchantDelayModeEnum.NOT_DELAY.getValue(), this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user