版本更新

This commit is contained in:
Zhang.WH
2025-10-16 17:17:24 +08:00
parent d23a594a4b
commit f515bb8fbb
600 changed files with 7881 additions and 35954 deletions

View File

@@ -4,5 +4,27 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.openhis.web.jlau.mapper.ReviewPrescriptionRecordsAppMapper">
<select id="getReviewPrescriptionRecords" resultType="com.openhis.web.jlau.dto.ReviewPrescriptionRecordsDto">
SELECT nrpr.ID AS review_id,
nrpr.encounter_id,
nrpr.prescription_no,
nrpr.med_request_ids,
nrpr.pass_flag,
nrpr.reason_text,
ap.NAME AS practitioner_name
FROM nd_review_prescription_records AS nrpr
LEFT JOIN adm_practitioner AS ap ON ap.ID = nrpr.practitioner_id
AND ap.delete_flag = '0'
WHERE nrpr.delete_flag = '0'
<if test="prescriptionNo != null and prescriptionNo != ''">
AND nrpr.prescription_no = #{prescriptionNo}
</if>
<if test="passFlag != null">
AND nrpr.pass_flag = #{passFlag}
</if>
<if test="encounterId != null">
AND nrpr.encounter_id = #{encounterId}
</if>
</select>
</mapper>