|
@@ -36,7 +36,7 @@ public class RSImplService implements RSService {
|
|
|
private YDService ydService;
|
|
|
|
|
|
@Autowired
|
|
|
- private DDClient_Workflow ddsClient_workflow;
|
|
|
+ private DDClient_Workflow ddClientWorkflow;
|
|
|
@Autowired
|
|
|
private YDClient ydClient;
|
|
|
|
|
@@ -227,9 +227,13 @@ public class RSImplService implements RSService {
|
|
|
.build();
|
|
|
if (UtilMap.getBoolean(data, "isNotice")) {
|
|
|
ydParam.setAtUserId(UtilMap.getString(data, "atUserId"));
|
|
|
-// ddsClient_workflow.createTBTask(ddClient.getAccessToken(),UtilMap.getString(data, "atUserId"),"标题",UtilMap.getString(data, "content"),
|
|
|
-// UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().plusDays(7).atTime(LocalTime.MAX)), Arrays.asList(""),Arrays.asList("")
|
|
|
-// ,UtilMap.map("appUrl, pcUrl","www","www"),false,30,UtilMap.map("dingNotify","1"));
|
|
|
+ }
|
|
|
+ if(UtilMap.getBoolean(data, "isTodo")){
|
|
|
+ /*查询钉钉人员*/
|
|
|
+ Map userInfo= ddClient_contacts.getUserInfoById(ddClient.getAccessToken(), UtilMap.getString(data, "userId"));
|
|
|
+ ddClientWorkflow.createTBTask(ddClient.getAccessToken(),UtilMap.getString(data, "userId"),"流程咨询:"+UtilMap.getString(data, "content"),UtilMap.getString(data, "content"),
|
|
|
+ UtilDateTime.getLocalDateTimeTimeStamp(LocalDate.now().plusDays(7).atTime(LocalTime.MAX)), Arrays.asList(data.get("atUserId").toString().split(",")),null
|
|
|
+ ,UtilMap.map("appUrl, pcUrl","https://rise.aliwork.com/APP_VCTRP6227CC8368NDOID/processDetail"+"?procInsId="+processInstanceId,"https://rise.aliwork.com/APP_VCTRP6227CC8368NDOID/processDetail"+"?procInsId="+processInstanceId),false,30,UtilMap.map("dingNotify","1"));
|
|
|
}
|
|
|
|
|
|
ydClient.operateData(ydParam, YDConf.FORM_OPERATION.remarks);
|