|
|
@@ -185,18 +185,30 @@ public final class FanweiCommonUtil {
|
|
|
fanweiBodyData.put("flowid", flowid);
|
|
|
fanweiBodyData.put("userid", personNo);
|
|
|
|
|
|
+ String receiverLong = user.getString("name") + "(" + user.getString("number") + ")";;
|
|
|
+ String title = "";
|
|
|
+ String oaId = fanweiBodyData.getString("flowid");
|
|
|
+
|
|
|
+ String uuid = saveLogData(receiverLong, title, oaId, info.getContent(), fanweiBodyData.toString(), "6", FANWEI_URL);
|
|
|
+
|
|
|
+ logger.info("泛微deleteToDo start , body is:" + fanweiBodyData.toJSONString());
|
|
|
+
|
|
|
String url = FANWEI_URL + "/rest/ofs/deleteUserRequestInfoByJson";
|
|
|
JSONObject result = doPostByHttpClient(url, fanweiBodyData);
|
|
|
if (result == null) {
|
|
|
throw new KDException(WFErrorCode.httpRequestWrongResponse(), new Object[]{result != null ? result.toJSONString() : "result is null!"});
|
|
|
}
|
|
|
|
|
|
+ String sendStatus = "fail";
|
|
|
//失败
|
|
|
if(!"1".equals(result.getString("operResult"))){
|
|
|
logger.info("泛微deleteToDo is fail :" + result.getString("message"));
|
|
|
+ } else {
|
|
|
+ sendStatus = "success";
|
|
|
}
|
|
|
+ updateLogData(uuid, result.toJSONString(), sendStatus);
|
|
|
|
|
|
- logger.info("泛微deleteToDo is ok , url is:" + info.getUrl());
|
|
|
+ logger.info("泛微deleteToDo is success , url is:" + info.getUrl());
|
|
|
} catch (Exception var15) {
|
|
|
logger.info(var15.getMessage());
|
|
|
String message = ResManager.loadKDString("泛微创建待办失败,原因:%s", "WFErrorCode_10001", "bos-wf-engine", new Object[0]);
|