|
@@ -2,6 +2,7 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.dto.BehospitalInfoDTO;
|
|
|
+import com.diagbot.dto.DeptBaseDTO;
|
|
|
import com.diagbot.dto.ExportExcelBehospitalDTO;
|
|
|
import com.diagbot.dto.ExportExcelDTO;
|
|
|
import com.diagbot.dto.GetEntryDefectImproveDTO;
|
|
@@ -32,6 +33,7 @@ import org.springframework.stereotype.Component;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -76,6 +78,26 @@ public class DataAnalysisFacade {
|
|
|
return medClickInfoService.save(medClickInfo);
|
|
|
}
|
|
|
|
|
|
+ public List<DeptBaseDTO> getQcClickDeptList() {
|
|
|
+ long hospitalId = Long.parseLong(SysUserUtils.getCurrentHospitalID());
|
|
|
+ List<DeptBaseDTO> deptDTO = new ArrayList<>();
|
|
|
+ List<MedClickInfo> deptList = medClickInfoService.lambdaQuery()
|
|
|
+ .eq(MedClickInfo::getHospitalId, hospitalId)
|
|
|
+ .eq(MedClickInfo::getIsDeleted, IsDeleteEnum.N.getKey())
|
|
|
+ .select(MedClickInfo::getDeptId, MedClickInfo::getDeptName).groupBy(MedClickInfo::getDeptId).list();
|
|
|
+ if(ListUtil.isNotEmpty(deptList)){
|
|
|
+ for (MedClickInfo kfc : deptList) {
|
|
|
+ if(null == kfc){
|
|
|
+ return deptDTO;
|
|
|
+ }
|
|
|
+ DeptBaseDTO deptBaseDTO = new DeptBaseDTO();
|
|
|
+ deptBaseDTO.setDeptId(kfc.getDeptId());
|
|
|
+ deptBaseDTO.setDeptName(kfc.getDeptName());
|
|
|
+ deptDTO.add(deptBaseDTO);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return deptDTO;
|
|
|
+ }
|
|
|
public List<GetQcClickDTO> getQcClick(GetQcClickVO getQcClickVO) {
|
|
|
clickPageSet(getQcClickVO);
|
|
|
List<GetQcClickDTO> records = medClickInfoService.getBaseMapper().getQcClick(getQcClickVO);
|