| | |
| | | import com.sinata.system.domain.MedicalWasteStaticsVO; |
| | | import com.sinata.system.domain.MwCollectRecord; |
| | | import com.sinata.system.domain.SysDepartment; |
| | | import com.sinata.system.domain.vo.DepartmentTagInfoVO; |
| | | import com.sinata.system.domain.vo.ScreenDepartmentVO; |
| | | import com.sinata.system.domain.vo.SysDictDataVO; |
| | | import com.sinata.system.domain.vo.TodayMedicalWastePieVO; |
| | |
| | | import com.sinata.system.enums.DepartmentEnum; |
| | | import com.sinata.system.service.ISysDictDataService; |
| | | import com.sinata.system.service.MwCollectRecordService; |
| | | import com.sinata.system.service.MwDisposalRecordService; |
| | | import com.sinata.system.service.SysDepartmentService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.jetbrains.annotations.NotNull; |
| | |
| | | private final SysDepartmentService sysDepartmentService; |
| | | private final MwCollectRecordService mwCollectRecordService; |
| | | private final ISysDictDataService sysDictDataService; |
| | | private final MwDisposalRecordService mwDisposalRecordService; |
| | | |
| | | /** |
| | | * 机构分布-获取机构列表 |
| | |
| | | return BeanUtils.copyToList(list, ScreenDepartmentVO.class); |
| | | } |
| | | |
| | | /** |
| | | * 获取大屏单位标签信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public DepartmentTagInfoVO getTagInfo(Long id) { |
| | | SysDepartment department = sysDepartmentService.getById(id); |
| | | DepartmentTagInfoVO vo = null; |
| | | if (Objects.isNull(department)) { |
| | | throw new ServiceException("单位不存在"); |
| | | } |
| | | if (department.getOrgType().equals(DepartmentEnum.MEDICAL_INSTITUTION.getCode())) { |
| | | vo = mwCollectRecordService.getTagInfo(id); |
| | | } else { |
| | | vo = mwDisposalRecordService.getTagInfo(id); |
| | | } |
| | | return vo; |
| | | } |
| | | /** |
| | | * 预警数据统计 |
| | | * |
| | |
| | | } |
| | | return vo; |
| | | } |
| | | |
| | | |
| | | } |