|
@@ -80,7 +80,8 @@ public interface YfSpiritAnestheticPrintMapper {
|
|
|
" b.specification," +
|
|
|
" icd_text=isnull(e.admiss_diag_str,'')," +
|
|
|
" charge_item_code=charge_code," +
|
|
|
- " a.manu_no" +
|
|
|
+ " a.manu_no," +
|
|
|
+ " p.exec_unit" +
|
|
|
" from yp_zy_patient a WITH(NOLOCK),yp_zd_dict b WITH(NOLOCK),a_patient_mi c WITH(NOLOCK),zy_patient e WITH(NOLOCK),view_yz_all_order p WITH(NOLOCK)" +
|
|
|
" where a.charge_code=b.code and" +
|
|
|
" a.serial=b.serial and" +
|
|
@@ -114,6 +115,7 @@ public interface YfSpiritAnestheticPrintMapper {
|
|
|
@Select({"<script>" +
|
|
|
"SELECT doctor_name = case when isnull(a.doctor_name,'00000')='00000' then a.drawer else a.doctor_name end," +
|
|
|
" warn_dept=a.ward_code," +
|
|
|
+ " exec_unit=a.section_code," +
|
|
|
" id=a.inpatient_no," +
|
|
|
" a.admiss_times," +
|
|
|
" quantity = a.amount," +
|
|
@@ -165,13 +167,17 @@ public interface YfSpiritAnestheticPrintMapper {
|
|
|
" age=datediff(year,i.birth_date,getdate())," +
|
|
|
" k.supply_name," +
|
|
|
" frequency=g.frequ_code," +
|
|
|
- " a.manu_no" +
|
|
|
+ " a.manu_no," +
|
|
|
+ " a.act_order_no," +
|
|
|
+ " g.exec_unit," +
|
|
|
+ " h2.name as exec_name" +
|
|
|
" FROM yp_zy_patient a WITH(NOLOCK)," +
|
|
|
" zy_patient b WITH(NOLOCK)," +
|
|
|
" a_employee_mi c WITH(NOLOCK)," +
|
|
|
" yp_zd_dict d WITH(NOLOCK)," +
|
|
|
" yp_zd_manufactory e WITH(NOLOCK)," +
|
|
|
" zd_unit_code h WITH(NOLOCK)," +
|
|
|
+ " zd_unit_code h2 WITH(NOLOCK)," +
|
|
|
" a_patient_mi i WITH(NOLOCK)," +
|
|
|
" view_yz_all_order g WITH(NOLOCK)," +
|
|
|
" yz_supply_type k WITH(NOLOCK)" +
|
|
@@ -183,6 +189,7 @@ public interface YfSpiritAnestheticPrintMapper {
|
|
|
" d.manu_code*= e.code and" +
|
|
|
" a.inpatient_no*=i.inpatient_no and" +
|
|
|
" b.admiss_dept=h.code and" +
|
|
|
+ " g.exec_unit=h2.code and" +
|
|
|
" a.act_order_no = g.act_order_no and" +
|
|
|
" g.supply_code *= k.supply_code and" +
|
|
|
" <when test='sendDrugRecordVo.beginDate != null'>" +
|