|
@@ -1015,8 +1015,9 @@ public class FlowTaskService {
|
|
* @param procInsId
|
|
* @param procInsId
|
|
* @param flag “yes”通过 “no”驳回
|
|
* @param flag “yes”通过 “no”驳回
|
|
* @param assignee 设置下一步处理人
|
|
* @param assignee 设置下一步处理人
|
|
|
|
+ * @param comm 审核意见
|
|
*/
|
|
*/
|
|
- public void auditByProcInsIdAndFlag(String procInsId,String flag,String assignee) throws Exception {
|
|
|
|
|
|
+ public void auditByProcInsIdAndFlag(String procInsId,String flag,String assignee,String comm) throws Exception {
|
|
// 获取审核操作需要的参数
|
|
// 获取审核操作需要的参数
|
|
List<Flow> flows = this.historicTaskList(procInsId);
|
|
List<Flow> flows = this.historicTaskList(procInsId);
|
|
Flow flow = flows.get(flows.size() - 1);
|
|
Flow flow = flows.get(flows.size() - 1);
|
|
@@ -1028,6 +1029,7 @@ public class FlowTaskService {
|
|
saveParam.setProcDefId(histIns.getProcessDefinitionId());
|
|
saveParam.setProcDefId(histIns.getProcessDefinitionId());
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
Map<String, Object> vars = Maps.newHashMap();
|
|
TaskComment comment = new TaskComment();
|
|
TaskComment comment = new TaskComment();
|
|
|
|
+ comment.setMessage(comm);
|
|
if ("yes".equals(flag)) {
|
|
if ("yes".equals(flag)) {
|
|
vars.put("agree", true); // 审核通过
|
|
vars.put("agree", true); // 审核通过
|
|
comment.setType(ActionType.AGREE.getType());
|
|
comment.setType(ActionType.AGREE.getType());
|