Commit c5376284 authored by chenzhao's avatar chenzhao

计划审核通过后 修改任务生成时间

parent c2e09d4d
......@@ -2,6 +2,7 @@ package com.yeejoin.amos.supervision.business.service.impl;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.biz.common.service.IWorkflowExcuteService;
import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
import com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService;
import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import com.yeejoin.amos.supervision.business.dao.repository.IPlanAuditDao;
......@@ -77,6 +78,8 @@ public class PlanAuditServiceImpl implements IPlanAuditService {
workflowExcuteService.CompleteTask(instanceId, conditionValue, reginParams);
ReginParams.PersonIdentity personIdentity = reginParams.getPersonIdentity();
String userId = reginParams.getUserModel().getUserId();
plan.setNextGenDate(DateUtils.dateTimeToDate(new Date()));
planService.updateGenDate(plan);
// 更新计划状态,指定执行人
updatePlanStatus(condition,plan,instanceId, conditionValue);
// 更新流水表
......
......@@ -242,6 +242,11 @@ public class PlanServiceImpl implements IPlanService {
}
}
public void updateGenDate(Plan plan){
planMapper.updateById(plan);
}
/**
* 根据工作流获取下一审核人角色下的所有用户ID =》规则推送消息
* @return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment