箱变-物料-定时推送启源-调整
This commit is contained in:
parent
d1d78484ac
commit
f4b7db4a58
|
|
@ -184,6 +184,7 @@ public class MaterialToQmsPlugin implements IBackgroundWorkPlugin {
|
||||||
Object map = (Object) new BaseDAO().executeQuery(sql, new ColumnProcessor());
|
Object map = (Object) new BaseDAO().executeQuery(sql, new ColumnProcessor());
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkMrlType(String mrlTypeName, Map<String, String> configParams) throws BusinessException {
|
private boolean checkMrlType(String mrlTypeName, Map<String, String> configParams) throws BusinessException {
|
||||||
// 从配置中获取目标类型字符串
|
// 从配置中获取目标类型字符串
|
||||||
String targetCode = configParams.get("mrlType");
|
String targetCode = configParams.get("mrlType");
|
||||||
|
|
@ -219,12 +220,12 @@ public class MaterialToQmsPlugin implements IBackgroundWorkPlugin {
|
||||||
String requestUrl = baseUrl + reqUrl;
|
String requestUrl = baseUrl + reqUrl;
|
||||||
logger.error("QMS-Material-url = " + requestUrl);
|
logger.error("QMS-Material-url = " + requestUrl);
|
||||||
String result = ThirdPartyPostRequestUtil.sendPostRequest(requestUrl, jsonStr);
|
String result = ThirdPartyPostRequestUtil.sendPostRequest(requestUrl, jsonStr);
|
||||||
JSONObject resultObj = JSONObject.parseObject(result);
|
|
||||||
logger.error("QMS-Material-res = " + result);
|
logger.error("QMS-Material-res = " + result);
|
||||||
|
JSONObject resultObj = JSONObject.parseObject(result);
|
||||||
|
|
||||||
if (!"true".equals(resultObj.getString("success"))) {
|
if (!"true".equals(resultObj.getString("success"))) {
|
||||||
logger.error("QMS-Material-error,result[" + resultObj.toJSONString() + "]");
|
logger.error("QMS-Material-error,result[" + resultObj.toJSONString() + "]");
|
||||||
throw new BusinessException("QMS-Material-error:" + resultObj.getString("message"));
|
// throw new BusinessException("QMS-Material-error:" + resultObj.getString("message"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue