diff --git a/openhis-server/openhis-application/src/main/java/com/openhis/web/patientmanage/controller/PatientInformationController.java b/openhis-server/openhis-application/src/main/java/com/openhis/web/patientmanage/controller/PatientInformationController.java index c5f75df0..7d046023 100644 --- a/openhis-server/openhis-application/src/main/java/com/openhis/web/patientmanage/controller/PatientInformationController.java +++ b/openhis-server/openhis-application/src/main/java/com/openhis/web/patientmanage/controller/PatientInformationController.java @@ -223,7 +223,7 @@ public class PatientInformationController { return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00007, null)); } - return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"病人信息"})); + return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"病人信息"})); } /** @@ -249,11 +249,7 @@ public class PatientInformationController { Page patientInformationPage = new Page<>(pageNo, pageSize, total); patientInformationPage.setRecords(listPatients); - if (patientInformationPage == null || patientInformationPage.getRecords().isEmpty()) { - return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00006, null)); - } - return R.ok(patientInformationPage, - MessageUtils.createMessage(PromptMsgConstant.Common.M00009, new Object[] {"病人信息"})); + return R.ok(patientInformationPage); } } diff --git a/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml b/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml index 5f27675b..74cd19fe 100644 --- a/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml +++ b/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml @@ -42,12 +42,25 @@ - AND busNo LIKE CONCAT(#{busNo}, '%') + AND pt.bus_no LIKE CONCAT('%',#{busNo}, '%') - AND name LIKE CONCAT(#{name}, '%') + + + + AND pt.name LIKE CONCAT('%', #{name}, '%') + + + + AND pt.py_str LIKE CONCAT('%', #{name}, '%') + + + + AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%')) + + ORDER BY pt.bus_no @@ -62,12 +75,25 @@ - AND busNo LIKE CONCAT(#{busNo}, '%') + AND pt.bus_no LIKE CONCAT('%',#{busNo}, '%') - AND name LIKE CONCAT(#{name}, '%') + + + + AND pt.name LIKE CONCAT('%', #{name}, '%') + + + + AND pt.py_str LIKE CONCAT('%', #{name}, '%') + + + + AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%')) + + diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java index 13cd1d01..0a779d3a 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java @@ -110,7 +110,7 @@ public class Patient extends HisBaseEntity { private String linkName; /** 联系人关系 */ - private Integer linkRelationCode; + private FamilyRelationshipType linkRelationCode; /** 联系人电话 */ private String linkTelcom; diff --git a/openhis-ui-vue3/src/views/patientManagement/patientManagement/component/api.js b/openhis-ui-vue3/src/views/patientManagement/patientManagement/component/api.js index fdf0df89..6d582fc3 100644 --- a/openhis-ui-vue3/src/views/patientManagement/patientManagement/component/api.js +++ b/openhis-ui-vue3/src/views/patientManagement/patientManagement/component/api.js @@ -62,4 +62,13 @@ export function listPatient(query) { }) } + // 修改 +export function updatePatient(data) { + return request({ + url: '/patientmanage/information/patient-information', + method: 'put', + data: data + }) + } + diff --git a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue index 0dca1f2d..8e4804ce 100644 --- a/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue +++ b/openhis-ui-vue3/src/views/patientManagement/patientManagement/index.vue @@ -79,7 +79,7 @@ - + {{ item.info }} @@ -223,10 +223,8 @@