|
|
|
@ -1159,6 +1159,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
List<PlmTechnicalSpecificationTeamData> operatorList = technicalSpecificationMapper.selectTechnicalSpecificationTeam(data.getSite(), data.getCodeNo()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> engineers = operatorList.stream().filter(a -> "engineer".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> technicians = operatorList.stream().filter(a -> "technician".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> dccs = operatorList.stream().filter(a -> "dcc".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
// 根据字段对应的数据库表+字段查询出数据 |
|
|
|
for (PlmRequestDetailVo nodeDetail : nodeDetails) { |
|
|
|
@ -1201,7 +1202,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
} |
|
|
|
fieldValues.append(oaIds.get(0).getId()).append(","); |
|
|
|
} |
|
|
|
} else if ("technician".equals(nodeDetail.getPlmField().split("#")[1])) { |
|
|
|
} else if ("technician".equals(nodeDetail.getPlmField().split("#")[1])) { |
|
|
|
for (PlmTechnicalSpecificationTeamData technician : technicians) { |
|
|
|
// 根据域控账号获取oa人员id |
|
|
|
List<OaUserData> oaIds = sysUserDao.selectOaIdByAccount(technician.getDomainControlAccount()); |
|
|
|
@ -1210,6 +1211,15 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
} |
|
|
|
fieldValues.append(oaIds.get(0).getId()).append(","); |
|
|
|
} |
|
|
|
} else if ("dcc".equals(nodeDetail.getPlmField().split("#")[1])) { |
|
|
|
for (PlmTechnicalSpecificationTeamData dcc : dccs) { |
|
|
|
// 根据域控账号获取oa人员id |
|
|
|
List<OaUserData> oaIds = sysUserDao.selectOaIdByAccount(dcc.getDomainControlAccount()); |
|
|
|
if (oaIds.isEmpty()) { |
|
|
|
throw new RuntimeException("未获取到域控账号对应的OA人员!"); |
|
|
|
} |
|
|
|
fieldValues.append(oaIds.get(0).getId()).append(","); |
|
|
|
} |
|
|
|
} |
|
|
|
fieldValue = fieldValues.length() > 0 ? fieldValues.substring(0, fieldValues.length() - 1) : ""; |
|
|
|
} |
|
|
|
@ -1265,6 +1275,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
List<PlmTechnicalSpecificationTeamData> operatorList = technicalSpecificationMapper.selectTechnicalSpecificationTeam(data.getSite(), data.getCodeNo()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> engineers = operatorList.stream().filter(a -> "engineer".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> technicians = operatorList.stream().filter(a -> "technician".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
List<PlmTechnicalSpecificationTeamData> dccs = operatorList.stream().filter(a -> "dcc".equals(a.getType())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
ParamData paramData = new ParamData(data.getSite(), baseData.get("nodeId"), data.getCodeNo(), data.getUserName(), baseData.get("classificationNo"), |
|
|
|
baseData.get("userId"), baseData.get("workflowId"), baseData.get("workflowname"), baseData.get("requestName"), baseData.get("path"), baseData.get("requestId"), |
|
|
|
@ -1278,7 +1289,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
cData.setNodeId(paramData.getNodeId()); |
|
|
|
cData.setWorkflowId(paramData.getWorkflowId()); |
|
|
|
List<PlmProcessControllBaseData> controlList = requestManageService.getProcessSelect(cData); |
|
|
|
if(controlList.size()>0){ |
|
|
|
if(!controlList.isEmpty()){ |
|
|
|
for (int i = 0; i < controlList.size(); i++) { |
|
|
|
requestManageService.doProcessControl(controlList.get(i).getRoleId(),data.getSite(),data.getCodeNo()); |
|
|
|
} |
|
|
|
@ -1337,6 +1348,15 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
|
} |
|
|
|
fieldValues.append(oaIds.get(0).getId()).append(","); |
|
|
|
} |
|
|
|
} else if ("dcc".equals(nodeDetail.getPlmField().split("#")[1])) { |
|
|
|
for (PlmTechnicalSpecificationTeamData dcc : dccs) { |
|
|
|
// 根据域控账号获取oa人员id |
|
|
|
List<OaUserData> oaIds = sysUserDao.selectOaIdByAccount(dcc.getDomainControlAccount()); |
|
|
|
if (oaIds.isEmpty()) { |
|
|
|
throw new RuntimeException("未获取到域控账号对应的OA人员!"); |
|
|
|
} |
|
|
|
fieldValues.append(oaIds.get(0).getId()).append(","); |
|
|
|
} |
|
|
|
} |
|
|
|
fieldValue = fieldValues.length() > 0 ? fieldValues.substring(0, fieldValues.length() - 1) : ""; |
|
|
|
} |
|
|
|
|