|
@@ -15,6 +15,9 @@ import com.diagbot.vo.ExamineInfoVO;
|
|
|
import com.diagbot.vo.ExamineSonInfoVO;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.Date;
|
|
|
import java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
import java.util.Set;
|
|
@@ -32,7 +35,7 @@ import java.util.Set;
|
|
|
public class MedLisInfoServiceImpl extends ServiceImpl<MedLisInfoMapper, MedLisInfo> implements MedLisInfoService {
|
|
|
|
|
|
|
|
|
- public IPage<ExamineInfoDTO> getExamineInfo(ExamineInfoVO examineInfoVO) {
|
|
|
+ public IPage<ExamineInfoDTO> getExamineInfo(ExamineInfoVO examineInfoVO) throws ParseException {
|
|
|
|
|
|
List<String> infos = this.baseMapper.getInfo(examineInfoVO.getHospitalId(), examineInfoVO.getBehospitalCode());
|
|
|
|
|
@@ -55,6 +58,16 @@ public class MedLisInfoServiceImpl extends ServiceImpl<MedLisInfoMapper, MedLisI
|
|
|
}
|
|
|
|
|
|
IPage<ExamineInfoDTO> page = this.baseMapper.getExamineInfo(examineInfoVO, infoSet);
|
|
|
+ List<ExamineInfoDTO> records = page.getRecords();
|
|
|
+ for (ExamineInfoDTO record : records) {
|
|
|
+ String cTime = record.getCTime();
|
|
|
+ String rTime = record.getRTime();
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ Date cTimeDate = simpleDateFormat.parse(cTime);
|
|
|
+ Date rTimeDate = simpleDateFormat.parse(rTime);
|
|
|
+ record.setCheckTime(cTimeDate);
|
|
|
+ record.setRepTime(rTimeDate);
|
|
|
+ }
|
|
|
return page;
|
|
|
}
|
|
|
|