|
@@ -4,6 +4,7 @@ import com.kym.common.exception.BusinessException;
|
|
|
import com.kym.entity.awoara.Event;
|
|
import com.kym.entity.awoara.Event;
|
|
|
import com.kym.service.*;
|
|
import com.kym.service.*;
|
|
|
import com.kym.service.awoara.event.handle.*;
|
|
import com.kym.service.awoara.event.handle.*;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -13,6 +14,9 @@ import org.springframework.stereotype.Component;
|
|
|
*/
|
|
*/
|
|
|
@Component
|
|
@Component
|
|
|
public class AwoaraEventHandlerFactory {
|
|
public class AwoaraEventHandlerFactory {
|
|
|
|
|
+
|
|
|
|
|
+ private static String DOMAIN;
|
|
|
|
|
+
|
|
|
private static WashDeviceService washDeviceService;
|
|
private static WashDeviceService washDeviceService;
|
|
|
private static WashOrderService washOrderService;
|
|
private static WashOrderService washOrderService;
|
|
|
private static WalletDetailService walletDetailService;
|
|
private static WalletDetailService walletDetailService;
|
|
@@ -27,7 +31,9 @@ public class AwoaraEventHandlerFactory {
|
|
|
|
|
|
|
|
public AwoaraEventHandlerFactory(WashDeviceService washDeviceService, WashOrderService washOrderService, WalletDetailService walletDetailService,
|
|
public AwoaraEventHandlerFactory(WashDeviceService washDeviceService, WashOrderService washOrderService, WalletDetailService walletDetailService,
|
|
|
AccountService accountService, StationAccountService stationAccountService, SplitRecordService splitRecordService,
|
|
AccountService accountService, StationAccountService stationAccountService, SplitRecordService splitRecordService,
|
|
|
- StationAccountRecordService stationAccountRecordService, MpMsgTemplateService mpMsgTemplateService) {
|
|
|
|
|
|
|
+ StationAccountRecordService stationAccountRecordService, MpMsgTemplateService mpMsgTemplateService,
|
|
|
|
|
+ @Value("${kym.domain}") String domain) {
|
|
|
|
|
+ DOMAIN = domain;
|
|
|
AwoaraEventHandlerFactory.washDeviceService = washDeviceService;
|
|
AwoaraEventHandlerFactory.washDeviceService = washDeviceService;
|
|
|
AwoaraEventHandlerFactory.washOrderService = washOrderService;
|
|
AwoaraEventHandlerFactory.washOrderService = washOrderService;
|
|
|
AwoaraEventHandlerFactory.walletDetailService = walletDetailService;
|
|
AwoaraEventHandlerFactory.walletDetailService = walletDetailService;
|
|
@@ -47,7 +53,7 @@ public class AwoaraEventHandlerFactory {
|
|
|
case order_create -> new OrderCreateEventHandler(washOrderService);
|
|
case order_create -> new OrderCreateEventHandler(washOrderService);
|
|
|
case order_update -> new OrderUpdateEventHandler(washOrderService);
|
|
case order_update -> new OrderUpdateEventHandler(washOrderService);
|
|
|
case order_close ->
|
|
case order_close ->
|
|
|
- new OrderCloseEventHandler(washOrderService, walletDetailService, accountService, stationAccountService, splitRecordService, stationAccountRecordService, mpMsgTemplateService);
|
|
|
|
|
|
|
+ new OrderCloseEventHandler(washOrderService, walletDetailService, accountService, stationAccountService, splitRecordService, stationAccountRecordService, mpMsgTemplateService,DOMAIN);
|
|
|
case user_login -> new UserLoginEventHandler();
|
|
case user_login -> new UserLoginEventHandler();
|
|
|
case card_event -> new CardEventHandler();
|
|
case card_event -> new CardEventHandler();
|
|
|
};
|
|
};
|