fix(#735): 【验证失败反馈】Bug #735 上次修复未通过全链路验证,请根据以下失败原因重新修复:

失败原因:
- 编译验证(mvn compile) : [ERROR] [ERROR] Could not find the selected project in the reactor: openhis-application @

总耗时: 1457ms

请针对上述失败项重新修复,确保:
1. 编译通过(vite build / mvn compile)
2. 单元测试通过(vitest / mvn test)
3. Playwright 回归测试通过
4. 数据库表可访问
5. 后端服务可达

由 AI Agent (guanyu) 自动修复,请查看 diff 确认变更内容。
This commit is contained in:
2026-06-11 03:50:26 +08:00
parent 9c644a1c6d
commit 71013aa6d8
2 changed files with 64 additions and 109 deletions

View File

@@ -4,111 +4,66 @@
<!-- 病人信息相关查询--> <!-- 病人信息相关查询-->
<select id="getPatientPage" resultType="com.healthlink.his.web.patientmanage.dto.PatientBaseInfoDto"> <select id="getPatientPage" resultType="com.healthlink.his.web.patientmanage.dto.PatientBaseInfoDto">
SELECT SELECT
pt.identifier_no, (
pt.tenant_id, SELECT api.identifier_no
pt.id, FROM adm_patient_identifier api
pt.active_flag, WHERE api.tenant_id = p.tenant_id
pt.temp_flag, AND api.patient_id = p.id
pt.name, LIMIT 1
pt.name_json, ) AS identifier_no,
pt.bus_no, p.tenant_id,
pt.gender_enum, p.id,
pt.birth_date, p.active_flag,
pt.deceased_date, p.temp_flag,
pt.marital_status_enum, p.name,
pt.prfs_enum, p.name_json,
pt.phone, p.bus_no,
pt.address, p.gender_enum,
pt.address_province, p.birth_date,
pt.address_city, p.deceased_date,
pt.address_district, p.marital_status_enum,
pt.address_street, p.prfs_enum,
pt.address_json, p.phone,
pt.nationality_code, p.address,
pt.id_card, p.address_province,
pt.py_str, p.address_city,
pt.wb_str, p.address_district,
pt.blood_abo, p.address_street,
pt.blood_rh, p.address_json,
pt.work_company, p.nationality_code,
pt.native_place, p.id_card,
pt.country_code, p.py_str,
pt.link_name, p.wb_str,
pt.link_relation_code, p.blood_abo,
pt.link_telcom, p.blood_rh,
pt.link_jsons, p.work_company,
pt.organization_id, p.native_place,
pt.create_time, p.country_code,
pt.postal_code, p.link_name,
pt.hukou_address, p.link_relation_code,
pt.guardian_name, p.link_telcom,
pt.guardian_relation, p.link_jsons,
pt.guardian_phone, p.organization_id,
pt.guardian_id_type, p.create_time,
pt.guardian_id_no, p.postal_code,
pt.guardian_address, p.hukou_address,
pt.patient_derived, p.guardian_name,
pt.education_level, p.guardian_relation,
pt.company_address p.guardian_phone,
FROM ( p.guardian_id_type,
SELECT p.guardian_id_no,
( p.guardian_address,
SELECT api.identifier_no p.patient_derived,
FROM adm_patient_identifier api p.education_level,
WHERE api.tenant_id = p.tenant_id p.company_address
AND api.patient_id = p.id FROM adm_patient p
LIMIT 1 <where>
) AS identifier_no, p.delete_flag = '0'
p.tenant_id, <if test="ew.sqlSegment != null and ew.sqlSegment != ''">
p.id, AND ${ew.sqlSegment}
p.active_flag, </if>
p.temp_flag, </where>
p.name, ORDER BY p.bus_no DESC
p.name_json,
p.bus_no,
p.gender_enum,
p.birth_date,
p.deceased_date,
p.marital_status_enum,
p.prfs_enum,
p.phone,
p.address,
p.address_province,
p.address_city,
p.address_district,
p.address_street,
p.address_json,
p.nationality_code,
p.id_card,
p.py_str,
p.wb_str,
p.blood_abo,
p.blood_rh,
p.work_company,
p.native_place,
p.country_code,
p.link_name,
p.link_relation_code,
p.link_telcom,
p.link_jsons,
p.organization_id,
p.create_time,
p.postal_code,
p.hukou_address,
p.guardian_name,
p.guardian_relation,
p.guardian_phone,
p.guardian_id_type,
p.guardian_id_no,
p.guardian_address,
p.patient_derived,
p.education_level,
p.company_address
FROM adm_patient p
where p.delete_flag = '0'
) AS pt
${ew.customSqlSegment}
ORDER BY pt.bus_no DESC
</select> </select>
<select id="getPatientIdInfo" resultType="com.healthlink.his.web.patientmanage.dto.PatientIdInfoDto"> <select id="getPatientIdInfo" resultType="com.healthlink.his.web.patientmanage.dto.PatientIdInfoDto">

View File

@@ -220,8 +220,8 @@
T1.based_on_id AS based_on_id, T1.based_on_id AS based_on_id,
T1.medication_id AS advice_definition_id, T1.medication_id AS advice_definition_id,
T1.content_json::jsonb ->> 'remark' AS remark, T1.content_json::jsonb ->> 'remark' AS remark,
T1.effective_dose_end AS stop_time, CASE WHEN T1.status_enum = 6 THEN T1.effective_dose_end ELSE NULL END AS stop_time,
T1.update_by AS stop_user_name CASE WHEN T1.status_enum = 6 THEN T1.update_by ELSE NULL END AS stop_user_name
FROM med_medication_request AS T1 FROM med_medication_request AS T1
LEFT JOIN med_medication_definition AS T2 ON T2.ID = T1.medication_id LEFT JOIN med_medication_definition AS T2 ON T2.ID = T1.medication_id
AND T2.delete_flag = '0' AND T2.delete_flag = '0'
@@ -331,8 +331,8 @@
T1.based_on_id AS based_on_id, T1.based_on_id AS based_on_id,
T1.activity_id AS advice_definition_id, T1.activity_id AS advice_definition_id,
T1.remark AS remark, T1.remark AS remark,
T1.occurrence_end_time AS stop_time, CASE WHEN T1.status_enum = 6 THEN T1.occurrence_end_time ELSE NULL END AS stop_time,
T1.update_by AS stop_user_name CASE WHEN T1.status_enum = 6 THEN T1.update_by ELSE NULL END AS stop_user_name
FROM wor_service_request AS T1 FROM wor_service_request AS T1
LEFT JOIN wor_activity_definition AS T2 LEFT JOIN wor_activity_definition AS T2
ON T2.ID = T1.activity_id ON T2.ID = T1.activity_id