|
@@ -321,9 +321,23 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
return waitUrl;
|
|
return waitUrl;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public String getUrlByKey(String key) {
|
|
|
|
+ String waitUrl = "";
|
|
|
|
+ // 查询待办页面的 菜单id
|
|
|
|
+ FramePermissionExample framePermissionExample = new FramePermissionExample();
|
|
|
|
+ framePermissionExample.createCriteria().andUrlEqualTo(key);
|
|
|
|
+ List<FramePermission> framePermissions = framePermissionService.selectByExample(framePermissionExample);
|
|
|
|
+ if (CollectionUtils.isNotEmpty(framePermissions)) {
|
|
|
|
+ FramePermission child = framePermissions.get(0);
|
|
|
|
+ waitUrl = "/backstage?menuIndex=" + child.getPid() + "&subMenu=" + child.getId();
|
|
|
|
+ }
|
|
|
|
+ return waitUrl;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 泛微刷新 待办
|
|
|
|
|
|
+ * 泛微推送已办
|
|
*
|
|
*
|
|
* @param flowMainPush
|
|
* @param flowMainPush
|
|
* @param flowMain
|
|
* @param flowMain
|
|
@@ -363,9 +377,9 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
map.put("viewtype", viewtype);
|
|
map.put("viewtype", viewtype);
|
|
map.put("receivets", receivets);
|
|
map.put("receivets", receivets);
|
|
|
|
|
|
- log.info("泛微刷新待办详情:{}", JSON.toJSONString(map));
|
|
|
|
|
|
+ log.info("泛微推送已办详情:{}", JSON.toJSONString(map));
|
|
String result = OAUtil.receiveRequestInfoByJson(map);
|
|
String result = OAUtil.receiveRequestInfoByJson(map);
|
|
- log.info("泛微刷新待办结果:{}", result);
|
|
|
|
|
|
+ log.info("泛微推送已办结果:{}", result);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("推送异常", e);
|
|
log.error("推送异常", e);
|
|
}
|
|
}
|
|
@@ -462,12 +476,11 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
String routeParam = "id=" + flowId + "&flowMainPushId=" + flowMainPush.getId() + "&applyUser=" + flowMain.getApplyUser();
|
|
String routeParam = "id=" + flowId + "&flowMainPushId=" + flowMainPush.getId() + "&applyUser=" + flowMain.getApplyUser();
|
|
addHandle(title, typeEnum, srcUserType, srcUserId, srcUserName, receiveUserId, routeParam);
|
|
addHandle(title, typeEnum, srcUserType, srcUserId, srcUserName, receiveUserId, routeParam);
|
|
|
|
|
|
- // TODO: 2024/11/21 和泛OA对接 推送待办
|
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
String requestname = applyTheme;
|
|
String requestname = applyTheme;
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
- String pcurl = serverUrl + "?loginid=" + username;
|
|
|
|
|
|
+ String pcurl = serverUrl + "?loginid=" + username + "&" + routeParam;
|
|
String appurl = pcurl;
|
|
String appurl = pcurl;
|
|
String isremark = "0";
|
|
String isremark = "0";
|
|
String viewtype = "0";
|
|
String viewtype = "0";
|
|
@@ -531,17 +544,15 @@ public class ParkWaitHandleService implements BaseService<ParkWaitHandle, ParkWa
|
|
String routeParam = "id=" + flowId + "&flowMainPushId=" + push.getId() + "&applyUser=" + flowMain.getApplyUser();
|
|
String routeParam = "id=" + flowId + "&flowMainPushId=" + push.getId() + "&applyUser=" + flowMain.getApplyUser();
|
|
addHandle(title, typeEnum, srcUserType, srcUserId, srcUserName, receiveUserId, routeParam);
|
|
addHandle(title, typeEnum, srcUserType, srcUserId, srcUserName, receiveUserId, routeParam);
|
|
|
|
|
|
- // TODO: 2024/11/21 和泛微对接 推送信息
|
|
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
FrameUser receiveUser = frameUserService.selectByPrimaryKey(receiveUserId);
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
String username = encryptUsername(receiveUser.getUsername());
|
|
String requestname = flowMain.getApplyTheme();
|
|
String requestname = flowMain.getApplyTheme();
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
String workflowname = ConstantFlowType.PAYMENT_NAME;
|
|
String nodeName = flowMainPush.getNodeName();
|
|
String nodeName = flowMainPush.getNodeName();
|
|
- String pcurl = serverUrl + "?loginid=" + username;
|
|
|
|
|
|
+ String pcurl = serverUrl + "?loginid=" + username + "&" + routeParam;
|
|
String appurl = pcurl;
|
|
String appurl = pcurl;
|
|
String isremark = "0";
|
|
String isremark = "0";
|
|
String viewtype = "0";
|
|
String viewtype = "0";
|
|
- // TODO: 2024/11/15 创建者和接收者需求oa协商
|
|
|
|
String creator = ShiroUtils.getUser().getPhone();
|
|
String creator = ShiroUtils.getUser().getPhone();
|
|
String receiver = receiveUser.getPhone();
|
|
String receiver = receiveUser.getPhone();
|
|
String date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, new Date());
|
|
String date = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, new Date());
|