22,209
社区成员
发帖
与我相关
我的任务
分享
SELECT distinct a.* FROM mz_ht_result a inner join yp_mz_base b on a.charge_code=b.charge_code
inner join a_employee_mi c on a.op_id=c.code
INNER join mz_charge_detail d on a.patient_id=d.patient_id and a.times=d.times and
a.receipt_no=d.receipt_no and a.order_no=d.order_no and a.item_no=d.item_no
WHERE a.patient_id='P10798773-0 ' and a.times=3
and d.real_no>0 order by a.order_no,a.real_no
select DISTINCT a.id, d.pay_mark,drugname,ht_result,ht_time,validate_time,op_id,op_name=c.name,op_time,ht_remark,
a.patient_id,a.times,a.receipt_no,a.order_no,a.item_no,a.real_no,d.input_id
from mz_ht_result a
inner join yp_mz_base b on a.charge_code=b.charge_code
inner join a_employee_mi c on a.op_id=c.code
INNER join mz_charge_detail d on a.patient_id=d.patient_id and a.times=d.times and
a.receipt_no=d.receipt_no and a.order_no=d.order_no and a.item_no=d.item_no
where a.patient_id='P10798773-0 ' and a.times=3
and d.real_no>0 order by a.order_no,a.real_no