This commit is contained in:
parent
0ad96d210e
commit
e5e1530a2b
|
@ -3,6 +3,7 @@ package nc.bs.mmpac.pmo.pac0002.bp.rule;
|
|||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.google.gson.Gson;
|
||||
import nc.bs.dao.BaseDAO;
|
||||
import nc.bs.dao.DAOException;
|
||||
import nc.bs.logging.Log;
|
||||
|
@ -146,7 +147,12 @@ public class AfterApproveSyncPLMRule implements IRule<PMOAggVO> {
|
|||
plmBaseUrl = configParams.get("plmBaseUrl");
|
||||
plmUser = configParams.get("plmUser");
|
||||
token = getToken();
|
||||
this.doPost(plmBaseUrl+pmourl,jsonArrayStr);
|
||||
String responseString= this.doPost(plmBaseUrl+pmourl,jsonArrayStr);
|
||||
Gson gson = new Gson();
|
||||
Map result = gson.fromJson(responseString, Map.class);
|
||||
if (!result.get("success").toString().equals("true")) {
|
||||
throw new BusinessException(result.get("msg").toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue