|
|
@@ -83,7 +83,7 @@ public interface SiMzDao {
|
|
|
"t.input_man as bilgDrName, t.input_man as ordersDrName, " +
|
|
|
"t.bill_item_code, " +
|
|
|
"class_code=(select class_code from zd_charge_item where zd_charge_item.code=t.his_item_code), " +
|
|
|
- "yb_code=(select yb_code from yp_zd_dict where yp_zd_dict.code=t.his_item_code), " +
|
|
|
+ "yb_code=(select top 1 yb_code from yp_zd_dict where yp_zd_dict.code=t.his_item_code), " +
|
|
|
"hnsyb_code=(select hnsyb_code from zd_charge_item where zd_charge_item.code=t.his_item_code) " +
|
|
|
"from t_mt_receipt t " +
|
|
|
"where t.patient_id=#{patNo} and t.times=#{times} and t.yb_trans_flag=0 ")
|