diff --git a/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/dal/mysql/inspectpatient/InspectPatientMapper.java b/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/dal/mysql/inspectpatient/InspectPatientMapper.java index 8170442..39b70ec 100644 --- a/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/dal/mysql/inspectpatient/InspectPatientMapper.java +++ b/yudao-module-inspect/yudao-module-inspect-biz/src/main/java/cn/iocoder/yudao/module/inspect/dal/mysql/inspectpatient/InspectPatientMapper.java @@ -27,8 +27,8 @@ public interface InspectPatientMapper extends BaseMapperX { .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 { .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); }