diff --git a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/DateUtils.java b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/DateUtils.java index b51a838c6..aa406a076 100644 --- a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/DateUtils.java +++ b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/date/DateUtils.java @@ -2,7 +2,10 @@ package cn.iocoder.yudao.framework.common.util.date; import cn.hutool.core.date.LocalDateTimeUtil; +import java.text.ParseException; +import java.text.SimpleDateFormat; import java.time.*; +import java.time.format.DateTimeFormatter; import java.util.Calendar; import java.util.Date; @@ -145,5 +148,29 @@ public class DateUtils { public static boolean isYesterday(LocalDateTime date) { return LocalDateTimeUtil.isSameDay(date, LocalDateTime.now().minusDays(1)); } + /** + * 獲取时间戳 + * + */ + public static String timestamp() throws ParseException { + long timestamp = ZonedDateTime.now(ZoneId.of("UTC")).toEpochSecond(); + return String.valueOf(timestamp); + } + /** + * 时间字符串转换成 091813.083226 + * + */ + public static String formattedTime(String timeStr) + { + + // 解析时间 + LocalTime time = LocalTime.parse(timeStr, DateTimeFormatter.ofPattern("H:mm:ss")); + + // 计算总秒数 + long totalSeconds = time.getHour() * 3600 + time.getMinute() * 60 + time.getSecond(); + + // 格式化为所需的格式 + return String.format("%06d.%06d", totalSeconds, 0); + } } diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/ImageVO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/ImageVO.java new file mode 100644 index 000000000..cd104d003 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/ImageVO.java @@ -0,0 +1,10 @@ +package cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image; + +import lombok.Data; + +@Data +public class ImageVO { + public String ImageNumber; + public String ObjectFile; + public String urlPrefix; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/PatientInfoVO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/PatientInfoVO.java new file mode 100644 index 000000000..0b90bd111 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/PatientInfoVO.java @@ -0,0 +1,18 @@ +package cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image; + +import lombok.Data; + +import java.util.List; + +@Data +public class PatientInfoVO { + + public String PatientID; + public String PatientNam; + public String PatientBir; + public String PatientSex; + public String orgId; + public String orgName; + public String StudyDate; + public List Studies; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/SeriesVO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/SeriesVO.java new file mode 100644 index 000000000..489faa8a9 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/SeriesVO.java @@ -0,0 +1,14 @@ +package cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image; + +import lombok.Data; + +import java.awt.*; +import java.util.List; + +@Data +public class SeriesVO { + public String SeriesNumb; + public String SeriesDesc; + public String Modality; + public List image; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/StudyVO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/StudyVO.java new file mode 100644 index 000000000..d04685b43 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/image/StudyVO.java @@ -0,0 +1,13 @@ +package cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image; + +import lombok.Data; + +import java.util.List; + +@Data +public class StudyVO { + public String StudyDescr; + public String StudyID; + public String StudyModal; + public List Series; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java index 8562506e9..76174e4a0 100644 --- a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic; +import cn.iocoder.yudao.framework.common.util.date.DateUtils; import cn.iocoder.yudao.module.system.dal.dataobject.dicomworklist.DicomImagesDO; import cn.iocoder.yudao.module.system.dal.dataobject.dicomworklist.DicomSeriesDO; import cn.iocoder.yudao.module.system.dal.dataobject.dicomworklist.DicompatientDO; @@ -8,11 +9,24 @@ import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; import cn.iocoder.yudao.module.system.service.dicomworklist.DicomworklistService; import cn.iocoder.yudao.module.system.service.org.OrgUnitService; import cn.iocoder.yudao.module.system.service.user.AdminUserService; +import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image.ImageVO; +import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image.PatientInfoVO; +import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image.SeriesVO; +import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.image.StudyVO; import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.medicalimg.insimagescreenshotVO; import cn.iocoder.yudao.framework.common.util.object.BeanUtils; import cn.iocoder.yudao.module.ultrasoniccom.controller.admin.ultrasonic.medicalimg.upmedicalimgVO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomimagesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicompatientsDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomseriesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomstudiesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomimagesMapeer; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicompatientsMapper; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomseriesMapper; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomstudiesMapper; import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.medicalimg.medicalimgDO; import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.ultrasonicDO; +import cn.iocoder.yudao.module.ultrasoniccom.service.image.dicompatientsServiceImpl; import cn.iocoder.yudao.module.ultrasoniccom.service.medicalimg.medicalimgService; import cn.iocoder.yudao.module.ultrasoniccom.service.ultrasonic.ultrasonicService; import cn.iocoder.yudao.framework.common.pojo.CommonResult; @@ -27,6 +41,7 @@ import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.http.HttpHeaders; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -65,7 +80,17 @@ public class ultrasonicController { private OrgUnitService Service; @Resource private AdminUserService userService; + @Resource + private dicompatientsMapper dicompatientsMapper; + @Resource + private dicomstudiesMapper dicomstudiesMapper; + @Resource + private dicomseriesMapper dicomseriesMapper; + @Resource + private dicomimagesMapeer dicomimagesMapeer; + @Resource + private dicompatientsServiceImpl dicompatientsService; @GetMapping("/reporttemplatetlist") @Operation(summary = "获取模版表数据") @DataPermission(enable = false) @@ -466,4 +491,132 @@ public class ultrasonicController { } + @PostMapping("/InsImageInfo") + @Operation(summary = "影像信息") + public CommonResult InsImageInfo(@RequestBody List patientInfoVOS,@RequestHeader HttpHeaders headers) throws ParseException { + try { + // 从headers中获取特定的header参数 + // String someHeaderValue = headers.getFirst("Some-Header-Name"); + if(!patientInfoVOS.isEmpty()) + { + List dicompatientsDOList=new ArrayList<>(); + List dicomstudiesDOList=new ArrayList<>(); + List dicomseriesDOList=new ArrayList<>(); + List dicomimagesDOList=new ArrayList<>(); + for (PatientInfoVO patientInfo : patientInfoVOS) + { + //获取基础信息 + String PatientID=patientInfo.getPatientID(); + String PatientNam=patientInfo.getPatientNam(); + String PatientBir=patientInfo.getPatientBir(); + String PatientSex=patientInfo.getPatientSex(); + String AccessTime= DateUtils.timestamp(); + String orgId=patientInfo.getOrgId(); + String orgname=patientInfo.getOrgName(); + String StudyDate=patientInfo.getStudyDate(); + List studyVOS= patientInfo.getStudies(); + //填充dicompatients信息 + dicompatientsDO dicompatientsDO=new dicompatientsDO(); + dicompatientsDO.setPatientID(PatientID); + dicompatientsDO.setPatientNam(PatientNam); + dicompatientsDO.setPatientBir(PatientBir); + dicompatientsDO.setPatientSex(PatientSex); + dicompatientsDO.setOrgId(orgId); + dicompatientsDO.setAccessTime(AccessTime); + dicompatientsDOList.add(dicompatientsDO); + + if(!studyVOS.isEmpty()) + { + for (StudyVO studyVO :studyVOS) + { + // study表的主键 + String StudyInsta= UUID.randomUUID().toString(); + dicomstudiesDO dicomstudiesDO=new dicomstudiesDO(); + dicomstudiesDO.setStudyInsta(StudyInsta); + dicomstudiesDO.setStudyDate(StudyDate.split(" ")[0].replace("-","")); + dicomstudiesDO.setStudyTime(DateUtils.formattedTime(StudyDate.split(" ")[1])); + dicomstudiesDO.setStudyID(studyVO.getStudyID()); + dicomstudiesDO.setStudyDescr(studyVO.getStudyDescr()); + dicomstudiesDO.setStudyModal(studyVO.getStudyModal()); + dicomstudiesDO.setPatientNam(PatientNam); + dicomstudiesDO.setPatientBir(PatientBir); + dicomstudiesDO.setPatientSex(PatientSex); + dicomstudiesDO.setPatientID(PatientID); + dicomstudiesDO.setAccessTime(AccessTime); + dicomstudiesDO.setOrgId(orgId); + dicomstudiesDOList.add(dicomstudiesDO); + List series= studyVO.getSeries(); + + if (!series.isEmpty()) + { + + for (SeriesVO seriesVO:series) + { + //service表主键 + String SeriesInst=UUID.randomUUID().toString(); + dicomseriesDO dicomseriesDO=new dicomseriesDO(); + dicomseriesDO.setSeriesInst(SeriesInst); + dicomseriesDO.setSeriesNumb(seriesVO.getSeriesNumb()); + dicomseriesDO.setSeriesDate(StudyDate.split(" ")[0].replace("-","")); + dicomseriesDO.setSeriesTime(DateUtils.formattedTime(StudyDate.split(" ")[1])); + dicomseriesDO.setSeriesDesc(seriesVO.getSeriesDesc()); + dicomseriesDO.setModality(seriesVO.getModality()); + dicomseriesDO.setBodyPartEx("CHEST"); + dicomseriesDO.setProtocolNa(studyVO.getStudyDescr()); + dicomseriesDO.setStationNam("CT室"); + dicomseriesDO.setInstitutio(orgname); + dicomseriesDO.setStudyInsta(StudyInsta); + dicomseriesDO.setAccessTime(AccessTime); + dicomseriesDO.setOrgId(orgId); + dicomseriesDOList.add(dicomseriesDO); + List imageVOS= seriesVO.getImage() ; + if (!imageVOS.isEmpty()) + { + for (ImageVO imageVO:imageVOS) + { + //image主键 + String SOPInstanc=UUID.randomUUID().toString(); + dicomimagesDO dicomimagesDO=new dicomimagesDO(); + dicomimagesDO.setSOPInstanc(SOPInstanc); + dicomimagesDO.setImageNumbe(imageVO.getImageNumber()); + dicomimagesDO.setImageDate(StudyDate.split(" ")[0].replace("-","")); + dicomimagesDO.setImageTime(DateUtils.formattedTime(StudyDate.split(" ")[1])); + dicomimagesDO.setAcqDate(StudyDate.split(" ")[0].replace("-","")); + dicomimagesDO.setAcqTime(DateUtils.formattedTime(StudyDate.split(" ")[1])); + dicomimagesDO.setSeriesInst(SeriesInst); + dicomimagesDO.setAccessTime(AccessTime); + dicomimagesDO.setOrgId(orgId); + dicomimagesDO.setObjectFile(imageVO.getObjectFile()); + dicomimagesDO.setUrlPrefix(imageVO.getUrlPrefix()); + dicomimagesDOList.add(dicomimagesDO); + } + + } + + } + + } + + } + } + + } + if (!dicompatientsDOList.isEmpty()&&!dicomstudiesDOList.isEmpty()&&!dicomseriesDOList.isEmpty()&&!dicomimagesDOList.isEmpty()) + { + dicompatientsService.insertAll(dicompatientsDOList,dicomstudiesDOList,dicomseriesDOList,dicomimagesDOList); + } + } + else + { + return success("参数为空"); + } + } + catch (Exception e) + { + return success(e.getMessage()); + } + + + return success("插入成功"); + } } diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomimagesDO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomimagesDO.java new file mode 100644 index 000000000..eef051149 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomimagesDO.java @@ -0,0 +1,49 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.image; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +@TableName("dicomimages") +@Data +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class dicomimagesDO { + + @TableId(value ="SOPInstanc", type = IdType.INPUT) + private String SOPInstanc; + + @TableField("ImageNumbe") + private String ImageNumbe; + + @TableField("ImageDate") + private String ImageDate; + + @TableField("ImageTime") + private String ImageTime; + + @TableField("AcqDate") + private String AcqDate; + + @TableField("AcqTime") + private String AcqTime; + + @TableField("SeriesInst") + private String SeriesInst; + + @TableField("AccessTime") + private String AccessTime; + + @TableField("ObjectFile") + private String ObjectFile; + + @TableField("orgId") + private String orgId; + + @TableField("urlPrefix") + private String urlPrefix; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicompatientsDO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicompatientsDO.java new file mode 100644 index 000000000..be8b6ec5f --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicompatientsDO.java @@ -0,0 +1,36 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.image; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +@TableName("dicompatients") +@Data +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class dicompatientsDO { + + @TableId(value ="PatientID", type = IdType.INPUT) + private String PatientID; + + @TableField("PatientNam") + private String PatientNam; + + @TableField("PatientBir") + private String PatientBir; + + @TableField("PatientSex") + private String PatientSex; + + @TableField("AccessTime") + private String AccessTime; + + @TableField("orgId") + private String orgId; + + +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomseriesDO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomseriesDO.java new file mode 100644 index 000000000..17e713bae --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomseriesDO.java @@ -0,0 +1,56 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.image; + + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +@TableName("dicomseries") +@Data +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class dicomseriesDO { + + @TableId(value ="SeriesInst", type = IdType.INPUT) + private String SeriesInst; + + @TableField("SeriesNumb") + private String SeriesNumb; + + @TableField("SeriesDate") + private String SeriesDate; + + @TableField("SeriesTime") + private String SeriesTime; + + @TableField("SeriesDesc") + private String SeriesDesc; + + @TableField("Modality") + private String Modality; + + @TableField("BodyPartEx") + private String BodyPartEx; + @TableField("ProtocolNa") + private String ProtocolNa; + + @TableField("StationNam") + private String StationNam; + + @TableField("Institutio") + private String Institutio; + + @TableField("StudyInsta") + private String StudyInsta; + + @TableField("AccessTime") + private String AccessTime; + + @TableField("orgId") + private String orgId; + +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomstudiesDO.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomstudiesDO.java new file mode 100644 index 000000000..d039c57d1 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/image/dicomstudiesDO.java @@ -0,0 +1,52 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.image; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +@TableName("dicomstudies") +@Data +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class dicomstudiesDO { + + @TableId(value ="StudyInsta", type = IdType.INPUT) + private String StudyInsta; + + @TableField("StudyDate") + private String StudyDate; + + @TableField("StudyTime") + private String StudyTime; + + @TableField("StudyID") + private String StudyID; + + @TableField("StudyDescr") + private String StudyDescr; + + @TableField("StudyModal") + private String StudyModal; + + @TableField("PatientNam") + private String PatientNam; + + @TableField("PatientBir") + private String PatientBir; + + @TableField("PatientSex") + private String PatientSex; + + @TableField("PatientID") + private String PatientID; + + @TableField("AccessTime") + private String AccessTime; + + @TableField("orgId") + private String orgId; +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomimagesMapeer.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomimagesMapeer.java new file mode 100644 index 000000000..b5e83011e --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomimagesMapeer.java @@ -0,0 +1,11 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image; + +import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomimagesDO; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import org.apache.ibatis.annotations.Mapper; + +@InterceptorIgnore(tenantLine = "true") +@Mapper +public interface dicomimagesMapeer extends BaseMapperX { +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicompatientsMapper.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicompatientsMapper.java new file mode 100644 index 000000000..b3177b103 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicompatientsMapper.java @@ -0,0 +1,11 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image; + +import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicompatientsDO; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import org.apache.ibatis.annotations.Mapper; + +@InterceptorIgnore(tenantLine = "true") +@Mapper +public interface dicompatientsMapper extends BaseMapperX { +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomseriesMapper.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomseriesMapper.java new file mode 100644 index 000000000..10052c513 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomseriesMapper.java @@ -0,0 +1,11 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image; + +import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomseriesDO; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import org.apache.ibatis.annotations.Mapper; + +@InterceptorIgnore(tenantLine = "true") +@Mapper +public interface dicomseriesMapper extends BaseMapperX { +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomstudiesMapper.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomstudiesMapper.java new file mode 100644 index 000000000..ddcb6b6c0 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/dal/ultrasonic/image/dicomstudiesMapper.java @@ -0,0 +1,11 @@ +package cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image; + +import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomstudiesDO; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; +import org.apache.ibatis.annotations.Mapper; + +@InterceptorIgnore(tenantLine = "true") +@Mapper +public interface dicomstudiesMapper extends BaseMapperX { +} diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/service/image/dicompatientsServiceImpl.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/service/image/dicompatientsServiceImpl.java new file mode 100644 index 000000000..75cfb1e70 --- /dev/null +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/service/image/dicompatientsServiceImpl.java @@ -0,0 +1,45 @@ +package cn.iocoder.yudao.module.ultrasoniccom.service.image; + +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomimagesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicompatientsDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomseriesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.image.dicomstudiesDO; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomimagesMapeer; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicompatientsMapper; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomseriesMapper; +import cn.iocoder.yudao.module.ultrasoniccom.dal.ultrasonic.image.dicomstudiesMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; +import java.util.List; + +@Service +@Validated +public class dicompatientsServiceImpl { + + @Autowired + private dicompatientsMapper dicompatientsMapper; + + @Autowired + private dicomstudiesMapper dicomstudiesMapper; + + @Autowired + private dicomseriesMapper dicomseriesMapper; + + @Autowired + private dicomimagesMapeer dicomimagesMapper; + + @Transactional + public void insertAll(List dicompatientsDOList, + List dicomstudiesDOList, + List dicomseriesDOList, + List dicomimagesDOList) { + dicompatientsMapper.insertBatch(dicompatientsDOList); + dicomstudiesMapper.insertBatch(dicomstudiesDOList); + dicomseriesMapper.insertBatch(dicomseriesDOList); + dicomimagesMapper.insertBatch(dicomimagesDOList); + } +}