|
|
@ -480,28 +480,10 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
}
|
|
|
|
}
|
|
|
|
OcrTaskchildPicture childPicture = ocrTaskchildPictureService.getById(Long.parseLong(taskVO.getFormid()));
|
|
|
|
OcrTaskchildPicture childPicture = ocrTaskchildPictureService.getById(Long.parseLong(taskVO.getFormid()));
|
|
|
|
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
|
|
|
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
|
|
|
cn.jyjz.xiaoyao.common.base.vo.User byLoginname = userTokenService.findByLoginname(childPicture.getAssignee());
|
|
|
|
sendMsg(childPicture,userToken);
|
|
|
|
OcrMsg msg = new OcrMsg();
|
|
|
|
childPicture.setTaskId(taskData.getId());
|
|
|
|
msg.setCreateTime(System.currentTimeMillis());
|
|
|
|
childPicture.setTaskname(taskData.getName());
|
|
|
|
msg.setSendTime(System.currentTimeMillis());
|
|
|
|
ocrTaskchildPictureService.updateById(childPicture);
|
|
|
|
msg.setReceiveUserIds(byLoginname.getId().toString());
|
|
|
|
|
|
|
|
msg.setTitile(model.getFromtaskname());
|
|
|
|
|
|
|
|
msg.setSender(Long.valueOf(userToken.getUserid()));
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
|
|
|
jsonObject.put("taskId", model.getFromtaskid());
|
|
|
|
|
|
|
|
jsonObject.put("nodeName", model.getTaskname());
|
|
|
|
|
|
|
|
jsonObject.put("states", 1);
|
|
|
|
|
|
|
|
jsonObject.put("sendUserId", userToken.getUserid());
|
|
|
|
|
|
|
|
jsonObject.put("sendUserName", userToken.getUsername());
|
|
|
|
|
|
|
|
jsonObject.put("sendTime", System.currentTimeMillis());
|
|
|
|
|
|
|
|
jsonObject.put("fromId", model.getId().toString());
|
|
|
|
|
|
|
|
jsonObject.put("taskName", model.getFromtaskname());
|
|
|
|
|
|
|
|
jsonObject.put("packageId", model.getPackageid());
|
|
|
|
|
|
|
|
msg.setBusJson(jsonObject.toJSONString());
|
|
|
|
|
|
|
|
msg.setCreateBy(Long.valueOf(userToken.getUserid()));
|
|
|
|
|
|
|
|
msg.setCreateTime(System.currentTimeMillis());
|
|
|
|
|
|
|
|
msg.setSendStatus("1");
|
|
|
|
|
|
|
|
ocrMsgService.save(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//增加未查看记录
|
|
|
|
//增加未查看记录
|
|
|
|
userViewApproeService.saveUserViewApproe(formData.getAssignee(), formData.getFormid().toString(), formData.getTenantid().toString());
|
|
|
|
userViewApproeService.saveUserViewApproe(formData.getAssignee(), formData.getFormid().toString(), formData.getTenantid().toString());
|
|
|
@ -550,6 +532,31 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void sendMsg(OcrTaskchildPicture model,UserToken userToken){
|
|
|
|
|
|
|
|
cn.jyjz.xiaoyao.common.base.vo.User byLoginname = userTokenService.findByLoginname(model.getAssignee());
|
|
|
|
|
|
|
|
OcrMsg msg = new OcrMsg();
|
|
|
|
|
|
|
|
msg.setCreateTime(System.currentTimeMillis());
|
|
|
|
|
|
|
|
msg.setSendTime(System.currentTimeMillis());
|
|
|
|
|
|
|
|
msg.setReceiveUserIds(byLoginname.getId().toString());
|
|
|
|
|
|
|
|
msg.setTitile(model.getFromtaskname());
|
|
|
|
|
|
|
|
msg.setSender(Long.valueOf(userToken.getUserid()));
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
|
|
|
jsonObject.put("taskId", model.getFromtaskid());
|
|
|
|
|
|
|
|
jsonObject.put("nodeName", model.getTaskname());
|
|
|
|
|
|
|
|
jsonObject.put("states", 1);
|
|
|
|
|
|
|
|
jsonObject.put("sendUserId", userToken.getUserid());
|
|
|
|
|
|
|
|
jsonObject.put("sendUserName", userToken.getUsername());
|
|
|
|
|
|
|
|
jsonObject.put("sendTime", System.currentTimeMillis());
|
|
|
|
|
|
|
|
jsonObject.put("fromId", model.getId().toString());
|
|
|
|
|
|
|
|
jsonObject.put("taskName", model.getFromtaskname());
|
|
|
|
|
|
|
|
jsonObject.put("packageId", model.getPackageid());
|
|
|
|
|
|
|
|
msg.setBusJson(jsonObject.toJSONString());
|
|
|
|
|
|
|
|
msg.setCreateBy(Long.valueOf(userToken.getUserid()));
|
|
|
|
|
|
|
|
msg.setCreateTime(System.currentTimeMillis());
|
|
|
|
|
|
|
|
msg.setSendStatus("1");
|
|
|
|
|
|
|
|
ocrMsgService.save(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 更新当前节点处理人信息
|
|
|
|
* 更新当前节点处理人信息
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -573,7 +580,7 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
if (StringUtils.isNotBlank(businesskey)) {
|
|
|
|
if (StringUtils.isNotBlank(businesskey)) {
|
|
|
|
String[] busskey = businesskey.split(SystemConstantsOa.OA_BUSSINESS_KEY_SPLIT);
|
|
|
|
String[] busskey = businesskey.split(SystemConstantsOa.OA_BUSSINESS_KEY_SPLIT);
|
|
|
|
iFormCustomService = SpringUtils.getBean(busskey[2]);
|
|
|
|
iFormCustomService = SpringUtils.getBean(busskey[2]);
|
|
|
|
iFormCustomService.updateForm(busskey[1], processDefinition.getDeploymentId(), processDefinition.getId(), flowTaskCompleteVO.getAssignee(), flowTaskCompleteVO.getTaskId(), processInstanceId, task.getName());
|
|
|
|
iFormCustomService.updateForm(busskey[1], processDefinition.getDeploymentId(), processDefinition.getId(), flowTaskCompleteVO.getAssignee(), flowTaskCompleteVO.getTaskId(), processInstanceId, task);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|