CloseAccountAction AccountService update

webservice
calyrex 6 months ago
parent e473473650
commit b609c4a910

@ -10,7 +10,9 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class AccountService extends BaseBean { public class AccountService extends BaseBean {
private static final Logger logger_18cc50ce = LoggerFactory.getLogger(AccountService.class); private static final Logger logger_18cc50ce = LoggerFactory.getLogger(AccountService.class);

@ -36,6 +36,9 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles
private static final Logger logger_ac56032a = LoggerFactory.getLogger(CloseAccountAction.class); private static final Logger logger_ac56032a = LoggerFactory.getLogger(CloseAccountAction.class);
@Autowired
private AccountService service;
public CloseAccountAction() { public CloseAccountAction() {
} }
@ -72,7 +75,7 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles
Row[] sq = dtq.getRow(); Row[] sq = dtq.getRow();
SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[] param = new SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[sq.length]; SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[] param = new SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo[sq.length];
SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo paramInfo = new SI_HTPortalUAMGMT2_OUTServiceStub.UserSyncInfo(); 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++) { for (int j = 0; j < sq.length; j++) {
Row rq = sq[j]; Row rq = sq[j];
Cell[] cq = rq.getCell(); Cell[] cq = rq.getCell();
@ -89,10 +92,11 @@ public class CloseAccountAction extends BaseBean implements Action, EsbServerles
} }
param[j] = paramInfo; param[j] = paramInfo;
} }
AccountService service = new AccountService(); // AccountService service = new AccountService();
logger_ac56032a.info("param--"+ param);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
String[] array = service.account("HT01EIP006", param); String[] array = service.account("HT01EIP006", param);
logger_ac56032a.info("array"+ array); logger_ac56032a.info("array--"+ array);
if ("E".equals(array[0])) { if ("E".equals(array[0])) {
status = array[0]; status = array[0];
message = array[1]; message = array[1];

Loading…
Cancel
Save