| | |
| | | |
| | | @Resource |
| | | SysLaboratoryContainerService sysLaboratoryContainer; |
| | | @Resource |
| | | SysLaboratoryService sysLaboratoryService; |
| | | |
| | | @Value("${message.url}") |
| | | String url; |
| | |
| | | } |
| | | |
| | | if(enable && "2".equals(warningId) ) { |
| | | List<Map> personsInCharge = sysLaboratoryContainer.getContainerPersonInCharge(containerCode); |
| | | //1.根据containerCode获取lab |
| | | SysLaboratoryContainer container = sysLaboratoryContainer.getSysLaboratoryContainerByContainerCode(containerCode); |
| | | SysLaboratory sysLaboratory = sysLaboratoryService.getSysLaboratory(container.getLaboratoryId()); |
| | | String project = sysLaboratory.getProject(); |
| | | //2.根据Lab的课题组判断人员 |
| | | List<Map> personsInCharge = null; |
| | | if (StringUtils.isBlank(project)) { |
| | | //没有课题组就是实验室部门下的负责人 |
| | | personsInCharge = sysLaboratoryContainer.getContainerPersonInCharge(containerCode); |
| | | } else { |
| | | //有课题组就是 所有课题组下的人员负责人 |
| | | personsInCharge = sysLaboratoryService.getPersonInChargeByProjects(project); |
| | | } |
| | | |
| | | Map param = new HashMap(); |
| | | param.put("groupId", "securityManager"); |
| | | List<BaseMeta> managers = baseMetaDao.getBaseMetaList(param); |