|
|
@ -6,6 +6,7 @@ import com.docus.core.util.Func;
|
|
|
|
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
|
|
|
|
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
|
|
|
|
import com.docus.infrastructure.web.request.SearchDTO;
|
|
|
|
import com.docus.infrastructure.web.request.SearchDTO;
|
|
|
|
import com.docus.infrastructure.web.response.PageResult;
|
|
|
|
import com.docus.infrastructure.web.response.PageResult;
|
|
|
|
|
|
|
|
import com.docus.server.entity.segmentation.OcrBasicTest;
|
|
|
|
import com.docus.server.entity.segmentation.OcrFileInfo;
|
|
|
|
import com.docus.server.entity.segmentation.OcrFileInfo;
|
|
|
|
import com.docus.server.infrastructure.dao.IOcrFileInfoDao;
|
|
|
|
import com.docus.server.infrastructure.dao.IOcrFileInfoDao;
|
|
|
|
import com.docus.server.infrastructure.mapper.OcrFileInfoMapper;
|
|
|
|
import com.docus.server.infrastructure.mapper.OcrFileInfoMapper;
|
|
|
@ -79,18 +80,24 @@ public class OcrFileInfoDaoImpl extends BaseDaoImpl<OcrFileInfoMapper, OcrFileIn
|
|
|
|
//分页
|
|
|
|
//分页
|
|
|
|
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
|
|
|
|
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
|
|
|
|
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery();
|
|
|
|
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery();
|
|
|
|
//时间范围,默认按createTime
|
|
|
|
|
|
|
|
if (searchDTO.getBeginTime() != null) {
|
|
|
|
|
|
|
|
query.ge(OcrFileInfo::getCreateTime, searchDTO.getBeginTime());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (searchDTO.getEndTime() != null) {
|
|
|
|
|
|
|
|
Date endTime = searchDTO.getEndTime();
|
|
|
|
|
|
|
|
query.le(OcrFileInfo::getCreateTime, endTime);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Object patientId = searchDTO.getParams("patientId");
|
|
|
|
Object patientId = searchDTO.getParams("patientId");
|
|
|
|
|
|
|
|
Object assortId = searchDTO.getParams("assortId");
|
|
|
|
|
|
|
|
Object picName = searchDTO.getParams("picName");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(patientId)) {
|
|
|
|
if (Func.isNotEmpty(patientId)) {
|
|
|
|
query.eq(OcrFileInfo::getPatientId, patientId);
|
|
|
|
query.eq(OcrFileInfo::getPatientId, patientId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(assortId)) {
|
|
|
|
|
|
|
|
query.like(OcrFileInfo::getAssortId, String.format("%s%s%s","%", assortId,"%"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(picName)) {
|
|
|
|
|
|
|
|
query.like(OcrFileInfo::getPicName, String.format("%s%s%s","%", picName,"%"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//默认createTime倒序排序
|
|
|
|
//默认createTime倒序排序
|
|
|
|
query.orderByDesc(OcrFileInfo::getCreateTime);
|
|
|
|
query.orderByDesc(OcrFileInfo::getCreateTime);
|
|
|
|
List<OcrFileInfo> list = super.find(query);
|
|
|
|
List<OcrFileInfo> list = super.find(query);
|
|
|
|