style: 年度制修订-各部门主动上报代码整理
This commit is contained in:
+3
-1
@@ -1,9 +1,11 @@
|
|||||||
package com.jero.modules.activiti.process.esAnnualReport.controller;
|
package com.jero.modules.activiti.process.esAnnualReport.controller;
|
||||||
|
|
||||||
import com.jero.common.api.vo.Result;
|
import com.jero.common.api.vo.Result;
|
||||||
|
import com.jero.common.api.vo.ResultCommon;
|
||||||
import com.jero.common.aspect.annotation.AutoLog;
|
import com.jero.common.aspect.annotation.AutoLog;
|
||||||
import com.jero.common.aspect.annotation.Translation;
|
import com.jero.common.aspect.annotation.Translation;
|
||||||
import com.jero.common.constant.enums.YesOrNoEnum;
|
import com.jero.common.constant.enums.YesOrNoEnum;
|
||||||
|
import com.jero.common.util.MessageUtils;
|
||||||
import com.jero.modules.activiti.process.common.entity.TransferVO;
|
import com.jero.modules.activiti.process.common.entity.TransferVO;
|
||||||
import com.jero.modules.activiti.process.common.service.ActFlowCommonService;
|
import com.jero.modules.activiti.process.common.service.ActFlowCommonService;
|
||||||
import com.jero.modules.activiti.process.esAnnualReport.entity.ProcessEsAnnualReport;
|
import com.jero.modules.activiti.process.esAnnualReport.entity.ProcessEsAnnualReport;
|
||||||
@@ -85,7 +87,7 @@ public class ESAnnualReportController {
|
|||||||
return Result.OK(dataList);
|
return Result.OK(dataList);
|
||||||
} else {
|
} else {
|
||||||
List<String> msg = (List<String>) resultMap.get("msg");
|
List<String> msg = (List<String>) resultMap.get("msg");
|
||||||
return Result.error("导入失败", msg);
|
return Result.error(MessageUtils.getMessage(ResultCommon.IMPORT_ERROR), msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-8
@@ -79,9 +79,6 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
|
|||||||
@Resource
|
@Resource
|
||||||
private TaskService taskService;
|
private TaskService taskService;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private EnterpriseStandardUtil esUtil;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void startProcess(AnnualReportDataVO annualReportData) {
|
public void startProcess(AnnualReportDataVO annualReportData) {
|
||||||
// 流程Key
|
// 流程Key
|
||||||
@@ -154,7 +151,6 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
|
|||||||
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
|
||||||
String taskName = task.getName();
|
String taskName = task.getName();
|
||||||
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
||||||
String processDefinitionId = actFlowCommonService.getProcessDefId(processInstanceId);
|
|
||||||
switch (taskName) {
|
switch (taskName) {
|
||||||
case CONTACT_USER_DISTRIBUTE:
|
case CONTACT_USER_DISTRIBUTE:
|
||||||
ProcessEsAnnualReport annualReport = annualReportDataVO.getDataList().get(0);
|
ProcessEsAnnualReport annualReport = annualReportDataVO.getDataList().get(0);
|
||||||
@@ -217,17 +213,16 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
|
|||||||
@Override
|
@Override
|
||||||
public AnnualReportDataVO getHandleData(String taskId) {
|
public AnnualReportDataVO getHandleData(String taskId) {
|
||||||
String userId = UserUtils.getUserId();
|
String userId = UserUtils.getUserId();
|
||||||
|
if (!actFlowCommonService.taskExists(taskId)) {
|
||||||
|
throw new JeroBootException("任务不存在");
|
||||||
|
}
|
||||||
String executionId = taskService.createTaskQuery().taskId(taskId).singleResult().getExecutionId();
|
String executionId = taskService.createTaskQuery().taskId(taskId).singleResult().getExecutionId();
|
||||||
// 根据当前执行Id获取所有子执行Id
|
// 根据当前执行Id获取所有子执行Id
|
||||||
List<String> executionIdList = actFlowCommonService.getAllChildExecutionIds(executionId);
|
List<String> executionIdList = actFlowCommonService.getAllChildExecutionIds(executionId);
|
||||||
executionIdList.add(executionId);
|
executionIdList.add(executionId);
|
||||||
if (!actFlowCommonService.taskExists(taskId)) {
|
|
||||||
throw new JeroBootException("任务不存在");
|
|
||||||
}
|
|
||||||
AnnualReportDataVO annualReportDataVO = new AnnualReportDataVO();
|
AnnualReportDataVO annualReportDataVO = new AnnualReportDataVO();
|
||||||
// 使用流程引擎根据taskId找到流程实例Id
|
// 使用流程引擎根据taskId找到流程实例Id
|
||||||
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
||||||
String processDefinitionId = actFlowCommonService.getProcessDefId(processInstanceId);
|
|
||||||
// 获取流程通用数据
|
// 获取流程通用数据
|
||||||
ProcessAll process = processAllService.getByProcessInstanceId(processInstanceId);
|
ProcessAll process = processAllService.getByProcessInstanceId(processInstanceId);
|
||||||
CommonVO commonVO = new CommonVO();
|
CommonVO commonVO = new CommonVO();
|
||||||
|
|||||||
Reference in New Issue
Block a user