TaskService 保存评论
public R saveComment(@PathVariable("id") String id,
@PathVariable("processid") String processid,
String comment){
if(comment==null||"".equals(comment)){
return R.error("请填写评论!");
}
try{
UserEntity userEntity = getUser();
Authentication.setAuthenticatedUserId( userEntity.getUsername());
taskService.addComment(id, processid, comment);
}catch(Exception e){
return R.ok("该流程已经被办理!请刷新列表!");
}
return R.ok("评论保存成功!");
}
- 参数:taskService.addComment(String taskId, String processInstance, String message)