提交merge1.3

This commit is contained in:
2025-12-27 15:30:25 +08:00
parent 8c607c8749
commit 088861f66e
1245 changed files with 220442 additions and 77616 deletions

View File

@@ -71,7 +71,11 @@
SELECT DISTINCT T1.id AS payer_id, --患者id
T1.name AS payer, --患者姓名
T1.bus_no AS case_number, --患者院内编码/病历号
T1.gender_enum, --性别
T1.gender_enum,
case T1.gender_enum when 0 then '男'
when 1 then '女'
else '未说明' end --性别
AS gender_enum_enumText,
T1.birth_date, --出生日期
T1.phone AS tel, --电话
T1.id_card AS card_no, --身份证号

View File

@@ -53,7 +53,11 @@
FROM fin_payment_reconciliation t
LEFT JOIN adm_patient patient ON patient.id = t.patient_id
LEFT JOIN adm_practitioner pra ON pra.id = t.enterer_id
<<<<<<< HEAD
LEFT JOIN adm_invoice invoice ON invoice.reconciliation_id = t.id
=======
LEFT JOIN adm_invoice invoice ON invoice.reconciliation_id = t.id AND invoice.delete_flag = '0'
>>>>>>> v1.3
LEFT JOIN adm_encounter enc ON enc.id = t.enterer_id
WHERE 1 = 1
AND t.delete_flag = '0'
@@ -248,4 +252,18 @@
#{chargeItemId}
</foreach>
</select>
<select id="getThreePartCallBackVoPage" resultType="com.openhis.web.paymentmanage.dto.ThreePartCallBackVo">
SELECT *
FROM
(select three.*,
patient.name as patient_name,
payment.payment_no as payment_no
from fin_three_part_pay_call_back three
left join fin_payment_reconciliation payment on three.payment_id = payment.id
left join adm_patient patient on payment.patient_id = patient.id
order by three.create_time DESC
) as T1
${ew.customSqlSegment}
</select>
</mapper>