|
@@ -298,7 +298,7 @@
|
|
|
a.patient_name AS patientName, -- 患者姓名
|
|
a.patient_name AS patientName, -- 患者姓名
|
|
|
a.patient_id AS personalCode, -- 个人编码
|
|
a.patient_id AS personalCode, -- 个人编码
|
|
|
a.treatment_type,
|
|
a.treatment_type,
|
|
|
- a.hisid, -- 结算单据号
|
|
|
|
|
|
|
+ mab.hisid, -- 结算单据号
|
|
|
mab.medfee_sumamt AS totalAmount -- 总发生金额
|
|
mab.medfee_sumamt AS totalAmount -- 总发生金额
|
|
|
FROM
|
|
FROM
|
|
|
afterwards_audit AS a
|
|
afterwards_audit AS a
|
|
@@ -307,6 +307,25 @@
|
|
|
a.id = #{id, jdbcType=INTEGER}
|
|
a.id = #{id, jdbcType=INTEGER}
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="loadOutpatientSettlementInfo" resultType="org.jeecg.modules.medical.common.bo.PatientInfoResponse">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ a.id,
|
|
|
|
|
+ a.outpatient_number AS admissionNumber, -- 住院号
|
|
|
|
|
+ a.patient_name AS patientName, -- 患者姓名
|
|
|
|
|
+ a.patient_id AS personalCode, -- 个人编码
|
|
|
|
|
+ a.treatment_type,
|
|
|
|
|
+ mab.hisid, -- 结算单据号
|
|
|
|
|
+ mab.medfee_sumamt AS totalAmount -- 总发生金额
|
|
|
|
|
+ FROM
|
|
|
|
|
+ afterwards_audit AS a
|
|
|
|
|
+ LEFT JOIN outpatient_settle_bill AS mab ON mab.hisid = a.hisid
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ a.id = #{id, jdbcType=INTEGER}
|
|
|
|
|
+
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<select id="loadMedicalInsuranceProjectDetails"
|
|
<select id="loadMedicalInsuranceProjectDetails"
|
|
|
resultType="org.jeecg.modules.medical.common.bo.MedicalInsuranceProjectDetailsResponse">
|
|
resultType="org.jeecg.modules.medical.common.bo.MedicalInsuranceProjectDetailsResponse">
|
|
|
SELECT
|
|
SELECT
|