|
|
|
@ -3,7 +3,6 @@ package com.weaver.seconddev.interfaces.workflow.action;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.weaver.authority.api.rest.RemoteAuthorityRoleService;
|
|
|
|
|
import com.weaver.common.base.entity.result.WeaResult;
|
|
|
|
|
import com.weaver.common.hrm.util.HrmContextUtil;
|
|
|
|
|
import com.weaver.common.i18n.tool.util.I18nContextUtil;
|
|
|
|
|
import com.weaver.ebuilder.form.client.ebform.data.EbFormDataDubboService;
|
|
|
|
|
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
|
|
|
@ -11,9 +10,6 @@ import com.weaver.framework.rpc.annotation.RpcReference;
|
|
|
|
|
import com.weaver.seconddev.interfaces.easoa.CallEasBlacklistServices;
|
|
|
|
|
import com.weaver.seconddev.interfaces.easoa.ChangeWhiteListState;
|
|
|
|
|
import com.weaver.seconddev.interfaces.prop.ConfigProp;
|
|
|
|
|
import com.weaver.seconddev.interfaces.workflow.util.CommonDevUtil;
|
|
|
|
|
import com.weaver.teams.domain.user.SimpleEmployee;
|
|
|
|
|
import com.weaver.verupgrade.conn.CONN_TYPE;
|
|
|
|
|
import com.weaver.verupgrade.conn.RecordSet;
|
|
|
|
|
import com.weaver.verupgrade.general.BaseBean;
|
|
|
|
|
import com.weaver.verupgrade.interfaces.workflow.action.Action;
|
|
|
|
@ -21,7 +17,6 @@ import com.weaver.verupgrade.soa.workflow.request.RequestInfo;
|
|
|
|
|
import com.weaver.verupgrade.workflow.request.RequestManager;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
@ -46,6 +41,8 @@ public class CustomJavaCode extends BaseBean implements Action, EsbServerlessRpc
|
|
|
|
|
private RemoteAuthorityRoleService remoteAuthorityRoleService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private CallEasBlacklistServices callEasBlacklistServices;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ChangeWhiteListState changeWhiteListState;
|
|
|
|
@ -97,13 +94,14 @@ public class CustomJavaCode extends BaseBean implements Action, EsbServerlessRpc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.error(" 入参 == " + arrayList);
|
|
|
|
|
CallEasBlacklistServices callEasBlacklistServices = new CallEasBlacklistServices();
|
|
|
|
|
String[] arrayOfString = callEasBlacklistServices.syncBlacklist(arrayList);
|
|
|
|
|
String str2 = arrayOfString[0];
|
|
|
|
|
String str3 = arrayOfString[1];
|
|
|
|
|
logger.error("do blacklist webservice: " + str2 + "][message : " + str3 + "]");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeWhiteListState.changeState(arrayList);
|
|
|
|
|
logger.error("do blacklist webservice: " + str2 + "][message : " + str3 + "]");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> res = new HashMap<>();
|
|
|
|
|
res.put("status", true);
|
|
|
|
|