diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dicomworklist/DicomworklistMapper.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dicomworklist/DicomworklistMapper.java index 554f8dcee..cad0315b7 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dicomworklist/DicomworklistMapper.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dicomworklist/DicomworklistMapper.java @@ -65,6 +65,7 @@ public interface DicomworklistMapper extends BaseMapperX { // 根据Series的SeriesInst查询Dicomiamge表对应的数据 List GetDicomImageData(@Param("SeriesInst") String SeriesInst, @Param("orgId") String orgId); + // 根据Series的SeriesInst集合查询Dicomiamge表对应的数据 List GetDicomImageListData(@Param("seriesInstList") List seriesInstList, @Param("orgId") String orgId); @@ -77,6 +78,17 @@ public interface DicomworklistMapper extends BaseMapperX { @Select(" SELECT t1.* FROM dicomseries t1 WHERE t1.StudyInsta=#{studyInsta} ") List GetDicomSeriesByStudyInsta(@Param("studyInsta") String studyInsta); + @Select(" SELECT CONCAT(\n" + + "(SELECT CAST(COUNT(*) AS CHAR) FROM dicomstudies t1\n" + + " LEFT JOIN dicomseries t2 ON t1.StudyInsta=t2.StudyInsta\n" + + " WHERE t1.PatientID=#{patientID} AND t1.StudyInsta=#{studyInsta})\n" + + ",'/',\n" + + "(SELECT CAST(COUNT(*) AS CHAR) FROM dicomstudies t1\n" + + " LEFT JOIN dicomseries t2 ON t1.StudyInsta=t2.StudyInsta\n" + + " LEFT JOIN dicomimages t3 ON t2.SeriesInst=t3.SeriesInst\n" + + " WHERE t1.PatientID=#{patientID} AND t1.StudyInsta=#{studyInsta})) ") + String GetSeDcByPatientIDAndStudyInsta(@Param("patientID") String patientID, @Param("studyInsta") String studyInsta); + @Update(" UPDATE dicompatients t1 SET t1.dataSync='1' WHERE t1.PatientID=#{patientID} ") int UpdateDataSyncOfDicompatientsByPatientID(@Param("patientID") String patientID); } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java index fe9e4488a..560625bfc 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/patientexamlist/PatientexamlistServiceImpl.java @@ -143,11 +143,11 @@ public class PatientexamlistServiceImpl implements PatientexamlistService { patientexamlist.setReportstatus("待分析"); patientexamlist.setApplicationDate(dateTime); patientexamlist.setBillDoctorDepartment("影像科"); + patientexamlist.setSeDc(dicomworklistMapper.GetSeDcByPatientIDAndStudyInsta(dicomStudie.getPatientID(),dicomStudie.getStudyInsta())); patientexamlist.setCreateDate(dateTime); patientexamlist.setOrgId(dicomStudie.getOrgId()); if (dicomSeries != null && dicomSeries.size() > 0) { patientexamlist.setOrgName(dicomSeries.get(0).getInstitutio()); - //patientexamlist.setSeDc(null); } //框架需要 //patientexamlist.setExamId(null);