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