ic: 修改httppost&signBP
This commit is contained in:
parent
4045e216eb
commit
ab3ed04215
|
@ -20,7 +20,7 @@ public class SignBP implements ISignBP<GeneralInVO>, ISignRuleProvider<GeneralIn
|
|||
processor.addAfterRule(new UpdateSCOnhandRule(false, true));
|
||||
processor.addAfterRule(new AfterSignRuleForFinanceProcess());
|
||||
processor.addAfterRule(new AfterSignRuleForLiabilityProcess());
|
||||
processor.addBeforeRule(new AfterSignRuleSyncInToMesProcess());
|
||||
processor.addAfterRule(new AfterSignRuleSyncInToMesProcess());
|
||||
}
|
||||
|
||||
public void addBeforeRule(GeneralInVO[] vos, AroundProcesser<GeneralInVO> processor) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public class SignBP implements ISignBP<GeneralOutVO>, ISignRuleProvider<GeneralO
|
|||
processor.addAfterRule(new AfterSignRuleForFinanceProcess());
|
||||
processor.addAfterRule(new AfterSignRuleForLiabilityProcess());
|
||||
processor.addAfterRule(new AfterSignRuleForMatterApp());
|
||||
processor.addBeforeRule(new AfterSignRuleSyncOutToMesProcess());
|
||||
processor.addAfterRule(new AfterSignRuleSyncOutToMesProcess());
|
||||
}
|
||||
|
||||
public void addBeforeRule(GeneralOutVO[] vos, AroundProcesser<GeneralOutVO> processor) {
|
||||
|
|
|
@ -3,6 +3,8 @@ package nccloud.pubift.commen.impl.utils;
|
|||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import nc.bs.logging.Log;
|
||||
import nc.hr.utils.PubEnv;
|
||||
import nc.itf.arap.goldentax.SysParaInitQuery;
|
||||
import nc.vo.pub.BusinessException;
|
||||
import nccloud.pubift.commen.itf.utils.IHttpPostOtherSys;
|
||||
import org.apache.http.Header;
|
||||
|
@ -22,18 +24,23 @@ import java.util.Map;
|
|||
public class HttpPostOtherSysImpl implements IHttpPostOtherSys {
|
||||
|
||||
private static final String USER_ID = "BIP";
|
||||
|
||||
private static final String PASSWORD = "BIP@2025bip";
|
||||
|
||||
private static final String CLIENT_TYPE = "S";
|
||||
|
||||
private static final String EP_ID = "";
|
||||
|
||||
private static final String LOGIN_URL = "/GTHINKING/AjaxService/N_MISPRO/100208057.ashx/Login"; // 登录接口路径
|
||||
|
||||
private static final String LOG_INFO_NAME = "OALOG";
|
||||
|
||||
private static final Log obmlog = Log.getInstance(LOG_INFO_NAME);
|
||||
|
||||
@Override
|
||||
public String callMes(String url, JSONObject json) {
|
||||
// String leip = SysParaInitQuery.getParaString(PubEnv.getPk_group(), "LEIP"); // 从系统参数获取IP地址(示例)
|
||||
String mesip = "http://192.168.29.32"; // MES系统IP地址,实际应从配置读取
|
||||
String mesip = SysParaInitQuery.getParaString(PubEnv.getPk_group(), "MESIP");
|
||||
// String mesip = "http://192.168.29.32"; // MES系统IP地址,实际应从配置读取
|
||||
String baseurl = mesip + url; // 拼接完整的请求URL
|
||||
String tokenValue = this.getMESToken(mesip); // 获取MES系统的认证Token
|
||||
Map<String, String> headers = new HashMap<>();
|
||||
|
|
Loading…
Reference in New Issue