|
|
@@ -18,6 +18,7 @@ import com.hz.pm.api.projectlib.model.entity.ProjectInst; |
|
|
|
import com.hz.pm.api.projectlib.service.IProjectInstService; |
|
|
|
import com.hz.pm.api.projectlib.service.IProjectService; |
|
|
|
import com.hz.pm.api.user.security.model.UserFullInfoDTO; |
|
|
|
import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.basic.util.CollUtils; |
|
|
|
import com.wflow.bean.entity.WflowModelHistorys; |
|
|
|
import com.wflow.workflow.service.ProcessModelHistorysService; |
|
|
@@ -83,6 +84,13 @@ public class TaskCreatedListener implements FlowableEventListener { |
|
|
|
case XC_APPROVAL_PROCESS: |
|
|
|
case PROJECT_RECORD_APPROVAL_PROCESS: |
|
|
|
case ACCEPTANCE_DECLARATION_APPROVAL_PROCESS: |
|
|
|
case ADAPTION: |
|
|
|
case SELF_TEST: |
|
|
|
case TEST_VALID: |
|
|
|
case PROJECT_CHANGE: |
|
|
|
case PROJECT_STOPPED: |
|
|
|
case COMPLIANCE_REVIEW: |
|
|
|
case PROJECT_REVIEW: |
|
|
|
// 发送信产平台待办 |
|
|
|
MHTodoTypeEnum todoType = getMhTodoTypeEnum(procType); |
|
|
|
String content = String.format("【%s】的【%s】需要您审核,请及时处理。", |
|
|
@@ -131,6 +139,13 @@ public class TaskCreatedListener implements FlowableEventListener { |
|
|
|
case XC_APPROVAL_PROCESS: |
|
|
|
case PROJECT_RECORD_APPROVAL_PROCESS: |
|
|
|
case ACCEPTANCE_DECLARATION_APPROVAL_PROCESS: |
|
|
|
case ADAPTION: |
|
|
|
case SELF_TEST: |
|
|
|
case TEST_VALID: |
|
|
|
case PROJECT_CHANGE: |
|
|
|
case PROJECT_STOPPED: |
|
|
|
case COMPLIANCE_REVIEW: |
|
|
|
case PROJECT_REVIEW: |
|
|
|
MHTodoTypeEnum todoType = getMhTodoTypeEnum(procType); |
|
|
|
if (orUserTask) { |
|
|
|
List<HistoricTaskInstance> tasks = wflowHelper.listFinishedTasks(taskDefKey); |
|
|
@@ -156,9 +171,32 @@ public class TaskCreatedListener implements FlowableEventListener { |
|
|
|
case PROJECT_RECORD_APPROVAL_PROCESS: |
|
|
|
todoType = MHTodoTypeEnum.DECLARED_RECORD_AUDIT; |
|
|
|
break; |
|
|
|
default: |
|
|
|
case PROJECT_REVIEW: |
|
|
|
todoType = MHTodoTypeEnum.PROJECT_REVIEW_AUDIT; |
|
|
|
break; |
|
|
|
case COMPLIANCE_REVIEW: |
|
|
|
todoType = MHTodoTypeEnum.COMPLIANCE_REVIEW_AUDIT; |
|
|
|
break; |
|
|
|
case PROJECT_STOPPED: |
|
|
|
todoType = MHTodoTypeEnum.PROJECT_STOPPED_AUDIT; |
|
|
|
break; |
|
|
|
case TEST_VALID: |
|
|
|
todoType = MHTodoTypeEnum.TEST_VALID_AUDIT; |
|
|
|
break; |
|
|
|
case PROJECT_CHANGE: |
|
|
|
todoType = MHTodoTypeEnum.PROJECT_CHANGE_AUDIT; |
|
|
|
break; |
|
|
|
case ADAPTION: |
|
|
|
todoType = MHTodoTypeEnum.ADAPTION_AUDIT; |
|
|
|
break; |
|
|
|
case SELF_TEST: |
|
|
|
todoType = MHTodoTypeEnum.SELF_TEST_AUDIT; |
|
|
|
break; |
|
|
|
case ACCEPTANCE_DECLARATION_APPROVAL_PROCESS: |
|
|
|
todoType = MHTodoTypeEnum.FINAL_INSPECT_AUDIT; |
|
|
|
break; |
|
|
|
default: |
|
|
|
throw BizException.wrap("未知待办类型:" + procType); |
|
|
|
} |
|
|
|
return todoType; |
|
|
|
} |
|
|
|