流程待办集成0.1

This commit is contained in:
李靖 2024-05-21 10:58:33 +08:00
parent 700b095943
commit 84e0eb1f77
1 changed files with 8 additions and 6 deletions

View File

@ -321,7 +321,7 @@ public class MessageListen extends AbstractMessageServiceHandler {
String userName = (String) var47.next();
if (userName.equals(startUserName)) {
Map<String, Object> requestBody = new HashMap();
requestBody.put("syscode", "kingdee");
requestBody.put("syscode", "JD");
requestBody.put("flowid", String.valueOf(processInstanceId));
requestBody.put("requestname", "主题:"+title);
requestBody.put("workflowname", entityName + "审批流程");
@ -342,7 +342,7 @@ public class MessageListen extends AbstractMessageServiceHandler {
// requestBodyList.add(requestBody);
} else {
Map<String, Object> requestBody = new HashMap();
requestBody.put("syscode", "kingdee");
requestBody.put("syscode", "JD");
requestBody.put("flowid", String.valueOf(processInstanceId));
if(title!=null){
requestBody.put("requestname", title);
@ -637,10 +637,12 @@ public class MessageListen extends AbstractMessageServiceHandler {
// log.info("{已办完成}", jsonStr);
log.info("推送消息到中环.....");
QFilter filter = new QFilter("number", "=", "001");
DynamicObject kd21_oa_matters = BusinessDataServiceHelper.loadSingle("kd21_oa_matters", "id,name,kd21_largetextfield", new QFilter[]{filter});
String kd21_largetextfield = kd21_oa_matters.getString("kd21_largetextfield");
String apiUrl = kd21_largetextfield;
// QFilter filter = new QFilter("number", "=", "001");
// DynamicObject kd21_oa_matters = BusinessDataServiceHelper.loadSingle("kd21_oa_matters", "id,name,kd21_largetextfield", new QFilter[]{filter});
// String kd21_largetextfield = kd21_oa_matters.getString("kd21_largetextfield");
// String apiUrl = kd21_largetextfield;
// "/api/hrm/resful/getHrmUserInfoWithPage"
String apiUrl = "http://" + "10.157.226.9:8088" + "/rest/ofs/ReceiveRequestInfoByJson";
RestTemplate restTemplate = new RestTemplate();
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);