|
@@ -334,26 +334,24 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
String receiveUserId = flowMainPush.getPushUser();
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
|
- String syscode = "AJ";
|
|
|
String requestname = flowMain.getApplyTheme();
|
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
|
String nodeName = flowMainPush.getNodeName();
|
|
|
String pcurl = serverUrl + "&loginid=" + username;
|
|
|
- String appurl = "";
|
|
|
+ String appurl = pcurl;
|
|
|
String isremark = "2";
|
|
|
String viewtype = "0";
|
|
|
- // TODO: 2024/11/15 创建者和接收者需求oa协商
|
|
|
- String creator = "ceshi";
|
|
|
- String receiver = "ceshi";
|
|
|
+ String creator = ShiroUtils.getUser().getPhone();
|
|
|
+ String receiver = receiveUser.getPhone();
|
|
|
String date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, new Date());
|
|
|
String receivets = System.currentTimeMillis() + "";
|
|
|
|
|
|
Map map = new HashMap<String, Object>();
|
|
|
- map.put("syscode", syscode);
|
|
|
+ map.put("syscode", OAUtil.syscode);
|
|
|
map.put("flowid", flowId);
|
|
|
map.put("requestname", requestname);
|
|
|
map.put("workflowname", workflowname);
|
|
|
- map.put("nodeName", nodeName);
|
|
|
+ map.put("nodename", nodeName);
|
|
|
map.put("pcurl", pcurl);
|
|
|
map.put("appurl", appurl);
|
|
|
map.put("creator", creator);
|
|
@@ -375,7 +373,7 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 泛微刷新 待办
|
|
|
+ * 泛微推送已办
|
|
|
* @param flowMainPushId
|
|
|
* @param flowMain
|
|
|
*/
|
|
@@ -388,26 +386,24 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
String receiveUserId = flowMainPush.getPushUser();
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
|
- String syscode = "AJ";
|
|
|
String requestname = flowMain.getApplyTheme();
|
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
|
String nodeName = flowMainPush.getNodeName();
|
|
|
String pcurl = serverUrl + "&loginid=" + username;
|
|
|
- String appurl = "";
|
|
|
+ String appurl = pcurl;
|
|
|
String isremark = "2";
|
|
|
String viewtype = "0";
|
|
|
- // TODO: 2024/11/15 创建者和接收者需求oa协商
|
|
|
- String creator = "ceshi";
|
|
|
- String receiver = "ceshi";
|
|
|
+ String creator = ShiroUtils.getUser().getPhone();
|
|
|
+ String receiver = receiveUser.getPhone();
|
|
|
String date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, new Date());
|
|
|
String receivets = System.currentTimeMillis() + "";
|
|
|
|
|
|
Map map = new HashMap<String, Object>();
|
|
|
- map.put("syscode", syscode);
|
|
|
+ map.put("syscode", OAUtil.syscode);
|
|
|
map.put("flowid", flowId);
|
|
|
map.put("requestname", requestname);
|
|
|
map.put("workflowname", workflowname);
|
|
|
- map.put("nodeName", nodeName);
|
|
|
+ map.put("nodename", nodeName);
|
|
|
map.put("pcurl", pcurl);
|
|
|
map.put("appurl", appurl);
|
|
|
map.put("creator", creator);
|
|
@@ -418,9 +414,9 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
map.put("viewtype", viewtype);
|
|
|
map.put("receivets", receivets);
|
|
|
|
|
|
- log.info("泛微刷新待办详情:{}", JSON.toJSONString(map));
|
|
|
+ log.info("泛微推送已办详情:{}", JSON.toJSONString(map));
|
|
|
String result = OAUtil.receiveRequestInfoByJson(map);
|
|
|
- log.info("泛微刷新待办结果:{}", result);
|
|
|
+ log.info("泛微推送已办结果:{}", result);
|
|
|
} catch (Exception e) {
|
|
|
log.error("推送异常", e);
|
|
|
}
|
|
@@ -466,24 +462,22 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
// TODO: 2024/11/21 和泛OA对接 推送待办
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
|
- String syscode = "AJ";
|
|
|
String requestname = applyTheme;
|
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
|
String pcurl = serverUrl + "&loginid=" + username;
|
|
|
- String appurl = "";
|
|
|
+ String appurl = pcurl;
|
|
|
String isremark = "0";
|
|
|
String viewtype = "0";
|
|
|
- // TODO: 2024/11/15 创建者和接收者需求oa协商
|
|
|
- String creator = "ceshi";
|
|
|
- String receiver = "ceshi";
|
|
|
+ String creator = ShiroUtils.getUser().getPhone();
|
|
|
+ String receiver = receiveUser.getPhone();
|
|
|
String date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, new Date());
|
|
|
String receivets = System.currentTimeMillis() + "";
|
|
|
Map map = new HashMap<String, Object>();
|
|
|
- map.put("syscode", syscode);
|
|
|
+ map.put("syscode", OAUtil.syscode);
|
|
|
map.put("flowid", flowId);
|
|
|
map.put("requestname", requestname);
|
|
|
map.put("workflowname", workflowname);
|
|
|
- map.put("nodeName", nodeName);
|
|
|
+ map.put("nodename", nodeName);
|
|
|
map.put("pcurl", pcurl);
|
|
|
map.put("appurl", appurl);
|
|
|
map.put("creator", creator);
|
|
@@ -538,12 +532,11 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
// TODO: 2024/11/21 和泛微对接 推送信息
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
|
- String syscode = "AJ";
|
|
|
String requestname = flowMain.getApplyTheme();
|
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
|
String nodeName = flowMainPush.getNodeName();
|
|
|
String pcurl = serverUrl + "&loginid=" + username;
|
|
|
- String appurl = "";
|
|
|
+ String appurl = pcurl;
|
|
|
String isremark = "0";
|
|
|
String viewtype = "0";
|
|
|
// TODO: 2024/11/15 创建者和接收者需求oa协商
|
|
@@ -553,11 +546,11 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
|
String receivets = System.currentTimeMillis() + "";
|
|
|
|
|
|
Map map = new HashMap<String, Object>();
|
|
|
- map.put("syscode", syscode);
|
|
|
+ map.put("syscode", OAUtil.syscode);
|
|
|
map.put("flowid", flowId);
|
|
|
map.put("requestname", requestname);
|
|
|
map.put("workflowname", workflowname);
|
|
|
- map.put("nodeName", nodeName);
|
|
|
+ map.put("nodename", nodeName);
|
|
|
map.put("pcurl", pcurl);
|
|
|
map.put("appurl", appurl);
|
|
|
map.put("creator", creator);
|