瀏覽代碼

将造影剂从自动批量打印处方移除

WANGJIALIANG 3 年之前
父節點
當前提交
6720cea5e6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzChargeDetailMapper.java

+ 3 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzChargeDetailMapper.java

@@ -1081,6 +1081,8 @@ public interface MzChargeDetailMapper {
      * @param printFlag
      * @return
      */
-    @Select("select patient_id,times,order_no,group_no from mz_charge_detail where print_flag=#{printFlag} and group_no = '71' and datediff(day, charge_date,getdate())=0 group by patient_id, times, order_no,group_no ")
+    @Select("select patient_id,times,order_no,group_no from mz_charge_detail c,yp_zd_dict y where c.print_flag=#{printFlag} and c.group_no = '71'" +
+            "        and c.charge_item_code = y.code and c.serial = y.serial and y.class_code != '210100'" +
+            "        and datediff(day, c.charge_date,getdate())=0 group by c.patient_id, c.times, c.order_no,c.group_no")
     List<MzChargeDetail> selectMzPrescriptionByPrintFlag(@Param("printFlag") Integer printFlag);
 }