增加手动推送OA

This commit is contained in:
Mr-wang 2023-08-31 16:06:07 +08:00
parent e5be8bb8df
commit a39f097687

View File

@ -146,7 +146,7 @@ public class InsertOAJob implements IJob {
// list.add("10036614");
// list.add("10056870");
new_uid = new_uid.join(",",list);
new_uid = new_uid.join(",",sendList);
long startTimes = System.currentTimeMillis();
String[] users = new_uid.split(",");
System.out.println("new_uid>>>>>>>>>>>>>>"+users.length);
@ -328,16 +328,16 @@ public class InsertOAJob implements IJob {
split) {
BO bos = new BO();
bos.set("PROCESSTITLE", processInstance.getTitle());
bos.set("JSRCODE", jsonObject.getString("user"));
bos.set("JSRCODE", user_id);
bos.set("FBJG",jsonObject.getString("deptname"));
bos.set("FFRCODE", jsonObject.getString("dept"));
bos.set("FFRCODE", jsonObject.getString("user"));
bos.set("FBRQ", jsonObject.getString("date"));
bos.set("ZT", "未读");
String pcurl = "https://bpm.yili.com:8088/portal/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + processInstance.getId() + "&taskInstId="+taskInstance.getId()+"&usercode=" + user_id;
bos.set("PCURL", pcurl);
String wqurl = "https://bpm.yili.com:8088/portal/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + processInstance.getId() + "&taskInstId="+taskInstance.getId()+"";
bos.set("QWURL", wqurl);
SDK.getBOAPI().create("BO_ACT_OA_SUPP_SENDING", bo, processInstance.getId(),processInstance.getCreateUser());
SDK.getBOAPI().create("BO_ACT_OA_SUPP_SENDING", bos, processInstance.getId(),processInstance.getCreateUser());
}
}else {
BO bos = new BO();
@ -351,7 +351,7 @@ public class InsertOAJob implements IJob {
bos.set("PCURL", pcurl);
String wqurl = "https://bpm.yili.com:8088/portal/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + processInstance.getId() + "&taskInstId="+taskInstance.getId()+"";
bos.set("QWURL", wqurl);
SDK.getBOAPI().create("BO_ACT_OA_SUPP_SENDING", bo, processInstance.getId(),processInstance.getCreateUser());
SDK.getBOAPI().create("BO_ACT_OA_SUPP_SENDING", bos, processInstance.getId(),processInstance.getCreateUser());
}