Commit 2e5929a1 authored by 鲁鸿波's avatar 鲁鸿波

东北港口流程图按部门调整成两个

parent a7a8c18e
...@@ -382,7 +382,7 @@ public class THazardWorkPlanServiceImpl extends SuperServiceImpl<THazardWorkPlan ...@@ -382,7 +382,7 @@ public class THazardWorkPlanServiceImpl extends SuperServiceImpl<THazardWorkPlan
String workTypeValue = sysDictData.getDictKey(); String workTypeValue = sysDictData.getDictKey();
String processDefinitionKey = ""; String processDefinitionKey = "";
if (orgTypeByOrgId == 0) { /*if (orgTypeByOrgId == 0) {
if (WorkTypeEnum.CONFINED_SPACE_WORK.getValue().equals(workTypeValue)) { if (WorkTypeEnum.CONFINED_SPACE_WORK.getValue().equals(workTypeValue)) {
processDefinitionKey = "hazardousTaskConfinedSpace"; processDefinitionKey = "hazardousTaskConfinedSpace";
} else if (WorkTypeEnum.CIRCULATING_FUMIGATION.getValue().equals(workTypeValue)) { } else if (WorkTypeEnum.CIRCULATING_FUMIGATION.getValue().equals(workTypeValue)) {
...@@ -404,6 +404,20 @@ public class THazardWorkPlanServiceImpl extends SuperServiceImpl<THazardWorkPlan ...@@ -404,6 +404,20 @@ public class THazardWorkPlanServiceImpl extends SuperServiceImpl<THazardWorkPlan
} else { } else {
processDefinitionKey = "hazardousTaskBLOrg"; processDefinitionKey = "hazardousTaskBLOrg";
} }
}*/
if (orgTypeByOrgId == 0) {
if (WorkTypeEnum.CONFINED_SPACE_WORK.getValue().equals(workTypeValue)) {
processDefinitionKey = "hazardousTaskConfinedSpace";
} else if (WorkTypeEnum.CIRCULATING_FUMIGATION.getValue().equals(workTypeValue)) {
processDefinitionKey = "hazardousTaskStifling";
}else {
processDefinitionKey = "hazardousTaskCommon";
}
} else if (orgTypeByOrgId == 1) {
processDefinitionKey = "BL1";
} else if (orgTypeByOrgId == 2) {
processDefinitionKey = "BL2";
} }
processInsStartParams.setProcessDefinitionKey(processDefinitionKey); processInsStartParams.setProcessDefinitionKey(processDefinitionKey);
processInsStartParams.setOrgId(tHazardWorkPlan.getOrgId()); processInsStartParams.setOrgId(tHazardWorkPlan.getOrgId());
......
...@@ -261,7 +261,7 @@ public class NewSysOrgServiceImpl extends SuperServiceImpl<NewSysOrgDao, NewSysO ...@@ -261,7 +261,7 @@ public class NewSysOrgServiceImpl extends SuperServiceImpl<NewSysOrgDao, NewSysO
@Override @Override
public Integer getOrgTypeByOrgId(String orgId) { public Integer getOrgTypeByOrgId(String orgId) {
TSysConfig tSysConfig = tSysConfigService.getOne(new QueryWrapper<TSysConfig>().like("config_value", orgId)); TSysConfig tSysConfig = tSysConfigService.getOne(new QueryWrapper<TSysConfig>().like("config_value", orgId).eq("status",0));
if (ObjectHelper.isNotEmpty(tSysConfig)) { if (ObjectHelper.isNotEmpty(tSysConfig)) {
String configKey = tSysConfig.getConfigKey(); String configKey = tSysConfig.getConfigKey();
if (configKey.equals("sys.beiliang.depts")) { if (configKey.equals("sys.beiliang.depts")) {
......
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