瀏覽代碼

FYI 补充优化

hsh 1 月之前
父節點
當前提交
e235bd388d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/thyyxxk/webserver/dao/his/medicine/YpTracCodgDao.java

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/medicine/YpTracCodgDao.java

@@ -121,7 +121,7 @@ public interface YpTracCodgDao {
             " and fy.order_no = cd.order_no and fy.item_no = cd.item_no " +
             "where not exists ( select 1 from yp_selinfo_sold so " +
             " where so.is_ty = '0' and so.upload_flag = '1' and fy.patient_id = so.pat_no and fy.times = so.times" +
-            " and fy.receipt_no = so.receipt_no and fy.order_no = so.order_no and fy.item_no = so.item_no )" +
+            " and fy.order_no = so.order_no and fy.item_no = so.item_no )" +
             " and fy.confirm_flag in (1, 2) " +
             " and fy.charge_date >= #{dto.startTime} " +
             " and fy.charge_date <= #{dto.endTime} " +