فهرست منبع

历史数据优化

hurugang 5 سال پیش
والد
کامیت
bf0651853a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/MzChargeDetailMapper.java

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

@@ -699,7 +699,7 @@ public interface MzChargeDetailMapper {
     @Select({"<script>",
             "SELECT distinct rtrim(a.patient_id) patient_id,name,a.times,a.receipt_no,charge_date=convert(char(10),a.charge_date,111) ,a.serial_no,real_no ,a.responce_type," +
                     " cheque_type=case when mz_receipt_serial_b.cheque_type='Y' " +
-                    " and (len(ltrim(rtrim(mz_receipt_serial.receipt_bill))) >= 10 or len(ltrim(rtrim(mz_receipt_serial.receipt_bill)))=0) then '本院记账' else '自费' end, " +
+                    " and (len(ltrim(rtrim(mz_receipt_serial_b.receipt_bill))) >= 10 or len(ltrim(rtrim(mz_receipt_serial_b.receipt_bill)))=0) then '本院记账' else '自费' end, " +
                     " serial_no_order=ABS(a.serial_no)  " +
                     "    FROM mz_charge_detail_b a,mz_receipt_serial_b " +
                     "  WHERE a.charge_date <![CDATA[>=]]> #{beginDate,jdbcType=TIMESTAMP} and a.charge_date <![CDATA[<=]]> #{endDate,jdbcType=TIMESTAMP}   " +