修改字段值
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
旺仔 2024-08-15 17:09:00 +08:00
parent 2e889a77d4
commit e193d526d7
2 changed files with 13 additions and 1 deletions

View File

@ -65,6 +65,7 @@ public interface DicomworklistMapper extends BaseMapperX<DicomworklistDO> {
// 根据Series的SeriesInst查询Dicomiamge表对应的数据
List<DicomImagesDO> GetDicomImageData(@Param("SeriesInst") String SeriesInst, @Param("orgId") String orgId);
// 根据Series的SeriesInst集合查询Dicomiamge表对应的数据
List<DicomImagesDO> GetDicomImageListData(@Param("seriesInstList") List<String> seriesInstList, @Param("orgId") String orgId);
@ -77,6 +78,17 @@ public interface DicomworklistMapper extends BaseMapperX<DicomworklistDO> {
@Select(" SELECT t1.* FROM dicomseries t1 WHERE t1.StudyInsta=#{studyInsta} ")
List<DicomSeriesDO> 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);
}

View File

@ -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);