|
@@ -1,7 +1,10 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.dto.*;
|
|
|
+import com.diagbot.entity.MedNurse;
|
|
|
import com.diagbot.entity.MedicalRecord;
|
|
|
import com.diagbot.entity.MedicalRecordContent;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -39,11 +42,10 @@ public class MedicalRecordOtherFacade extends MedicalRecordServiceImpl {
|
|
|
Boolean encryptFlag;
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
* @param medRecordOtherVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<MedRecordOtherDTO> RecordOtherList(MedRecordOtherVO medRecordOtherVO) {
|
|
|
+ public IPage<MedicalRecord> pageFac(MedRecordOtherVO medRecordOtherVO) {
|
|
|
QueryWrapper<MedicalRecord> medicalRecordQueryWrapper = new QueryWrapper<>();
|
|
|
medicalRecordQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
medicalRecordQueryWrapper.eq("hospital_id", Long.valueOf(SysUserUtils.getCurrentHospitalID()));
|
|
@@ -63,9 +65,10 @@ public class MedicalRecordOtherFacade extends MedicalRecordServiceImpl {
|
|
|
}
|
|
|
medicalRecordQueryWrapper.orderByDesc("rec_date");
|
|
|
|
|
|
- List<MedicalRecord> medicalRecordList = medicalRecordFacade.list(medicalRecordQueryWrapper);
|
|
|
- List<MedRecordOtherDTO> medRecordOtherDTOList = BeanUtil.listCopyTo(medicalRecordList, MedRecordOtherDTO.class);
|
|
|
- return medRecordOtherDTOList;
|
|
|
+ Page<MedicalRecord> pageCase = new Page<MedicalRecord>(medRecordOtherVO.getCurrent(), medRecordOtherVO.getSize());
|
|
|
+ IPage<MedicalRecord> medicalRecordIPage = medicalRecordFacade.getBaseMapper().selectPage(pageCase, medicalRecordQueryWrapper);
|
|
|
+
|
|
|
+ return medicalRecordIPage;
|
|
|
}
|
|
|
|
|
|
/**
|