|
|
|
@ -12,6 +12,7 @@ import com.foreverwin.mesnac.anomaly.utils.*;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.Constants;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.DateUtil;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
|
import com.foreverwin.modular.core.exception.BaseException;
|
|
|
|
|
import org.apache.http.Consts;
|
|
|
|
|
import org.apache.http.HttpEntity;
|
|
|
|
|
import org.apache.http.client.methods.CloseableHttpResponse;
|
|
|
|
@ -94,6 +95,10 @@ public class YunBpmServiceImpl implements YunBpmService {
|
|
|
|
|
String jsonString = JSONObject.toJSONString(qualitySystemDto);
|
|
|
|
|
JSONObject qualitySystem = JSONObject.parseObject(jsonString);
|
|
|
|
|
OAuthTokenInfo auth = getTokenByUserNameAndPassword(yunBpmConfig.userName, yunBpmConfig.passWord);
|
|
|
|
|
if(null == auth){
|
|
|
|
|
logger.error("连通bpm系统失败,账号:" + yunBpmConfig.userName +",密码:"+ yunBpmConfig.passWord );
|
|
|
|
|
throw new BaseException("连通bpm系统失败");
|
|
|
|
|
}
|
|
|
|
|
YunBpmApiRes tokenRes = getReplayToken(auth.getAccess_token());
|
|
|
|
|
if (auth.getSuccess()) {
|
|
|
|
|
YunBpmApiRes result = null;
|
|
|
|
|