feature-LeeD-20221025
liuliang 2 years ago
parent c27ab8de5f
commit 5ca5e781a6

@ -153,6 +153,7 @@ public class SendPortalTodoUtil {
// String username = "admin"; // String username = "admin";
// String passwd = "Uportal_123"; // String passwd = "Uportal_123";
// String todourl = "http://172.16.25.133/portal-web/centerTodo/sync" ; // String todourl = "http://172.16.25.133/portal-web/centerTodo/sync" ;
if (taskObjectList.size() > 0){
String auth = username + ":" + passwd; String auth = username + ":" + passwd;
String msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth); String msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth);
bb.writeLog("msgdata:"+msgdata); bb.writeLog("msgdata:"+msgdata);
@ -182,6 +183,7 @@ public class SendPortalTodoUtil {
} }
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -337,10 +339,10 @@ public class SendPortalTodoUtil {
} }
} }
if (taskObjectList.size() > 0){
requestObject.put("taskObjectList",taskObjectList); requestObject.put("taskObjectList",taskObjectList);
String auth = username + ":" + passwd; String auth = username + ":" + passwd;
// bb.writeLog("sendTodoDataByCreater-requestObject:"+requestObject.toJSONString());
String msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth); String msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth);
bb.writeLog("sendTodoDataByCreater-msgdata:"+msgdata); bb.writeLog("sendTodoDataByCreater-msgdata:"+msgdata);
if(!"".equals(msgdata)){ if(!"".equals(msgdata)){
@ -370,6 +372,7 @@ public class SendPortalTodoUtil {
} }
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -397,6 +400,7 @@ public class SendPortalTodoUtil {
String cus_staff = PropBean.getUfPropValue("cus_staff") ; String cus_staff = PropBean.getUfPropValue("cus_staff") ;
String scopeid = "-1"; String scopeid = "-1";
String scope = "HrmCustomFieldByInfoType" ; String scope = "HrmCustomFieldByInfoType" ;
String msgdata = "";
String terminal = "1" ; String terminal = "1" ;
String taskType = "0"; String taskType = "0";
@ -532,6 +536,12 @@ public class SendPortalTodoUtil {
userids = user.getUID()+""; userids = user.getUID()+"";
if (taskObjectList.size() > 0){
String auth = username + ":" + passwd;
//bb.writeLog("requestObject:"+requestObject.toJSONString());
msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth);
}
}else{ }else{
String actionType = "2" ; String actionType = "2" ;
String objectAction = "0" ; String objectAction = "0" ;
@ -651,11 +661,12 @@ public class SendPortalTodoUtil {
} }
} }
requestObject.put("taskObjectList",taskObjectList); requestObject.put("taskObjectList",taskObjectList);
} // if (taskObjectList.size() > 0){
String auth = username + ":" + passwd; String auth = username + ":" + passwd;
//bb.writeLog("requestObject:"+requestObject.toJSONString()); //bb.writeLog("requestObject:"+requestObject.toJSONString());
String msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth); msgdata = httpRequestUtil.doPostByAuth(portal_todourl,requestObject.toJSONString(),auth);
// }
}
bb.writeLog("msgdata:"+msgdata); bb.writeLog("msgdata:"+msgdata);
if(!"".equals(msgdata)){ if(!"".equals(msgdata)){
JSONObject msgObject = JSONObject.parseObject(msgdata); JSONObject msgObject = JSONObject.parseObject(msgdata);

@ -77,7 +77,7 @@ public class SendPortalWithAddTodoCmd {
String terminal = "1" ; String terminal = "1" ;
String taskType = "0"; String taskType = "0";
String actionType = "0" ; String actionType = "2" ;
String objectAction = "0" ; String objectAction = "0" ;
String objectType = "0"; String objectType = "0";

Loading…
Cancel
Save