修改查询的字段 减少不使用的字段
This commit is contained in:
parent
5702b925ea
commit
0b7a140a2e
@ -27,8 +27,8 @@ public interface InspectPatientMapper extends BaseMapperX<InspectPatientDO> {
|
||||
.eqIfPresent(InspectPatientDO::getBirthday, reqVO.getBirthday())
|
||||
.eqIfPresent(InspectPatientDO::getCardType, reqVO.getCardType())
|
||||
.eqIfPresent(InspectPatientDO::getCardId, reqVO.getCardId())
|
||||
.eqIfPresent(InspectPatientDO::getNationality, reqVO.getNationality())
|
||||
.eqIfPresent(InspectPatientDO::getNation, reqVO.getNation())
|
||||
// .eqIfPresent(InspectPatientDO::getNationality, reqVO.getNationality())
|
||||
// .eqIfPresent(InspectPatientDO::getNation, reqVO.getNation())
|
||||
// .eqIfPresent(InspectPatientDO::getRace, reqVO.getRace())
|
||||
.eqIfPresent(InspectPatientDO::getPhoneNum, reqVO.getPhoneNum())
|
||||
.eqIfPresent(InspectPatientDO::getStatus, reqVO.getStatus())
|
||||
@ -40,21 +40,21 @@ public interface InspectPatientMapper extends BaseMapperX<InspectPatientDO> {
|
||||
.eqIfPresent(InspectPatientDO::getSummaryResult, reqVO.getSummaryResult())
|
||||
.eqIfPresent(InspectPatientDO::getAuditor, reqVO.getAuditor())
|
||||
.eqIfPresent(InspectPatientDO::getAuditStatus, reqVO.getAuditStatus())
|
||||
.eqIfPresent(InspectPatientDO::getInspectionOpinion, reqVO.getInspectionOpinion())
|
||||
//.eqIfPresent(InspectPatientDO::getInspectionOpinion, reqVO.getInspectionOpinion())
|
||||
.eqIfPresent(InspectPatientDO::getIsprint, reqVO.getIsprint())
|
||||
.betweenIfPresent(InspectPatientDO::getAuditorTime, reqVO.getAuditorTime())
|
||||
// .betweenIfPresent(InspectPatientDO::getAuditorTime, reqVO.getAuditorTime())
|
||||
.betweenIfPresent(InspectPatientDO::getPrinttime, reqVO.getPrintTimeRange())
|
||||
.orderByDesc(InspectPatientDO::getId);
|
||||
if (reqVO.getInspectionStatus() != null) {
|
||||
if (reqVO.getInspectionStatus() == 0) {
|
||||
// 如果传过来的值为0,查询InspectionOpinion字段不为空
|
||||
queryWrapper.isNotNull(InspectPatientDO::getSummaryResult).ne(InspectPatientDO::getSummaryResult, "");
|
||||
} else if (reqVO.getInspectionStatus() == 1) {
|
||||
// 如果传过来的值为1,查询InspectionOpinion字段为空
|
||||
//queryWrapper.isNull(InspectPatientDO::getSummaryResult).or().eq(InspectPatientDO::getSummaryResult, "");
|
||||
queryWrapper.and(wrapper -> wrapper.isNull(InspectPatientDO::getSummaryResult).or().eq(InspectPatientDO::getSummaryResult, ""));
|
||||
}
|
||||
}
|
||||
// if (reqVO.getInspectionStatus() != null) {
|
||||
// if (reqVO.getInspectionStatus() == 0) {
|
||||
// // 如果传过来的值为0,查询InspectionOpinion字段不为空
|
||||
// queryWrapper.isNotNull(InspectPatientDO::getSummaryResult).ne(InspectPatientDO::getSummaryResult, "");
|
||||
// } else if (reqVO.getInspectionStatus() == 1) {
|
||||
// // 如果传过来的值为1,查询InspectionOpinion字段为空
|
||||
// //queryWrapper.isNull(InspectPatientDO::getSummaryResult).or().eq(InspectPatientDO::getSummaryResult, "");
|
||||
// queryWrapper.and(wrapper -> wrapper.isNull(InspectPatientDO::getSummaryResult).or().eq(InspectPatientDO::getSummaryResult, ""));
|
||||
// }
|
||||
// }
|
||||
|
||||
return selectPage(reqVO, queryWrapper);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user