diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java index 2e1fd49..f95968f 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/ReportServiceImpl.java @@ -5471,7 +5471,7 @@ public class ReportServiceImpl extends BaseServiceImpl implements IReportService String firstVisitHospital=""; AntExChuQuery antExChuQuery = new AntExChuQuery(); antExChuQuery.setYn(YnEnums.YES.getId()); - antExChuQuery.setParentId(patientsModel.getId()); + antExChuQuery.setPid(patientsModel.getPid()); List antExChuModels = iAntExChuDao.query(antExChuQuery.convertToQuery().addOrder(Sort.Direction.DESC,"created")); if(CollectionUtils.isNotEmpty(antExChuModels)){ firstVisitHospital = couponMapper.findHospitalNameById(antExChuModels.get(0).getHospitalId());