|
|
@@ -2,15 +2,9 @@ package cn.tr.module.phototherapy.common.service.impl;
|
|
|
|
|
|
import cn.tr.module.phototherapy.common.dto.TherapyRecordDetailDTO;
|
|
|
import cn.tr.module.phototherapy.common.handle.TimeRangeHandler;
|
|
|
-import cn.tr.module.phototherapy.common.mapper.TherapyRecordConvertMapper;
|
|
|
-import cn.tr.module.phototherapy.common.po.BusTherapyPlanPO;
|
|
|
-import cn.tr.module.phototherapy.common.repository.BusClinicRepository;
|
|
|
-import cn.tr.module.phototherapy.common.repository.BusTherapyPlanRepository;
|
|
|
import cn.tr.module.phototherapy.common.utils.QueryParamUtil;
|
|
|
import cn.tr.module.phototherapy.common.vo.TherapyRecordDetailVO;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import cn.tr.module.phototherapy.common.po.BusClinicPO;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
@@ -24,7 +18,6 @@ import cn.tr.module.phototherapy.common.dto.BusTherapyRecordQueryDTO;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.time.LocalTime;
|
|
|
import java.util.*;
|
|
|
import cn.tr.module.phototherapy.common.service.IBusTherapyRecordService;
|
|
|
import cn.tr.module.phototherapy.common.mapper.BusTherapyRecordMapper;
|
|
|
@@ -43,8 +36,6 @@ public class BusTherapyRecordServiceImpl extends ServiceImpl<BusTherapyRecordRep
|
|
|
@Resource
|
|
|
private BusTherapyRecordRepository therapyRecordRepository;
|
|
|
|
|
|
- @Resource
|
|
|
- private TherapyRecordConvertMapper therapyRecordConvertMapper;
|
|
|
|
|
|
/**
|
|
|
* 根据条件查询治疗记录
|
|
|
@@ -142,6 +133,6 @@ public class BusTherapyRecordServiceImpl extends ServiceImpl<BusTherapyRecordRep
|
|
|
List<TherapyRecordDetailVO> results = therapyRecordRepository.selectTherapyRecordWithPlan(clinicId, startDateTime, endDateTime);
|
|
|
|
|
|
// 使用 Mapper 转换为 DTO
|
|
|
- return therapyRecordConvertMapper.toTherapyRecordDetailDTOList(results);
|
|
|
+ return BusTherapyRecordMapper.INSTANCE.toTherapyRecordDetailDTOList(results);
|
|
|
}
|
|
|
}
|