diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/eipoa/AccountService.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/eipoa/AccountService.java index e4035f2..05c5e2a 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/eipoa/AccountService.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/eipoa/AccountService.java @@ -10,7 +10,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; +import org.springframework.stereotype.Component; +@Component public class AccountService extends BaseBean { private static final Logger logger_18cc50ce = LoggerFactory.getLogger(AccountService.class); diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CloseAccountAction.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CloseAccountAction.java index d680993..6b05577 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CloseAccountAction.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/CloseAccountAction.java @@ -36,6 +36,9 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles private static final Logger logger_ac56032a = LoggerFactory.getLogger(CloseAccountAction.class); + @Autowired + private AccountService service; + public CloseAccountAction() { } @@ -72,7 +75,7 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles Row[] sq = dtq.getRow(); SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[] param = new SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[sq.length]; SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo paramInfo = new SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo(); - logger_ac56032a.info("sq"+ sq); + logger_ac56032a.info("sq -- "+ sq); for (int j = 0; j < sq.length; j++) { Row rq = sq[j]; Cell[] cq = rq.getCell(); @@ -89,10 +92,11 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles } param[j] = paramInfo; } - AccountService service = new AccountService(); +// AccountService service = new AccountService(); + logger_ac56032a.info("param--"+ param); StringBuilder sb = new StringBuilder(); String[] array = service.account("HT01EIP006", param); - logger_ac56032a.info("array"+ array); + logger_ac56032a.info("array--"+ array); if ("E".equals(array[0])) { status = array[0]; message = array[1];